B4A Library OAuth library

This library wraps the oauth-signpost open source project.
Using the OAuth object you can sign Http requests as required by some servers.
See this page for more information about OAuth: OAuth - Wikipedia, the free encyclopedia
Example of using OAuth to communicate with Dropbox is available here: http://www.b4x.com/forum/basic4andr...android-dropbox-oauth-tutorial.html#post59994

Installation instructions:
- Download the attached file.
- Copy OAuth.xml and OAuth.jar to the internal libraries folder: C:\Program Files\Anywhere Software\Basic4android\Libraries
 

Attachments

  • OAuth.zip
    65.6 KB · Views: 2,056

bluedude

Well-Known Member
Licensed User
Longtime User
I assume this is just a simple implementation without support for the Twitter oAuth 2.0 stuff? Or can it be used for Twitter etc. for posting updates?

Cheers,
 

bluedude

Well-Known Member
Licensed User
Longtime User
Nice but eh does your library support this kind of stuff:

OAuthProvider provider = new DefaultOAuthProvider(
"http://twitter.com/oauth/request_token",
"http://twitter.com/oauth/access_token",
"http://twitter.com/oauth/authorize");

I couldn't find that.
 

thedesolatesoul

Expert
Licensed User
Longtime User

I think it does.
When you do Oauth.
I think this is equivalent to the first URL. HttpUtilsService.OAuth.Initialize(developerKey, developerSecret)
And this is to the second URL.
HttpUtilsService.OAuth.SetTokenWithSecret(tokenKey, tokenSecret)
 

fabioferreiracs

Member
Licensed User
Longtime User
where i found the ABC to send a post to twitter and retrive my twits ? ABTwitter dont retrive the date of twits, its is bad !
 

Marco Nissen

Active Member
Licensed User
Longtime User
I think it does.
When you do Oauth.
I think this is equivalent to the first URL. HttpUtilsService.OAuth.Initialize(developerKey, developerSecret)
And this is to the second URL.
HttpUtilsService.OAuth.SetTokenWithSecret(tokenKey, tokenSecret)

how can it do that?

OAuth does not provide a wrapper for OAuthProvider ,so I don't see how the provider and the respective URLs can be set.

Please provide some help, because I am struggling how to get oauth running with b4a
 

tsteward

Well-Known Member
Licensed User
Longtime User
will this or has this library been updated to oauth v2?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…