My Profile
Reminder: if you are using an app/client ID in sandbox, you must use sandbox.motar.io as the endpoint for your requests. Requests to api.motar.io with a sandbox client ID will fail!
Warning: A user can access their profile information in your application but the application can NOT store the data.
Example: a user can see their name, photo, email, and other personally identifiable items in your application but you cannot store this in a local app store to send the user emails or manage them by name in your application database. If your application needs to store app specific user data, it can store non profile information with reference to the userId.
Storage of user profile data other than the app specific userId is against MOTAR platform policies and terms.
Get My Profile
GET
https://api.motar.io/user/v1/my/profile
Retrieves the MOTAR profile of the logged in user. Also includes trainer/trainee flags that do not appear on other profiles.
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Auth token generated via the OAuth login flow. |
Get My Friends
GET
https://api.motar.io/user/v1/my/friends
Retrieves the MOTAR profiles of the logged in users friends.
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Auth token generated via the OAuth login flow. |
Get My Profile Picture
GET
https://api.motar.io/user/v1/my/profile/picture
Retrieves the image data of the logged in user's profile picture.
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Auth token generated via the OAuth login flow. |
Get My Cover Photo
GET
https://api.motar.io/user/v1/my/profile/cover
Retrieves the image data of the logged in user's cover photo.
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Auth token generated via the OAuth login flow. |
Create Anonymous User
PUT
https://api.motar.io/user/v1/my/profile
Creates an anonymous account, which can be used by an app in place of a full-fledged profile for uses who have not gone through the MOTAR signup process. Note that if that app fails to refresh an anonymous user's session or logs them out in some way the user will have to create a new anonymous profile.
Request Body
Name | Type | Description |
---|---|---|
anonymous | boolean | Must be "true" |
clientId | string | Your app's client ID from MOTAR Studio |
dateOfBirth | string | A date string representing the user's date of birth. This is required so we can create the appropriate type of account for this user. |
deviceToken | string | An IOS device token or Android registration ID to use for push notifications for this user. |
Last updated