Skip to content

Latest commit

 

History

History
52 lines (41 loc) · 926 Bytes

account.md

File metadata and controls

52 lines (41 loc) · 926 Bytes

Account

The account object

Attributes

Name Type Description
object string Is "account".
created integer
name string
email string
avatar_image_url string
referral_code string The referral code the user can use to referrer others.

Example

{
	"object": "account",
	"created": 1412036805,
	"name": "John Doe",
	"email": "[email protected]",
	"avatar_image_url": "http://example.com/image.jpg",
	"referral_code": "V7OAkRU"
}

Retreive the account

Returns the current authenticated user account.

Example request

curl https://spaces.com/api/v1/account \
	-u ACCESS_TOKEN:

Example response

{
	"object": "account",
	"created": 1412036805,
	"name": "John Doe",
	"email": "[email protected]",
	"avatar_image_url": "http://example.com/image.jpg",
	"referral_code": "V7OAkRU"
}