Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

GetResponseAsync in Xamarin.Social never completes

$
0
0

I'm trying to make use of Twitter5Service in Xamarin.Social, but I can't get it to perform a request.

I created a Twitter account in Settings, and GetAccountsAsync returns this account.
However GetResponseAsync never finishes:

static readonly Twitter5Service Twitter5 = new Twitter5Service ();

void Test ()
{
    Twitter5.GetAccountsAsync ().ContinueWith (t => {
        var acc = t.Result.ToList () [0];
        var req = service.CreateRequest ("GET", new Uri ("https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=twitterapi&count=2"), acc);

        req.GetResponseAsync ().ContinueWith (_ => {
            Console.WriteLine ("I'm never here!");
        });
    });
}

What I am doing wrong?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>