Members
Methods
create(opts, accountIdopt, passwordopt) → {JsonApiResponse}
Create an account.
- Source:
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object
|
Account options.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
accountId |
string
|
<optional> |
User's account ID. Use account ID of the attached token by default. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
password |
string
|
<optional> |
Desired password. |
Returns:
- Type:
-
JsonApiResponse
delete(accountId)
Remove account by ID
- Source:
Parameters:
Name | Type | Description |
---|---|---|
accountId |
string
|
get(accountIdopt) → {JsonApiResponse}
Get user's account.
- Source:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
accountId |
sting
|
<optional> |
User's account ID. Use account ID of the attached token by default. |
Returns:
- Type:
-
JsonApiResponse
getAccounts(query) → {JsonApiResponse}
Get multiple accounts.
- Source:
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
query |
object
|
Request options.
|
Returns:
- Type:
-
JsonApiResponse
getCreateLotRequests(queryopt) → {JsonApiResponse}
Get account create lot requests.
- Source:
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
query |
object
|
<optional> |
Request options.
|
Returns:
- Type:
-
JsonApiResponse
resendEmailVerificationCode(accountIdopt)
Resend phone verification code.
- Source:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
accountId |
string
|
<optional> |
User's account ID. Use account ID of the attached token by default. |
resendPhoneVerificationCode(accountIdopt)
Resend phone verification code.
- Source:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
accountId |
string
|
<optional> |
User's account ID. Use account ID of the attached token by default. |
update(opts, accountIdopt) → {JsonApiResponse}
Update account details.
- Source:
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object
|
Account options.
|
|||||||||||||||||||||||||||||||||
accountId |
string
|
<optional> |
User's account ID. Use account ID of the attached token by default. |
Returns:
- Type:
-
JsonApiResponse
verifyEmail(token, accountIdopt)
Verify user's phone number.
- Source:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
token |
string
|
6-digit token from SMS. |
|
accountId |
string
|
<optional> |
User's account ID. Use account ID of the attached token by default. |
verifyPhone(token, accountIdopt)
Verify user's phone number.
- Source:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
token |
string
|
6-digit token from SMS. |
|
accountId |
string
|
<optional> |
User's account ID. Use account ID of the attached token by default. |