Send a SMS message and more with the Cognito Rest API.
Name | Type | Description | |
---|---|---|---|
cognitoKey |
string
|
The Key from your Cognito Project's Page. |
|
cognitoSecret |
string
|
The Secret from your Cognito Project's Page. |
const Cognito = require('vendor/Cognito.js');
Cognito.send({
to: '+1123456789',
from: '+1123456789',
message: 'Hello :)',
});
Cognito
Initialize a new Cognito identity search. This first calls POST /profiles
and then POST /identity_searches
.
Name | Type | Description | |
---|---|---|---|
phone |
string
|
||
firstName |
string
|
Optional | |
lastName |
string
|
Optional |
object
data returned from Cognito identity API call
Look up an existing Cognito identity lookup job. This calls /identity_searches/jobs/${id}
.
Name | Type | Description | |
---|---|---|---|
id |
string
|
The job API |
object
Data returned from Cognito identity job lookup API call
Name | Type | Description | |
---|---|---|---|
method | |||
endpoint | |||
data | |||
options |
boolean