stackoverflow-api

SXAPI API Initialization error

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) { ...

Namespace Orginization and Conventions

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++?", "...

JSON URL from StackExchange API returning jibberish?

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...

file_get_contents() returns garbled data

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...