REST API: Me

This Endpoint is used to get the Account information for the user who authenticated the oauth token. After authentication, call this endpoint to get the AccountID for the user, which can then be used to call the Accounts endpoints. The only method that is supported is a GET with no args. The return type is the same as Accounts.

Resource URI

/Me/

Resource Properties

Parameter

Format

Description

Allows Null

aboutMe string The users's profile text Yes
acctID long unique identifier for account no
altLine1 string Additional address line for the user's primary contact address Yes
altLine2 string Additional address line for the user's primary contact address yes
availableTokenCount int Number of tokens available for account. GET only. no
city string city of the user's primary contact address yes
completedTrailCount long count of trails completed by account. GET only. no
country string country of the user's primary contact address yes
email string user's email address no
expiredTrailCount int Number of expired trails for account. GET only. no
favoriteTrailCount int Number of favorited trails for account. GET only. no
firstName string user's first name no
fullName string user's full name. This field is computed, and cannot be updated directly yes
guidebookCount long number of guidebooks created by account no
imageID long ID of the user's profile pic. 0 if none no.
lastName string user's last name no
middleName string user's middle name yes
mobileNumber string user's mobile number yes
phone string user's home phone yes
photoCount long number of photos submitted by account. GET only. no
prefix string user's prefix yes
reviewCount long number of reviews submitted by account. GET only. no
routeCount long number of routes created by account. GET only. no
state string state of the user's primary address yes
street string street of the user's primary address yes
submittedTrailCount int Number of submitted trails for account. GET only. no
subscriptionExpireDate date Date the Account's subscription ends. GET only. Empty string if account has never subscribed no
subscriptionTrailCount int Number of subscribed trails for account. GET only. no
suffix string user's name suffix (Jr., etc) yes
tokenTrailCount int Number of token-purchased trails for account. GET only. no
userName string user's userName. This is immutable, so updates are ignored no
zip string zipcode of the user's primary address no

Error Responses

HTTP GET

This is an alias for /Accounts/{oAuth user's accountID}. Call this method with no args after the user authenticates.

JSON Request:

Request body empty

JSON Response:

{
"aboutMe": " I am a sample account, and I wear a really nice hat.
",
"acctID": 7440532,
"altLine1": " ",
"altLine2": "",
"availableTokenCount": 0,
"city": "Vienna",
"country": "US",
"email": "johnqsample@generalsystems.com",
"expiredTrailCount": 0,
"favoriteTrailCount": 0,
"firstName": "John",
"fullName": "Mr. John Sample",
"imageID": 48346,
"lastName": "Sample",
"middleName": " ",
"mobileNumber": "(703)444-5555",
"phone": "(703)444-4444",
"prefix": "Mr.",
"state": "VA",
"street": "44 Sample Drive",
"submittedTrailCount": 2,
"subscriptionExpireDate": "2014-04-04 04:00:00Z",
"subscriptionTrailCount": 0,
"suffix": " ",
"tokenTrailCount": 0,
"userName": "johnqsample",
"zip": "22180"
}

XML Request:

XML Response:


REST API: Me Set

No Set.

Resource URI

Set Filters