Account/verify credentials

«  Return to the list of API methods

Contents

URL

http://yourserver/api/account/verify_credentials.format

Description

Returns an user block of the authenticated user.

Usually to check if the credentials are valid.

Available formats

XML, JSON

HTTP Method

GET

Requires authentication

YES


Return example (XML)

curl http://yourserver/api/account/verify_credentials.xml
<?xml version="1.0" encoding="UTF-8"?>
<user>
 <id>1</id>
 <name>operador</name>
 <screen_name>operador</screen_name>
 <location/>
 <description/>
 <profile_image_url>http://192.168.1.180/static/img/avatar/default_note.png</profile_image_url>
 <url/>
 <protected>true</protected>
 <followers_count>0</followers_count>
 <created_at>Thu May 13 19:57:23 +0000 2010</created_at>
 <favourites_count>0</favourites_count>
 <statuses_count>10</statuses_count>
 <friends_count>0</friends_count>
 <following>false</following>
 <utc_offset/>
 <geo_enabled>false</geo_enabled>
 <time_zone/>
 <profile_background_image_url>http://192.168.1.180/themes/transparency/img/bg.png</profile_background_image_url>
 <profile_background_tile>false</profile_background_tile>
 <notifications>false</notifications>
 <verified>false</verified>
 <lang>en</lang>
 <contributors_enabled>false</contributors_enabled>
 <status>
  <created_at>Sat May 15 17:28:17 +0000 2010</created_at>
  <id>12</id>
  <text>ocaatava prueba</text>
  <source>web</source>
  <truncated>false</truncated>
  <in_reply_to_status_id/>
  <in_reply_to_user_id/>
  <favorited>false</favorited>
  <in_reply_to_screen_name/>
 </status>
</user>

Return example (JSON)

curl http://yourserver/api/account/verify_credentials.json
{
    "id": 1,
    "name": "operador",
    "screen_name": "operador",
    "location": null,
    "description": "",
    "profile_image_url": "http:\/\/192.168.1.180\/static\/img\/avatar\/default_note.png",
    "url": null,
    "protected": true,
    "followers_count": "0",
    "created_at": "Thu May 13 19:57:23 +0000 2010",
    "favourites_count": 0,
    "statuses_count": "10",
    "friends_count": "0",
    "following": false,
    "utc_offset": null,
    "time_zone": null,
    "profile_background_image_url": "http:\/\/192.168.1.180\/themes\/transparency\/img\/bg.png",
    "profile_background_tile": false,
    "notifications": false,
    "verified": false,
    "lang": "en",
    "contributions_enabled": false,
    "geo_enabled": false,
    "status": {
        "created_at": "Sat May 15 17:28:17 +0000 2010",
        "id": "12",
        "source": "web",
        "truncated": false,
        "in_reply_to_status_id": null,
        "in_reply_to_user_id": null,
        "favorited": false,
        "in_reply_to_screen_name": null,
        "text": "ocaatava prueba"
    }
}