cancel
Showing results for 
Search instead for 
Did you mean: 

REST, 12Sprints, oAuth and Java (Android)

Former Member
0 Kudos

Hi there,

I just discovered 12Sprints REST API and wanted to try to make a Proof of Concept for an Android Application which gives access to 12Springs via the REST API.

There is a nice SDN article "SAP Taps employees to drive 12Sprints Innovation" with some screenshots of interesting innovations (including an android app) for 12Springs:

/people/robert.horne/blog/2010/01/29/sap-taps-employees-to-drive-12sprints-innovation

There is also already a very nice Tutorial here on the SDN how to make a simple 12Sprints Android App:

/people/shobhit.garg/blog/2010/01/20/sprint-rests-on-android

The problem is that this is based on the earlier authentication method of 12Sprints. Since the 18th of February it is required to use oAuth authentication for to access the 12Sprints REST API.

In the 12Sprints API Documentation are some cURL scripts provided which work perfectly. Those allow you to test the general workflow of an oAuth Authentication via shell console.

Now after understanding how oAuth works, I'm trying to do this with Java (Android). Here some further resources:

12Sprints API Documentation:

https://beta.12sprints.com/api/Table_of_Contents.html

Java Libraries for oAuth:

http://code.google.com/p/oauth/

http://code.google.com/p/oauth-signpost/

12SprintsFeedbackForum

http://feedback.12sprints.com/forums/30280-invocation-rest-api-help

Now I'm looking for a start.

Has somebody experience with one of the libraries or even better successfully realized a oAuth authentication with JAVA against 12Springs?

I'm not 100% sure if those libraries are really necessary, maybe it is also possible just to send the requiered data via HTTP POST manually...

I would be happy if somebody could point me into the right direction.

Kind regards

Jens Limbach

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Jens,

interesting project! Unfortunately I haven't tried it myself but a good example might be this here for Twitter:

http://twitter4j.org/en/code-examples.html#oauth

I suppose it's not very much different from the procedure for 12Sprints.

Being both a 12Sprints user and an android cupcake user I'd be glad to volunteer if you need someone for testdriving your app once you got it running

Regards, anton

Former Member
0 Kudos

Hi,

thanks for your fast reply, I saw this library for oauth / twitter already but I didn't digged deeper into yet. I first wanted to give it a try with general oAuth libraries.

The library "oauth-signpost" gives also an example for twitter (as well for FireEagle and Google) which is working (http://code.google.com/p/oauth-signpost/downloads/list)

I'm not 100% sure but I think twitter does not need parameters what 12Sprints needs. So there is a difference how they handle it. Probably I have to get more familiar with those librarys and the oAuth Protocol.

btw: If anybody else needs the libraries of oAuth for other programming languages. At the official page of the protocol you can find a list of libraries: http://oauth.net/code/

Still happy for further suggestions!

Former Member
0 Kudos

fyi:

Robert Horne wrote a blog post about the oAuth Authentication.

[12Sprints REST API Authentication, Authorization, and OAuth|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/18208] [original link is broken] [original link is broken] [original link is broken];

Answers (1)

Answers (1)

Former Member
0 Kudos

You can find the solution here:

/people/robert.horne/blog/2010/03/10/sap-streamwork-oauth-a-code-walk-through