I thought it is related To Meta but it is a programming question any way.
I was trying to practice Stackoverflow Api as a test case, I have tried using
SXAPI (stack Overflow Version 4).
When I try to run simple program to fetch some user info, like
protected void Page_Load(object sender, EventArgs e)
{
...
So I have a little bit of a problem. I working on a project in C# using The StackOveflow API. You can send it a request like so:
http://stackoverflow.com/users/rep/126196/2010-01-01/2010-03-13
And get back something like this JSON response:
[{"PostUrl":"1167342",
"PostTitle":"Are ref and out in C# the same a pointers in C++?",
"...
I have a feeling I'm doing something wrong here, but I'm not quite sure if I'm missing a step, or am just having an encoding problem or something. Here's my code:
URL url = new URL("http://api.stackoverflow.com/0.8/questions/2886661");
BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
// Question q...
I am trying to use the SO API (eg: http://api.stackoverflow.com/1.0/users/3) to get some data:
<?php
$data = file_get_contents('http://api.stackoverflow.com/1.0/users/3');
echo $data;
?>
But the returned contents are garbled. I tested it on a couple different servers, including http://codepad.viper-7.com/9GFvsM. Is it my code or the...