ユーザーを取得しようとしていますHomeTimeLine
が、次の例外が発生します
Newtonsoft.Json.dll で「System.NullReferenceException」が発生しました
私のコードは次のようになります:
**OAuthTokens tokens = new OAuthTokens();
TimelineOptions properties = new TimelineOptions();
tokens.AccessToken = "myaccessToke";
tokens.AccessTokenSecret = "my secret accss token";
tokens.ConsumerKey = "my consumer key";
tokens.ConsumerSecret = "my consomer secret";
properties.UseSSL = true;
properties.IncludeRetweets = true;
//Pas besoin de parser avec Twitterizer
try
{
TwitterResponse<TwitterStatusCollection> timelineResponse = TwitterTimeline.HomeTimeline(tokens, properties);
foreach (var item in timelineResponse.ResponseObject)
{
String textStatus = item.Text;
}
}
catch (Exception e)
{
Debug.WriteLine("Error message :"+e.Message);
}**
同じコードで友達のタイムラインを取得しようとすると、うまくいきます例:
TwitterResponse<TwitterStatusCollection> timelineResponse =
TwitterTimeline.FriendTimeline(tokens);
みんなの助けが必要です、ありがとう