Verify credentials.json url not returning any data


#1

url = “http://api.twitter.com/1/account/verify_credentials.json”;
TwitterUser user = Json.Deserialise(oAuth.oAuthWebRequest(oAuthTwitter.Method.GET, url, String.Empty));

It was working before Twitter went down on Thursday.
any ideas?

The xml alternative is working:
url = “http://twitter.com/account/verify_credentials.xml”;
xml = oAuth.oAuthWebRequest(oAuthTwitter.Method.GET, url, String.Empty);
apiResponse.InnerHtml = Server.HtmlEncode(xml);

How do you extract the user id from the xml and send it to a string?
i.e convert xml to string


#2

Is there an error you’re getting in response? Have you tried making the request outside of your library code directly? Are you doing any kind of error handling?

Avoid any URLs without the subdomain “api” in them when making API requests. They will not work as you may expect.


#3

I found the problem. I had a few lines commented out in Json.cs

I commented it out because this namespace is not being recognised becuase its not compatible with .Net2
using System.Runtime.Serialization.Json;
//The type or namespace Json does not exist in the namespace System.Runtime.Serialization

The xml alternative
url = “http://twitter.com/account/verify_credentials.xml”;
xml = oAuth.oAuthWebRequest(oAuthTwitter.Method.GET, url, String.Empty);
apiResponse.InnerHtml = Server.HtmlEncode(xml);

How do you extract the user id from the xml and send it to a string?
i.e convert xml to string


#4

Hi,
I am still getting “The remote server returned an error: (400) Bad Request.” error while i m using ‘https://twitter.com/account/verify_credentials.xml’ please help me to resolve this issue.
thanks,
Lalit


#5

#6