Establish Connection
For a web application to send requests by using functions available on Adena, it must establish a connection with the account with the
AddEstablish
method. Once the user approves the connection, the domain will be added to a locally-stored whitelist.The application will encounter Error 1000 if it attempts to use a function without having established a connection.
adena.AddEstablish("name")
Key | Type | Description |
---|---|---|
name | sting | The name of the website requesting to connect |
Key | Type | Description |
---|---|---|
code | number | Numeric result code |
status | string | Returns success or failure |
type | string | Response type |
message | string | Descriptive message of the result |
data | object | - |
//the name string will be displayed on the connection pop-up
adena.AddEstablish("adena")
{
"code": 0,
"status": "success",
"type": "CONNECTION_SUCCESS",
"message": "The connection has been successfully established.",
"data": {}
}
Last modified 19d ago