Hi!
Is there an example somewhere on how to use the UserStore module to collect information about the user (ie the username)?
Regards
JMG
UserStore example
Erstellt von JMG, Jun 16 2009 08:06
Eine Antwort in diesem Thema
#1
Geschrieben 16 Juni 2009 - 08:06
#2
Geschrieben 16 Juni 2009 - 06:39
If you are using the Evernote API from a local client application, the UserStore.authenticate() function returns an AuthenticationResult with access to all of the relevant User data:
http://www.evernote.com/about/developer ... thenticate
For a web service, you can take the authorization/access token that you get via OAuth and pass it to UserStore.getUser() to receive a partial User object:
http://www.evernote.com/about/developer ... re_getUser
This User object will have the following fields set, if they are set in our service database (e.g. fullname is optional, so some users won't have it):
* active
* privilege
* shardId
* username
* fullname
* timezone
http://www.evernote.com/about/developer ... thenticate
For a web service, you can take the authorization/access token that you get via OAuth and pass it to UserStore.getUser() to receive a partial User object:
http://www.evernote.com/about/developer ... re_getUser
This User object will have the following fields set, if they are set in our service database (e.g. fullname is optional, so some users won't have it):
* active
* privilege
* shardId
* username
* fullname
* timezone
- Dave Engberg (Evernote)
Besucher die dieses Thema lesen: 1
Mitglieder: 0, Gäste: 1, unsichtbare Mitglieder: 0












