myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [myexperiment-hackers] myExperiment Android App - OAuth Connection &


From: Don Cruickshank
Subject: Re: [myexperiment-hackers] myExperiment Android App - OAuth Connection & API Interaction
Date: Thu, 1 Dec 2011 11:16:45 +0000

There’s a specific “whoami” redirect available to work out who the authenticated user is.  It’s documented at:

 

http://wiki.myexperiment.org/index.php/Developer:API#.22Who_am_I.3F.22

 

Cheers,

Don.

 

From: myexperiment-hackers-bounces+address@hidden [mailto:myexperiment-hackers-bounces+address@hidden On Behalf Of Ankit Upadhyay
Sent: 01 December 2011 1:37 AM
To: myExperiment Hacker Mailing List
Subject: [myexperiment-hackers] myExperiment Android App - OAuth Connection & API Interaction

 

Hi All,
 
I am trying to build a connection of Android App with myExperiment using OAuth. Currently I have so far registered Android App as a client application via myExperiment wiki. I received Consumer Key and Secret to build connection. I have received all permission for all GET and SET methods. I am working on making Java classes to build connection via in-built libraries. There are some java errors which I am working on to resolve.
 
I have a question though. When I request authentication with Username and Password (along with tokens) - how do I know that authentication was successful ? Does it return some parameter values?

 

I have another follow up question on API. One of the API providing information about friends list is

http://www.myexperiment.org/user.xml?id=19710&elements=friends

 

ID = 19710 is associated with user: Ankit Upadhyay and shows full list of friends in browser (XML Tree).

 

The question is how do I get value of parameter ID or other unique parameter after successful authentication ?


I have attached a abstract interaction diagram from OAuth request to API request. It is hand drawn in my project workbook; I hope you will be able to read my hand writing. The image is high res, so you will be able to zoom in.

 

I am going to read more about OAuth in greater detail to understand this stuff better. I hope I am not missing something obvious.

 

Ankit Upadhyay

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]