schwiz

schwiz

27p

26 comments posted · 0 followers · following 0

10 years ago @ Schwiz Logcat - Using Scribe with Android · 0 replies · +1 points

Thanks for pointing that out I need to get that updated.

11 years ago @ Schwiz Logcat - Using Scribe with Android · 0 replies · +1 points

Sorry for the late reply, I just went over this code and double checked its working on latest version of android. You need to make sure you supplied your own working APIKEY and APISECRET. That seems to be your trouble.

11 years ago @ Schwiz Logcat - Using Scribe with Android · 2 replies · +1 points

I'm not sure a few people have been getting the error. I will look into it over the next few weeks.

11 years ago @ Schwiz Logcat - Using Scribe with Android · 0 replies · +1 points

Yes I think you could use the authkey with whatever library you like once you retrieve it.

11 years ago @ Schwiz Logcat - Using Scribe with Android · 0 replies · +1 points

I'm not sure on that, I'll look into it I'm going to have some downtime this summer and Its important that this works on 4.0!

11 years ago @ Schwiz Logcat - Using Scribe with Android · 0 replies · +1 points

I am referring to the Fragment API in the support library and Android 3.0+ It allows you to drop a section of code in any Activity making it a little more portable. http://developer.android.com/reference/android/su...

12 years ago @ Schwiz Logcat - Using Scribe with Android · 0 replies · +1 points

sounds like a good example for another post I will try to get to it soon.

12 years ago @ Schwiz Logcat - Using Scribe with Android · 0 replies · +1 points

Yes Keith we intercept the callback in this example and never load it in the webview. We use the callback url to identify what social network we have just authenticated and then parse out the token that is returned.

12 years ago @ Schwiz Logcat - Using Scribe with Android · 1 reply · +2 points

In my account settings I have it set to browser, I put a arbitrary URL on the website (schwiz.net) but I am not sure it is required that you put a URL in as it isn't the same callback URL I use in the app.

As you saw I used the callback url oauth://twitter

I chose oauth:// as my custom protocol here also as arbitrary protocol just so I would have a way to recognize the callback url in my WebClient (line 57 above).

I chose twitter as the host so I could reuse my WebViewClient for other social networks. On line 69 I check that the host is twitter and then I verify the credentials.

I hope that this clarifies things for you!

12 years ago @ Schwiz Logcat - Using Scribe with Android · 0 replies · +1 points

It depends on what you are wanting to do. Scribe supports basic authentication for a lot of websites but Twitter4J has support for a ton of the twitter API calls. If you are just wanting to use twitter or other sites as authenticators (ie login with facebook, login with twitter, etc) then Scribe would be the way to go. If you are wanting to make a full fledged twitter app then there will be a lot of extra work supporting the additional API calls for twitter using Scribe.