1. Home
  2. Docs
  3. Code
  4. SDK

SDK

SDK Module

Methods

(inner) getBankingFinicity() → {object}

get the banking finicity information
Returns:
get the banking finicity for the user
Type
object

(inner) getIntentByName(name) → {string}

Search through the inents of your skill and return the one to execute
Parameters:
Name Type Description
name string the interaction name
Returns:
the proper intent from the intents array
Type
string

(inner) googleGetGeocode(address) → {json}

Get the geolocation of the requested address
Parameters:
Name Type Description
address string
Returns:
the location requested from the google maps API
Type
json

(inner) googleGetLocationInfo(locationType, name, address) → {json}

Get the geolocation with googleGetGeocode() and then get the location info
Parameters:
Name Type Description
locationType string google location type data
name string google location name data
address string the address
Returns:
using the Geocode function, get the location information and return it as JSON
Type
json

(inner) googleUrlShortener(longUrl) → {json}

Return shortened Url in Json form
Parameters:
Name Type Description
longUrl string
Returns:
the googleUrl with the API Key
Type
json

(inner) ParseDate(dateString)

Make sure the date has the proper format
Parameters:
Name Type Description
dateString string

(inner) sendText(data) → {speech}

Send a text to a user using the twilloSend function
Parameters:
Name Type Description
data JSON the message to be sent
Returns:
send the the message using the twilloSend function and alert the user
Type
speech

(inner) twilloCall(toNumber, fromNumber) → {object}

Call a user
Parameters:
Name Type Description
toNumber number Number to call
fromNumber number Number to call from (a valid Twillo number)
Returns:
a new client.call object that makes the call
Type
object

(inner) twilloSend(toNumber, body, mediaUrl) → {json}

Send a message to a user
Parameters:
Name Type Description
toNumber number Number to send message to
body string Content of the message
mediaUrl string URL of media
Returns:
the message status and error status
Type
json

(inner) eMail(context, req, res, mail_data) → {boolean}

Send an Email to a user using Amazon SES Service
Parameters:
Name Type Description
context
req
res
mail_data JSON {
“sender_mail”: string,
“sender_name”: string,
“destination_mail”: string,
“subject”: string,
“content”: string,
“success_msg”: string,
“fallback_msg”: string
}
Returns:
Send the the Email using using Amazon SES Service
Type
boolean. true on success, false if failed
Was this article helpful to you? Yes No

How can we help?