Users

users.Account

Estimated reading: 2 minutes 646 views
Namespace:           Users
REST: https://[hoster-api-host]/1.0/users/account/rest/{method-name}
The methods of this service provide user account information (such as SSH keys, quotas, etc.) and manage account-related settings.

Methods

GetUserInfo (appid, session ) : 

Returns user information for the specified account.

URL

https://[hoster-api-host]/1.0/users/account/rest/getuserinfo

Parameters

Example

Method: POST

https://[hoster-api-host]/1.0/users/account/rest/getuserinfo?session=[string]&appid=[string]

Response

  • AuthenticationResponse
    {
       "result": "int",
       "accessType": "FULL_ACCESS(0) | RESTRICTED(1)",
       "uid": "int",
       "debug": {
           "cpu": {
               "usage": "string",
               "time": "int"
           },
           "time": "int"
       },
       "data": {
           "lang": "string"
       },
       "authConfig": {
           "type": "string"
       },
       "email": "string",
       "status": "ENABLED(0) | SUSPENDED(1)",
    }
    

RecoverPassword (appid, email, [lang] ) : Response

Sends an email with a link to reset the account password.

Url

https://[hoster-api-host]/1.0/users/account/rest/recoverpassword

Parameters

  • appid : “string”

    unique identifier of the target application (required for authentication).

  • email : “string”

    email address of user account.

  • lang : “string” (optional)

    target language for the password reset email.

Example

Method: POST

https://[hoster-api-host]/1.0/users/account/rest/recoverpassword?appid=[string]&lang=[string]&email=[string]

Response

  • Response
    {
       "error": "string",
       "reason": "int",
       "result": "int",
       "source": "string"
    }
    

Leave a Comment