[OSM-dev] Using OAuth
Sven Anders
sven at anders-hamburg.de
Sun Aug 30 18:36:36 BST 2009
Am Saturday 29 August 2009 13:42:16 schrieb Tom Hughes:
> On 29/08/09 12:12, Sven Anders wrote:
> > How do I get API Access? (For the start i am only interessed in the
> > mailaddres and the username)
>
> You won't be able to get the email address.
I have changed the php api to
http://code.google.com/p/oauth-php/
and now i was able to get access to the user preferences.
Is it posible to get the username by an api call? Or an other unique
identifier to store it to my application?
I think it is not a good idea to open a changeset and afterwards have a look
who has created it.
Perhabs someone could add a username and mailaddress api call?
Suggestion:
GET /api/0.6/user/account/username
GET /api/0.6/user/account/mail
Also:
GET /api/0.6/user/account/picture
GET /api/0.6/user/account/languages
GET /api/0.6/user/account/description
GET /api/0.6/user/account/position/lat
GET /api/0.6/user/account/position/lon
would be nice.
I have an other problem:
I saw that my user account is having much tokens, because my application is
always creating a new one, when the user want to have access to my app, as
the user is not loggin in at my aplication I can not find a older token in my
database.
Is there a good reason why one user should have more than one access token for
one application?
Sven
More information about the dev
mailing list