Archive

Posts Tagged ‘java’

OAuth in java – the Signpost library

November 8th, 2010 ddewaele No comments
For a quick command line java example, we’ll be using the oauth-signpost library, a java library with OAuth support that can also be used in Android projects (see Implementing the OAuth flow in Android) . The sample code below illustrates how easy it is to orchestrate the OAuth workflow from a java runtime. The sample program will use a command-line approach guiding you to the oauth flow. It will basically do the following steps :

  • get a request token
  • ask you to authorize access
  • exchange the authorized token for an access token
  • retrieve your contacts
oauth-commandline-logo

Continue reading “OAuth in java – the Signpost library” »