Connect

<< Click to Display Table of Contents >>

Navigation:  HTTPS REST API > POST API >

Connect

Previous pageReturn to chapter overviewNext page

REQUEST:

URI: https://cloud.teslascada.com/connect

 

BODY: You can use Query format: clientid={clientid}&username={username}&password={password}

Or JSON format: {

                 "clientid": {clientid},

                 "username": {username},

                 "password": {password}

         }

Where:

{clientid} - ID of your client. Should be 0 when you connect.

{username} - Your TeslaCloud account username.

{password} - Your password. It could be Moderator or User password.

 

RESPONSES:

 

200                        Client connected

BODY JSON format:                {

                                 "clientid": {clientid},

                                 "token": {token}

                         }

Where:

{clientid} - ID of your client.

{token} - TeslaCloud token for your account.

 

400                        Client not connected

 

EXAMPLE:

REQUEST:

Query format: clientid=0&username=user&password=111

 

RESPONSE:

200

JSON format:                        {

                                 "clientid": 1,

                                 "token": "gClDc"

                         }