-
Notifications
You must be signed in to change notification settings - Fork 0
Get current user
Rafael Chacon edited this page Feb 22, 2012
·
1 revision
Return info for current user
###URL:
GET http://public-api.piictu.com/v2/current_user
###HTTP method(s): GET
###Requires authentication (Authentication and Authorization): Yes
###Usage example:
Example using cURL:
curl -i http://public-api.piictu.com/v2/current_user \
-H "Authorization: OAuth 2540af0de12cb2367691516b8477b0b7bd66dbd8ab6840b147340c6898c4eebd"###Response:
On success
- HTTP response code is
200(OK) - HTTP response body is a JSON string like this:
{
"user": {
"avatar_url": "http://piictu.s3.amazonaws.com/avatars/4df3b43e490fa000010003ff/90x90",
"bio": "",
"created_at": "2011-06-11T18:30:22Z",
"current_sign_in_at": "2012-02-16T04:57:24Z",
"current_sign_in_ip": "174.6.202.206",
"followers_count": 4,
"friends_count": 7,
"fullname": "John Doe",
"last_sign_in_at": "2012-02-11T04:26:17Z",
"last_sign_in_ip": "174.6.202.206",
"likes_count": 25,
"original_avatar_url": "http://piictu.s3.amazonaws.com/avatars%2F4df3b43e490fa000010003ff%2Foriginal",
"photos_count": 25,
"prev_visited_notification_seq": 13292255051055364,
"push_tokens": [
"c68e1352c92a0d2f5827a3d22936c3b3ec648937bfs7a09170ed43e9cb14ada8",
"9743713013e09ab1657e546b07300fb99scf6bc9c371d164287f9c8ad4beffa1"
],
"replies_count": 2,
"streams_count": 12,
"timezone": "PST",
"updated_at": "2012-02-18T00:31:26Z",
"username": "rafael",
"id": "4df3b43e490fa000010003ff",
"services": ["twitter","facebook"],
"email": "jonhdoe@gmail.com"
}
}