Account

Account

Account.

Constructor

new Account()

Source:

Members

types :sting

Account types.

Source:
Type:
  • sting

Methods

create(opts, accountIdopt, passwordopt) → {JsonApiResponse}

Create an account.

Source:
Parameters:
Name Type Attributes Description
opts object

Account options.

Name Type Attributes Description
type string

Account type.

platformId string

User's platform.

facebookToken string <optional>

Can override email, firstName, lastName and city.

currency string <optional>

Preferred currency.

locale string <optional>

Preferred user's locale.

email string

User's email.

firstName string

User's first name.

lastName string

User's last name.

phoneNumber string

User's phone number.

city string <optional>

User's city.

company string <optional>

User's company.

email string

Preferred user's locale.

accountId string <optional>

User's account ID. Use account ID of the attached wallet by default.

password string <optional>

Desired password.

Returns:
Type:
JsonApiResponse

createStar(lotId, accountIdopt) → {JsonApiResponse}

Create star.

Source:
Parameters:
Name Type Attributes Default Description
lotId Number

Lot ID.

accountId string <optional>
null

User's account ID. Use account ID of the attached wallet by default.

Returns:
Type:
JsonApiResponse

deleteStar(lotId, accountIdopt) → {JsonApiResponse}

Delete star.

Source:
Parameters:
Name Type Attributes Default Description
lotId Number

Lot ID.

accountId string <optional>
null

User's account ID. Use account ID of the attached wallet by default.

Returns:
Type:
JsonApiResponse

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 wallet by default.

Returns:
Type:
JsonApiResponse

getAccounts(query) → {JsonApiResponse}

Get multiple accounts.

Source:
Parameters:
Name Type Description
query object

Request options.

Name Type Description
in string

List of account ids splitted by ','

Returns:
Type:
JsonApiResponse

getBidRequests(queryopt) → {JsonApiResponse}

Get account bid requests.

Source:
Parameters:
Name Type Attributes Description
query object <optional>

Request options.

Name Type Attributes Description
page.number Number <optional>

Page number.

page.size Number <optional>

Page size.

sort Array.<string> <optional>

Sorting params.

requestor string <optional>

Requestor of the request.

reviewer reviewer <optional>

Reviewer of the request.

Returns:
Type:
JsonApiResponse

getCreateLotRequests(queryopt) → {JsonApiResponse}

Get account create lot requests.

Source:
Parameters:
Name Type Attributes Description
query object <optional>

Request options.

Name Type Attributes Description
page.number Number <optional>

Page number.

page.size Number <optional>

Page size.

sort Array.<string> <optional>

Sorting params.

requestor string <optional>

Requestor of the request.

reviewer reviewer <optional>

Reviewer of the request.

Returns:
Type:
JsonApiResponse

getParticipationRequests(queryopt) → {JsonApiResponse}

Get account participation requests.

Source:
Parameters:
Name Type Attributes Description
query object <optional>

Request options.

Name Type Attributes Description
page.number Number <optional>

Page number.

page.size Number <optional>

Page size.

sort Array.<string> <optional>

Sorting params.

requestor string <optional>

Requestor of the request.

reviewer reviewer <optional>

Reviewer of th request.

Returns:
Type:
JsonApiResponse

getSigner(signerId, accountIdopt) → {JsonApiResponse}

Get account signers.

Source:
Parameters:
Name Type Attributes Description
signerId sting

Signer ID.

accountId sting <optional>

User's account ID. Use account ID of the attached wallet by default.

Returns:
Type:
JsonApiResponse

getSigners(accountIdopt) → {JsonApiResponse}

Get account signers.

Source:
Parameters:
Name Type Attributes Default Description
accountId string <optional>
null

User's account ID. Use account ID of the attached wallet by default.

Returns:
Type:
JsonApiResponse

getStars(queryopt, accountIdopt) → {JsonApiResponse}

Get account stars.

Source:
Parameters:
Name Type Attributes Description
query object <optional>

Request options.

Name Type Attributes Description
page.number Number <optional>

Page number.

page.size Number <optional>

Page size.

accountId string <optional>

User's account ID. Use account ID of the attached wallet by default.

Returns:
Type:
JsonApiResponse

recover(email, token, newSigner)

Recover account.

Source:
Parameters:
Name Type Description
email string

User's email.

token string

Recovery token.

newSigner string

Public key of the new signer.

requestRecovery(email)

Request account recovery.

Source:
Parameters:
Name Type Description
email string

User's email.

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 wallet 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 wallet by default.

update(opts, accountIdopt) → {JsonApiResponse}

Update account details.

Source:
Parameters:
Name Type Attributes Description
opts object

Account options.

Name Type Attributes Description
facebookToken string <optional>

Can override email, firstName, lastName and city.

currency string <optional>

Preferred currency.

locale string <optional>

Preferred user's locale.

firstName string <optional>

User's first name.

lastName string <optional>

User's last name.

city string <optional>

User's city.

company string <optional>

User's company.

accountId string <optional>

User's account ID. Use account ID of the attached wallet 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 wallet 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 wallet by default.