-
Notifications
You must be signed in to change notification settings - Fork 0
Person
danmux edited this page Feb 6, 2012
·
2 revisions
The Person url is the root of an individuals data store
If a current and authenticated token is used there will be a good json response.
remember to pass a recognised token in the url
https://www.moneytoolkit.com/pub/person/{username}?tkn={token}
(where username is the user you authenticated earlier and got the returned token) e.g.
https://www.moneytoolkit.com/pub/person/hairyman?tkn=htKTfgT096FFg
GET
No specific requirement but consider:
Accept: application/json
- tkn = the token passed in
- in = indent amount, and pretty print the json
###Codes
- 200 - A successful request.
- 401 - Unauthorised
###Body A successful auth the body returns a token in json and the message WILL be 'authenticated'...
Or in case of 401's:
"message": "Unauthorised"