Download the PHP package dialonce/sdk without Composer
On this page you can find all versions of the php package dialonce/sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package sdk
Short Description The Dial Once PHP SDK
License MIT
Homepage https://github.com/dial-once/dialonce-sdk-php
Informations about the package sdk
dialonce-sdk-php
This git repository contains the Dial Once PHP SDK composer package.
Installation
Usage
IVR
For all of the IVR exposed method usage, you will need to instanciate an Application object using your api key and secret:
The code above will generate a token by calling our API. If your script is not persistant in memory or if you don't have APC, you may want to use a previously fetched token directly:
Log a call step to Dial Once
To allow us to gather analytics, and provide you some important KPI info, we need to get some call steps from your IVR:
$application
: a DialOnce\Application
object instance
$callerNumber
: a string, the caller phone number (inter. format with leading +)
$calledNumber
: a string, the IVR phone number that the user called (inter. format with leading +)
Check if a caller is eligible to use the Dial Once service
$application
: a DialOnce\Application
object instance
$callerNumber
: a string, the caller phone number (inter. format with leading +)
$calledNumber
: a string, the IVR phone number that the user called (inter. format with leading +)
The user requested the Dial Once service
$application
: a DialOnce\Application
object instance
$callerNumber
: a string, the caller phone number (inter. format with leading +)
$calledNumber
: a string, the IVR phone number that the user called (inter. format with leading +)
Check if the caller uses a mobile phone
$application
: a DialOnce\Application
object instance
$callerNumber
: a string, the caller phone number (inter. format with leading +)
$calledNumber
: a string, the IVR phone number that the user called (inter. format with leading +)