Me

You have access to all fields of information about the logged in User such as their avatar url, name, and other fields. Check out the example response.

Response Code

200

Definition

GET: /me

cURL Example

curl https://api.gathercontent.com/me \ -u [email protected]:<YOUR_API_KEY> \ -H "Accept: application/vnd.gathercontent.v0.5+json"

Returns

JSON Object

Example Response

{ "data": { "email": "[email protected]", "first_name": "Andrew", "last_name": "Cairns", "timezone": "UTC", "language": null, "gender": null, "avatar": "http://image-url.com" } }

PHP Example

<?php
$username 
[email protected]';
$apikey '<YOUR_API_KEY>';

$ch curl_init();

curl_setopt$chCURLOPT_HTTPAUTHCURLAUTH_BASIC);
curl_setopt$chCURLOPT_HTTPHEADER, array('Accept: application/vnd.gathercontent.v0.5+json'));
curl_setopt$chCURLOPT_USERPWD$username ':' $apikey);
curl_setopt$chCURLOPT_URL'https://api.gathercontent.com/me');
curl_setopt$chCURLOPT_RETURNTRANSFERtrue );

$response json_decodecurl_exec$ch ) );
curl_close$ch );

Great, welcome aboard!

That’s it! You’re signed up to our mailing list and can expect content strategy goodness in your inbox soon.