I want to get the user profile data on connect to twitter. I managed to connect and get the access token and access token secret using Tweetsharp Lib. But trying to get the user profile throw an error regarding data type int being too small:
An exception of type 'Newtonsoft.Json.JsonReaderException' occurred in Newtonsoft.Json.dll but was not handled in user code
Additional information: JSON integer 2537698177 is too large or small for an Int32. Path 'status.in_reply_to_user_id', line 1, position 763.
which is a bug inside their dll. Can anybody tell me another way or show an example of getting the user info once you have the access token after connect?
this is the code I am using Tweetsharp dll:
var service = new TwitterService(Storage.TwitterConsumerKey, Storage.TwitterConsumerSecret);
service.AuthenticateWith(sAccessToken, sAccessTokenSecret);
var userProfile = service.BeginGetUserProfile(new GetUserProfileOptions { IncludeEntities = true, SkipStatus = false });
var dResponse = _serializerService.Deserialize(service.Response.Response);