UpdateStatus returns empty status, status is not displayed

Jun 7, 2013 at 9:05 PM
Hello,

I use linqtotwitter on WinRT. I use UpdateStatus method. The method executes without error (exception), but the returned status has all properties empty od null. I am not able to find the problem. Search methods work OK. My application has read/write/write direc message privileges. The message is not on the Twitter displayed.

Status status = twitterContext.UpdateStatus("Hello World");
Coordinator
Jun 9, 2013 at 8:48 PM
Hi,

Please try the async version:
    UpdateStatus(this TwitterContext ctx, string status, Action<TwitterAsyncResponse<Status>> callback)
Which you can implement with a lambda or delegate. Here's a lambda example:
            twitterCtx.UpdateStatus(status,
                response =>
                {
                    if (response.Status == TwitterErrorStatus.Success)
                    {
                        Status tweet = response.State;

                        Console.WriteLine(
                            "Status returned: " +
                            "(" + tweet.StatusID + ")" +
                            "[" + tweet.User.ID + "]" +
                            tweet.User.Name + ", " +
                            tweet.Text + ", " +
                            tweet.CreatedAt + "\n");
                    }
                    else
                    {
                        Console.WriteLine(response.Exception.ToString());
                    }
                });
@JoeMayo
Jun 10, 2013 at 9:03 AM
OK it works fine. Will be available async version for WinRT with Taks, await, async mechanism?

Thanks very much

Myth
Coordinator
Jun 10, 2013 at 3:51 PM
Yes, async/await is on the radar.

@JoeMayo