AccessToken
URL
https://api.primatime.com/v1/users/@self/accesstokens
Properties
Name |
Type |
Access |
Required |
Description |
accessToken |
String |
read write |
YES |
Unique access token obtained from provider. |
accountName |
String |
read write |
YES |
Account name identifies the user with the provider, i.e. e-mail address. |
createdAt |
Date |
read only |
no |
Date of creation. |
displayName |
String |
read only |
no |
Describes an object in human readable form. |
id |
String |
read write |
no |
Unique object identifier. |
provider |
String |
read write |
YES |
Access token provider. |
refreshToken |
String |
read write |
no |
Refresh token obtained from the provider. |
trashItem |
TrashItem |
read write |
no |
Informs whether an object is in the trash. An object is in the trash if a trash item was specified. |
updatedAt |
Date |
read only |
no |
Last modified date. |
user |
User |
read write |
YES |
Associated user. |
version |
Long |
read write |
no |
Object version number. |
{
"type" : "AccessToken",
"path" : "/v1/users/@self/accesstokens",
"fields" : [
{
"type" : "String",
"name" : "accessToken",
"description" : "Unique access token obtained from provider.",
"access" : "READ_WRITE",
"constraints" : [
{
"type" : "NotNull"
}
]
},
{
"type" : "String",
"name" : "accountName",
"description" : "Account name identifies the user with the provider, i.e. e-mail address.",
"access" : "READ_WRITE",
"constraints" : [
{
"type" : "NotNull"
}
]
},
{
"type" : "Date",
"name" : "createdAt",
"description" : "Date of creation.",
"access" : "READ_ONLY"
},
{
"type" : "String",
"name" : "displayName",
"description" : "Describes an object in human readable form.",
"access" : "READ_ONLY"
},
{
"type" : "String",
"name" : "id",
"description" : "Unique object identifier.",
"access" : "READ_WRITE",
"constraints" : [
{
"type" : "Pattern",
"details" : "regexp [0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}"
},
{
"type" : "NotNull"
}
]
},
{
"type" : "String",
"name" : "provider",
"description" : "Access token provider.",
"access" : "READ_WRITE",
"constraints" : [
{
"type" : "NotNull"
}
]
},
{
"type" : "String",
"name" : "refreshToken",
"description" : "Refresh token obtained from the provider.",
"access" : "READ_WRITE"
},
{
"type" : "TrashItem",
"path" : "/v1/trash",
"name" : "trashItem",
"description" : "Informs whether an object is in the trash. An object is in the trash if a trash item was specified.",
"access" : "READ_WRITE"
},
{
"type" : "Date",
"name" : "updatedAt",
"description" : "Last modified date.",
"access" : "READ_ONLY"
},
{
"type" : "User",
"path" : "/v1/users",
"name" : "user",
"description" : "Associated user.",
"access" : "READ_WRITE",
"constraints" : [
{
"type" : "NotNull"
}
]
},
{
"type" : "Long",
"name" : "version",
"description" : "Object version number.",
"access" : "READ_WRITE"
}
],
"cascades" : [
{
"cascadeType" : "REMOVE",
"objectTypes" : [
"TrashItem"
]
}
]
}
Dummy data
{
"id" : "aa50b0b5-979f-4a59-88ae-0d8110fe4109",
"createdAt" : "/Date(1651050207173)/",
"updatedAt" : "/Date(1651064907173)/",
"version" : 4,
"provider" : "google",
"accessToken" : "8974987412978974984",
"accountName" : "jsmith@gmail.com",
"user" : {
"id" : "0fe49f05-00de-4b0c-95c9-f6b6e2d49dfc",
"createdAt" : "/Date(1651048167173)/",
"updatedAt" : "/Date(1651057707173)/",
"version" : 3,
"firstName" : "John",
"lastName" : "Doe",
"nickName" : "Johny D.",
"email" : "2w2l0ykpx9hzhqx@testdata.com",
"phone" : "55 234 555 678",
"position" : "Senior developer",
"timeZone" : "America/Sao_Paulo",
"dateFormat" : "yyyy-MM-dd",
"timeFormat" : "K:mm a",
"weekStart" : 7,
"language" : "pt_BR",
"password" : "ic3xofzf59lajhlwnsde",
"secretKey" : "userSecretKey",
"confirmed" : false,
"confirmedEmail" : false,
"active" : false,
"birthdayRemind" : "/Date(1652911200000)/",
"workingTimeStart" : "/Date(1651039200000)/",
"workingTimeEnd" : "/Date(1651071600000)/",
"created" : "/Date(1650964107173)/",
"admin" : false,
"projectManager" : false,
"displayName" : "Doe John"
},
"refreshToken" : "blX09ao39021das92394=29384/0283na3bgcx2234",
"displayName" : "jsmith@gmail.com"
}