Anchor |
---|
| _Toc341972561 |
---|
| _Toc341972561 |
---|
|
Attributes
...
Method:/configuration /createParameters:
{
Code Block |
---|
language | js |
---|
title | Parameters |
---|
|
{
"attrs": |
...
...
...
"description":"description", |
...
...
"{
\"provider\":\"clickatell\",
\"username\":\"john.smith\", |
...
...
...
Anchor |
---|
| _Toc341972563 |
---|
| _Toc341972563 |
---|
|
/ configuration / get
Code Block |
---|
language | js |
---|
title | Parameters |
---|
|
{
|
Wiki Markup |
---|
Method:/configuration /get
Parameters:
\{
"match":
\ [
\ ["category", "=", "DGS"\],
\ ["name", "=", "SMS"\]
\}
],
"return":\["*"\]
\}
Response:
\{
} |
Code Block |
---|
|
{
"error":0,
"result":
\ {
"id": "id",
"category": "DGS",
"name":"SMS",
"description":"description",
"options":
'\ "{
\"provider\":\"clickatell\",
\"username\":\"john.smith\",
\"password\":\"secret\"
\}'
\}
\}
\\ }"
}
} |
Anchor |
---|
| _Toc341972564 |
---|
| _Toc341972564 |
---|
|
/ configuration / search
Code Block |
---|
language | js |
---|
title | Parameters |
---|
|
{
|
Wiki Markup |
---|
Method:/configuration /search
Parameters:
\{
"match":
\ [
\["category", "=", "DGS"\],
\["name", "=", "SMS"\]
\}
],
"return":\["*"\]
\}
Response:
\{
} |
Code Block |
---|
|
{
"error":0,
"result":
\ {
"total": 1,
"rows":
\[
\{
"id":id,
"category":"DGS",
"name":"SMS",
"description":"description",
"options":
'\{
"provider":"clickatell",
"username":"john.smith",
"password":"secret"
\}'
\}
\]
\}
\\
\\ |
...
Method:/configuration /delete
Parameters:
{
"id":id
}
Response:
{
"error":0
}
...
Method:/configuration /set
Parameters:
{
"id":id,
"attrs":
{
"description":"description",
"options":
'{
"provider":"clickatell",
"username":"john.smith",
"password":"secret"
}'
}
}
Response:
{
"error":0
}
...
Method:/configuration /update
Parameters:
{
"attrs":
{
"category":"DGS",
"name":"SMS",
"description":"description",
"options":
'{
"provider":"clickatell",
"username":"john.smith",
"password":"secret"
}'
}
}
Response:
{
"error":0
}
...
"rows":
[
{
"id": "id",
"category": "DGS",
"name":"SMS",
"description":"description",
"options":
"{
\"provider\":\"clickatell\",
\"username\":\"john.smith\",
\"password\":\"secret\"
}"
}
]
}
} |
Anchor |
---|
| _Toc341972565 |
---|
| _Toc341972565 |
---|
|
/ configuration / deleteMethod:/configuration /delete
Code Block |
---|
language | js |
---|
title | Parameters |
---|
|
{
"id": "configuration object id"
} |
Anchor |
---|
| _Toc341972566 |
---|
| _Toc341972566 |
---|
|
/ configuration / setMethod:/configuration /set
Code Block |
---|
language | js |
---|
title | Parameters |
---|
|
{
"id": "configuration object id",
"attrs":
{
"category":"DGS",
"name":"SMS",
"description":"description",
"options":
"{
\"provider\":\"clickatell\ |
...
- SMTP server:
category:"CONNECTOR",
name:"SMTP",
options:
'{
"doc":
{
"serverURI":"192.168.222.1",
"serverPort":25,
"authRequired":false,
"useTLS":false,
"userName":"",
"password":""
}
}'
- SMTP send OTP template
Wiki Markup |
---|
category:"TEMPLATE",
name:"SMTP_OTP",
options:
'\{
"subject":"OTP",
"from":"deepnetsecurity@gmail.com",
"to":"\[\[EMAIL\]\]",
"body":"Your one-time password: \[\[OTP\]\]",
"bodyFormat":"1",
"priority":"1"
\}' |
- SMS settings
Wiki Markup |
---|
category:"CONNECTOR",
name:"SMS",
options:
'\{
"provider":
\{
"@name":"Clickatell",
"username":"deepnet",
"password":"d33p5pace",
"sms":
\{
"http":
\{
"variables":
\[
\{
"variable":
\{
"@name":"api_id",
"@value":"389965"
\}
\}
\]
\}
\},
"wap":
\{
"http":
\{
"variables":
\[
\{
"variable":
\{
"@name":"api_id",
"@value":"389965"
\}
\}
\]
\}
\}
\}
\}'
\\ |
- SMS send OTP template
Wiki Markup |
---|
category:"TEMPLATE",
name:"SMS_OTP",
options:
'\{
"from":"t.s.b@deepnetsecurity.com",
"to":"\[\[MOBILE\]\]",
"body":"Your one-time password: \[\[OTP\]\]"
\}'
\\ |
- Twitter settings:
category:"CONNECTOR",
name:"TWITTER",
options:
'{
"doc":
{ "serverURI":'http://twitter.com/direct_messages/new.xml',
"userName":"deepnet",
"password":"314159"
}
}'
- TeleSigh settings
Wiki Markup |
---|
category:"CONNECTOR",
name:"TELEPHONE",
options:
'\{
"provider":
\{
"@name":"TeleSign",
"username":"",
"password":"",
"telephone":
\{
"soap":
\{
"variables":
\[
\{
"variable":
\{
"@name":"custID ",
"@value":"xxx"
\}
\},
\{
"variable":"username\":\"john.smith\",
\{
\"@namepassword\":\"authIDsecret\",
"@value":"xxx}"
\}
\},
\{
}
} |
Anchor |
---|
| _Toc341972567 |
---|
| _Toc341972567 |
---|
|
/ configuration / updateMethod:/configuration /update
This API will create the configuration if it doesn't exist. Or it will update it, if it already exists.
Code Block |
---|
language | js |
---|
title | Parameters |
---|
|
{
"variableattrs":
\{
"@namecategory":"languageDGS",
"@valuename":"EnglishSMS",
\},
\},
\{
"description":"description",
"variableoptions":
\"{
"@name":"redialCount",
\"@valueprovider\":\"2clickatell\",
\},
…\"username\":\"john.smith\",
\}
\]
\}
\}
\}
\}' |
- SMTP send Emergency Code template
"password\":\"secret\"
}"
}
} |
Code Block |
---|
|
{
"error":0
} |
Wiki Markup |
---|
category:"TEMPLATE",
name:"SMTP_EC",
options:
'\{
"subject":"Your Emergency Code",
"from":"deepnetsecurity@gmail.com",
"to":"\[\[EMAIL\]\]",
"body":"Your emergency code: \[\[ECODE\]\],
Usage Limit: \[\[LIMIT\]\],
Expiry Date:\[\[EXPIRES\]\]",
Expiry Date:\[\[STARTS\]\]",
"bodyFormat":"1",
"priority":"1"
\}'
\\ |