Get the details of your User account

GET /users/ID

Authorization Header

  • Bearer token: OAuth 2.0 API access token. 

Parameters

  • format: json or xml. This will override the Request Accept header.
  • human: true or false. If set to "true" the response will be in a more structure, human-readable form. This is useful when calling the API through curl or a browser.
  • show_null: true or false. If set to "true", the response will contain also keys that are not set to a value.

Example

GET /users
curl -H "Authorization: Bearer um9VmyJKTPGFqpkL_THjGE5rkXqfURDYqQ8MTBVidG3PtwkfABIdx6s_z9WlFl4_j" https://api.xvid.com/v1/users/?human=true&show_null=true
{
  "user": {
    "first_name": "John",
    "last_name": "Doe",
    "email": "jdoe@acme.com",
    "password": "*******",
    "client_password_salt": "*******",
    "name": "johnny22",
    "billing_address": {
		"company_name": "Sparrow Ltd",
		"vat_id": "123456789",
		"street": "Mathura Road 8b",
		"city": "London",
		"state": "London",
		"country": "United Kingdom",
		"zip_code": "110044",
		"vat_id_verified": false
	},
    "profile": {
      "website": null,
      "short_bio": null,
      "avatarURL": "http://www.gravatar.com/avatar/4589972CB656F09FD314B5ECF865402E",
      "profileURL": "http://www.gravatar.com/4589972CB656F09FD314B5ECF865402E"
    },
    "setting": {
      "location": null,
      "language": null,
      "time_zone": "Europe/London",
      "show_location_flag": null,
      "newsletter_flag": true
    },
    "confirmed_on": null,
    "changed_email_confirmed": null,
    "version": 1,
    "created_at": 1416677045882,
    "updated_at": 1416677045882,
    "id": "5470c6b5e4b09edbcfd16235",
    "href": "https://api.xvid.com/v1/users/5470c6b5e4b09edbcfd16235"
  }
}
  • No labels