Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I am having the same problem but I didn't understand your solution, could you explain a bit more where you changed the rest client?</p> <p>-----EDIT----</p> <p>I finally was able to make it work with TweetSharp. I downloaded the source code and added the lines you mentioned to the rest client configuration it uses and the compiled the project again. Since i cannot push my changes to that github, I upload the dll here. <a href="https://skydrive.live.com/redir.aspx?cid=fc6cb202f7305a88&amp;resid=FC6CB202F7305A88!324&amp;parid=FC6CB202F7305A88!198" rel="nofollow">TweetSharp recompiled dll</a></p> <p>This is the code I use which with it works</p> <pre><code>// Step 1 - Retrieve an OAuth Request Token Service.GetRequestToken((requestToken, response) =&gt; { if (response.StatusCode == HttpStatusCode.OK) { Request = requestToken; Uri uri = Service.GetAuthorizationUri(requestToken); Dispatcher.BeginInvoke(() =&gt; { Browser.Navigate(uri); } ); } }); //Step 2, get the pincode string html = Browser.SaveToString(); //gets the DOM as a string Regex expression = new Regex(@"&lt;code&gt;(?&lt;word&gt;\w+)&lt;/code&gt;"); Match match = expression.Match(html); string pin = match.Groups["word"].Value; if (pin != "") { loginTwitter(pin); //we login with the pin extracted } //step 3, get access tokens from twitter private void loginTwitter(string pin) { Service.GetAccessToken(Request, pin, processAccessToken); } public void processAccessToken(OAuthAccessToken access, TwitterResponse Response){ if (Response.StatusCode == HttpStatusCode.OK) { if (access != null) { Access = access; // Store it for reuse Service.AuthenticateWith(access.Token, access.TokenSecret); } } } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload