Adena Docs
Search
K

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.

Code

adena.AddEstablish("name")

Params

Key
Type
Description
name
sting
The name of the website requesting to connect

Response

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
-

Sample Request

//the name string will be displayed on the connection pop-up
adena.AddEstablish("adena")

Sample Response

{
"code": 0,
"status": "success",
"type": "CONNECTION_SUCCESS",
"message": "The connection has been successfully established.",
"data": {}
}