示例#1
0
 * 2. User_id (type int)
 * 3. First Name (type string)
 * 4. Last Name (type string)
 * 5. Email (type string)
 * 6. Mobile no.(type int)
 * 7. Phone no. (type int)
 * 8. Username (type string) Only letters, numbers, and _ are allowed
 * 
 */
require_once '../eMobilePlatform.php';
use eMobilePlatform_SDK as eMobile;
define('EMOBILE_USERNAME', 'ENTER_USERNAME_HERE');
define('EMOBILE_API_KEY', 'ENTER_API_KEY_HERE');
try {
    $e = new eMobile\eMobilePlatform(EMOBILE_USERNAME, EMOBILE_API_KEY);
    $p = new eMobile\Param();
    /**
     * @param type int account_id. The Account_id to which the user belongs to
     */
    $p->addParam('account_id', XXXX);
    /**
     * @param type int user_id The user_id of the user to be updated
     */
    $p->addParam('user_id', XXXX);
    /**
     * @param type string first_name. The first name for the user account
     */
    $p->addParam('first_name', 'John');
    /**
     * @param type string last_name. The last name for the user account
     */
 * XML documents. See the documentation for more information.
 * 
 * This file demonstrates how to delete a member via the API.
 * 
 * This functionality requires the following parameters. 
 * ## These are not optional ##
 * 
 * 1. Account_id (Account must be of a client type) (type int)
 * 2. Phone number (type int)
 */
require_once '../eMobilePlatform.php';
use eMobilePlatform_SDK as eMobile;
define('EMOBILE_USERNAME', 'ENTER_USERNAME_HERE');
define('EMOBILE_API_KEY', 'ENTER_API_KEY_HERE');
$e = new eMobile\eMobilePlatform(EMOBILE_USERNAME, EMOBILE_API_KEY);
$p = new eMobile\Param();
try {
    /**
     * @param type int account_id. The account under which the member was created
     * 
     * Account has to be of client type
     */
    $p->addParam('account_id', XXXX);
    /**
     * @param type int phone number. The phone number of the member to be deleted
     *  Should be a 10 digit number Ex: 1234567890
     */
    $p->addParam('phone', XXXXXXXX);
    $r = $e->executeAction('message', 'member_delete', $p);
    if ($r->isSuccessful()) {
        $data = $r->getData();
 * This file demonstrates how to create a statement via the API.
 * 
 * This functionality requires the following parameters. 
 * ## These are not optional ##
 * 
 * 1. Account_id (type int)
 * 2. Start Date (type Date, Format: YYYY-MM-DD)
 * 3. End Date (type Date, Format: YYYY-MM-DD)
 * 
 */
require_once '../eMobilePlatform.php';
use eMobilePlatform_SDK as eMobile;
define('EMOBILE_USERNAME', 'ENTER_USERNAME_HERE');
define('EMOBILE_API_KEY', 'ENTER_API_KEY_HERE');
$e = new eMobile\eMobilePlatform(EMOBILE_USERNAME, EMOBILE_API_KEY);
$p = new eMobile\Param();
try {
    /**
     * @param type int account_id. The Account_id for which the statement is required
     */
    $p->addParam('account_id', XXXX);
    /**
     * @param type string/date format start_date YYYY-MM-DD. The date from which the statement should include charges
     */
    $p->addParam('start_date', "2013-01-01");
    /**
     * @param type string/date format end_date YYYY-MM-DD. The date till which the charges must be calculated for the statement
     */
    $p->addParam('end_date', "2013-06-01");
    $r = $e->executeAction('billing', 'create_statement', $p);
    if ($r->isSuccessful()) {
 * 
 * This functionality requires the following parameters. 
 * ## These are not optional ##
 * 
 * 1. Account_id (Account must be of a client type) (type int)
 * 2. SMS Blast campaign name (type string)
 * 3. SMS Blast message (type string)
 * 4. Campaign Start time (type date string Y-m-d H:i:s)
 * 
 */
require_once '../eMobilePlatform.php';
use eMobilePlatform_SDK as eMobile;
define('EMOBILE_USERNAME', 'ENTER_USERNAME_HERE');
define('EMOBILE_API_KEY', 'ENTER_API_KEY_HERE');
$e = new eMobile\eMobilePlatform(EMOBILE_USERNAME, EMOBILE_API_KEY);
$p = new eMobile\Param();
try {
    /**
     * @param type int account_id. The Account to which the blast campaign is associated with
     * 
     * Account has to be of client type
     */
    $p->addParam('account_id', XXX);
    /**
     * @param type int blast_id. Id of SMS Blast Campaign to be updated
     * 
     */
    $p->addParam('blast_id', XXX);
    /**
     * @param type string campaign. Name of the SMS Blast Campaign
     */
 * 
 * The optional parameters are:
 * 
 * 1. Campaign Start time (type date string Y-m-d H:i:s)
 * 2. Campaign Start timezone (type string)  
 * 		Ex: Central Timezone can be represented by 'C'
 * 3. Campaign End time (type date string Y-m-d H:i:s) 
 * 4. Campaign End timezone (type string)
 * 5. Callbackurl (type string)
 */
require_once '../eMobilePlatform.php';
use eMobilePlatform_SDK as eMobile;
define('EMOBILE_USERNAME', 'ENTER_USERNAME_HERE');
define('EMOBILE_API_KEY', 'ENTER_API_KEY_HERE');
$e = new eMobile\eMobilePlatform(EMOBILE_USERNAME, EMOBILE_API_KEY);
$p = new eMobile\Param();
try {
    /**
     * @param type int account_id. The account_id under which the keyword campaign has to be created
     * 
     * Account has to be of client type
     */
    $p->addParam('account_id', XXXX);
    /**
     * @param type string Keyword campaign name
     */
    $p->addParam('name', 'KEYWORD CREATE TEST');
    /**
     * @param type string Keyword to be created
     */
    $p->addParam('keyword', 'create5');
示例#6
0
 * 3. Last Name (type string)
 * 4. Email (type string)
 * 5. Mobile no.(type int)
 * 6. Phone no. (type int)
 * 7. Username (type string) Only letters, numbers, and _ are allowed
 * 8. Password (type string) Must contain upper and lower case letters with number. Must be between 8-32 digits
 * 9. Permission_Group_Id (type int)
 * 
 */
require_once '../eMobilePlatform.php';
use eMobilePlatform_SDK as eMobile;
define('EMOBILE_USERNAME', 'ENTER_USERNAME_HERE');
define('EMOBILE_API_KEY', 'ENTER_API_KEY_HERE');
try {
    $e = new eMobile\eMobilePlatform(EMOBILE_USERNAME, EMOBILE_API_KEY);
    $p = new eMobile\Param();
    /**
     * @param type int account_id The Account_id under which a user has to be created
     */
    $p->addParam('account_id', XXXX);
    /**
     * @param type string first_name. The first name for the user account
     */
    $p->addParam('first_name', 'John');
    /**
     * @param type string last_name. The last name for the user account
     */
    $p->addParam('last_name', 'Doe');
    /**
     * @param type string email. The email address for the user
     *  Must be a unique and valid e-mail address
 * 
 * This functionality requires the following parameters. 
 * ## These are not optional ##
 * 
 * 1. Account_id (Account must be of a client type) (type int)
 * 2. SMS Blast campaign name (type string)
 * 3. SMS Blast message (type string)
 * 4. Campaign Schedule
 * 
 */
require_once '../eMobilePlatform.php';
use eMobilePlatform_SDK as eMobile;
define('EMOBILE_USERNAME', 'ENTER_USERNAME_HERE');
define('EMOBILE_API_KEY', 'ENTER_API_KEY_HERE');
$e = new eMobile\eMobilePlatform(EMOBILE_USERNAME, EMOBILE_API_KEY);
$p = new eMobile\Param();
try {
    /**
     * @param type int account_id. The Account to which the blast campaign should be associated with
     * 
     * Account has to be of client type
     */
    $p->addParam('account_id', XXXX);
    /**
     * @param type string campaign. Name of the SMS Blast Campaign
     */
    $p->addParam('campaign', 'SMS BLAST TEST3');
    /**
     * @param type string meesage. The message to be sent
     */
    $p->addParam('message', 'THIS IS A TEST SMS BLAST');
  d. Address Type
  e. Address Line1
  f. City
  g. State
  h. Zip
  i. Phone
  j. Account Permission Group ID
  k. Shortcodes
  l. Account_id
*/
require_once '../eMobilePlatform.php';
use eMobilePlatform_SDK as eMobile;
define('EMOBILE_USERNAME', 'ENTER_USERNAME_HERE');
define('EMOBILE_API_KEY', 'ENTER_API_KEY_HERE');
$e = new eMobile\eMobilePlatform(EMOBILE_USERNAME, EMOBILE_API_KEY);
$p = new eMobile\Param();
try {
    /**
     * @param type int account_id The account_id of the account to be updated
     */
    $p->addParam('account_id', XXXX);
    /**
     * @param type string company_name
     */
    $p->addParam('company_name', 'ACME Test Company');
    /**
     * @param type string business_details. The description about the comapny
     */
    $p->addParam('business_details', 'Mobile Marketing');
    /**
     * @param type string subdomain. The subdomain for the account
 * This file demonstrates how to get the total charge via the API.
 * 
 * This functionality requires the following parameters. 
 * ## These are not optional ##
 * 
 * 1. Account_id (type int)
 * 2. Start Date (type Date, Format: YYYY-MM-DD)
 * 3. End Date (type Date, Format: YYYY-MM-DD)
 * 
 */
require_once '../eMobilePlatform.php';
use eMobilePlatform_SDK as eMobile;
define('EMOBILE_USERNAME', 'ENTER_USERNAME_HERE');
define('EMOBILE_API_KEY', 'ENTER_API_KEY_HERE');
$e = new eMobile\eMobilePlatform(EMOBILE_USERNAME, EMOBILE_API_KEY);
$p = new eMobile\Param();
try {
    /**
     * @param type int account_id. The Account_id  to check charges for
     */
    $p->addParam('account_id', XXXX);
    /**
     * @param type string/date format start_date YYYY-MM-DD. The date from which the charges must be calculated
     */
    $p->addParam('start_date', "2013-06-01");
    /**
     * @param type string/date format end_date YYYY-MM-DD. The date till which the charges must be calculated
     */
    $p->addParam('end_date', "2013-09-01");
    $r = $e->executeAction('billing', 'calculate_total_charge', $p);
    if ($r->isSuccessful()) {
 * Version: 1.0
 *
 * This application exists to allow outside connections to the eMobilePlatform.
 * This API works by sending and receiving both well-formed and valid
 * XML documents. See the documentation for more information.
 */
/*
 * This file demonstrates how to create an account through the API. 
 */
require_once '../eMobilePlatform.php';
use eMobilePlatform_SDK as eMobile;
define('EMOBILE_USERNAME', 'ENTER_USERNAME_HERE');
define('EMOBILE_API_KEY', 'ENTER_API_KEY_HERE');
try {
    $e = new eMobile\eMobilePlatform(EMOBILE_USERNAME, EMOBILE_API_KEY);
    $p = new eMobile\Param();
    /**
     * @param type string first_name. The first name for the account
     */
    $p->addParam('first_name', 'John');
    /**
     * @param type string last_name. The last name for the account
     */
    $p->addParam('last_name', 'Doe');
    /**
     * @param type string company_name. The company name for the account
     */
    $p->addParam('company_name', 'ACME Test Company');
    /**
     * @param type string email. The email address for the account
     *  Must be a unique and valid e-mail address
 * XML documents. See the documentation for more information.
 * 
 * This file demonstrates how to list the no. of alloted clients for a given account_id via the API.
 * 
 * This functionality requires the following parameters. 
 * ## These are not optional ##
 * 
 * Account_id (type int)
 * 
 */
require_once '../eMobilePlatform.php';
use eMobilePlatform_SDK as eMobile;
define('EMOBILE_USERNAME', 'ENTER_USERNAME_HERE');
define('EMOBILE_API_KEY', 'ENTER_API_KEY_HERE');
$e = new eMobile\eMobilePlatform(EMOBILE_USERNAME, EMOBILE_API_KEY);
$p = new eMobile\Param();
try {
    /**
     *  @param type int account_id. The Account_id to check the no. of allotted clients
     */
    $p->addParam('account_id', XXXX);
    $r = $e->executeAction('billing', 'get_num_allotted_clients', $p);
    if ($r->isSuccessful()) {
        $data = $r->getData();
        echo 'The number of clients allotted for this account: ';
        echo '<pre>';
        print_r($data);
        echo '</pre>';
    } else {
        echo $r->getMessage();
    }
示例#12
0
 * Copyright: AvidMobile, LLC 2013
 * Version: 1.0
 *
 * This application exists to allow outside connections to the eMobilePlatform.
 * This API works by sending and receiving both well-formed and valid
 * XML documents. See the documentation for more information.
 * 
 * This file demonstrates how to list the Groups under an account via the API.
 * 
 */
require_once '../eMobilePlatform.php';
use eMobilePlatform_SDK as eMobile;
define('EMOBILE_USERNAME', 'ENTER_USERNAME_HERE');
define('EMOBILE_API_KEY', 'ENTER_API_KEY_HERE');
$e = new eMobile\eMobilePlatform(EMOBILE_USERNAME, EMOBILE_API_KEY);
$p = new eMobile\Param();
try {
    /**
     * @todo Remove any parameters below that you are not using 
     *
     * All parameters below are optional
     * If you do not want to pass any of these parameters to the API simply remove those addParam statements
     */
    /**
     * @param type int account_id. The account_id for which group list is requested
     * 
     * Account has to be of client type
     */
    $p->addParam('account_id', XXXX);
    $r = $e->executeAction('message', 'group_list', $p);
    if ($r->isSuccessful()) {
 * This file demonstrates how to get the quota overages via the API.
 * 
 * This functionality requires the following parameters. 
 * ## These are not optional ##
 * 
 * 1. Account_id (type int)
 * 2. Month (type int, Format: MM)
 * 3. Year (type int, Format: YYYY)
 * 
 */
require_once '../eMobilePlatform.php';
use eMobilePlatform_SDK as eMobile;
define('EMOBILE_USERNAME', 'ENTER_USERNAME_HERE');
define('EMOBILE_API_KEY', 'ENTER_API_KEY_HERE');
$e = new eMobile\eMobilePlatform(EMOBILE_USERNAME, EMOBILE_API_KEY);
$p = new eMobile\Param();
try {
    /**
     *  @param type int account_id. The Account_id to check charges for
     */
    $p->addParam('account_id', XXX);
    /**
     * @param type int MM. The month for which the quota overages should be calculated
     */
    $p->addParam('month', '06');
    /**
     * @param type int YYYY. The year for which the quota overages should be calculated
     */
    $p->addParam('year', '2013');
    $r = $e->executeAction('billing', 'get_quotas_overages', $p);
    if ($r->isSuccessful()) {
 * This API works by sending and receiving both well-formed and valid
 * XML documents. See the documentation for more information.
 */
/*
 * This file demonstrates how to delete an account through the API
 * This functionality requires the following parameters. 
 * ## These are not optional ##
 * 
 *  Account_id (type int)
 */
require_once '../eMobilePlatform.php';
use eMobilePlatform_SDK as eMobile;
define('EMOBILE_USERNAME', 'ENTER_USERNAME_HERE');
define('EMOBILE_API_KEY', 'ENTER_API_KEY_HERE');
$e = new eMobile\eMobilePlatform(EMOBILE_USERNAME, EMOBILE_API_KEY);
$p = new eMobile\Param();
try {
    /**
     * @param type int account_id The id of the account to be deleted
     */
    $p->addParam('account_id', XXXX);
    $r = $e->executeAction('account', 'delete', $p);
    if ($r->isSuccessful()) {
        echo 'Account Deleted Successfully';
    } else {
        echo $r->getMessage();
    }
} catch (\Exception $a) {
    error_log($a->getMessage());
    echo 'Exception: ' . $a->getMessage();
}
 * This file demonstrates how to get the Qwasi billing info via the API.
 * 
 * This functionality requires the following parameters. 
 * ## These are not optional ##
 * 
 * 1. Account_id (type int)
 * 2. Month (type int, Format: MM)
 * 3. Year (type int, Format: YYYY)
 * 
 */
require_once '../eMobilePlatform.php';
use eMobilePlatform_SDK as eMobile;
define('EMOBILE_USERNAME', 'ENTER_USERNAME_HERE');
define('EMOBILE_API_KEY', 'ENTER_API_KEY_HERE');
$e = new eMobile\eMobilePlatform(EMOBILE_USERNAME, EMOBILE_API_KEY);
$p = new eMobile\Param();
try {
    /**
     *  @param type int account_id. The Account_id for which the billing informatio is required
     */
    $p->addParam('account_id', XXXX);
    /**
     *  @param type string MM. The month for which the billing info is required
     */
    $p->addParam('month', '9');
    /**
     *  @param type string YYYY. The year corresponding to the month for which the billing info is required
     */
    $p->addParam('year', '2013');
    $r = $e->executeAction('billing', 'get_billing_info', $p);
    if ($r->isSuccessful()) {
 * This API works by sending and receiving both well-formed and valid
 * XML documents. See the documentation for more information.
 * 
 * This file demonstrates how to check if a keyword is available for a given shortcode via the API.
 * 
 * This functionality requires the following parameters. These are not optional.
 * 
 * Keyword (type string)
 * 
 */
require_once '../eMobilePlatform.php';
use eMobilePlatform_SDK as eMobile;
define('EMOBILE_USERNAME', 'ENTER_USERNAME_HERE');
define('EMOBILE_API_KEY', 'ENTER_USERNAME_HERE');
$e = new eMobile\eMobilePlatform(EMOBILE_USERNAME, EMOBILE_API_KEY);
$p = new eMobile\Param();
try {
    /**
     *  @param type string keyword. The keyword to check availability
     */
    $p->addParam('keyword', 'create5');
    /**
     * @todo Remove any parameters below that you are not using 
     *
     * All parameters below are optional
     * If you do not want to pass any of these parameters to the API simply remove those addParam statements
     */
    /**
     *  @param type int account_id. The Account_id to be used to check for the keyword availability
     *   Usually the account_id where this keyword will be used
     */
 * This file demonstrates how to get the total clients via the API.
 * 
 * This functionality requires the following parameters. 
 * ## These are not optional ##
 * 
 * 1. Account_id (type int)
 * 2. Start Date (type Date, Format: Y-M-D)
 * 3. End Date (type Date, Format: Y-M-D)
 * 
 */
require_once '../eMobilePlatform.php';
use eMobilePlatform_SDK as eMobile;
define('EMOBILE_USERNAME', 'ENTER_USERNAME_HERE');
define('EMOBILE_API_KEY', 'ENTER_API_KEY_HERE');
$e = new eMobile\eMobilePlatform(EMOBILE_USERNAME, EMOBILE_API_KEY);
$p = new eMobile\Param();
try {
    /**
     *  @param type int account_id. The Account_id for which the no. of clients is requested
     */
    $p->addParam('account_id', XXXX);
    /**
     *  @param type string/date format start_date Y-M-D.
     */
    $p->addParam('start_date', "2013-06-01");
    /**
     *  @param type string/date format end_date Y-M-D.
     */
    $p->addParam('end_date', "2013-09-01");
    $r = $e->executeAction('billing', 'get_total_clients', $p);
    if ($r->isSuccessful()) {
示例#18
0
 * XML documents. See the documentation for more information.
 * 
 * This file demonstrates how to delete a SMS BLAST campaign via the API.
 * 
 * This functionality requires the following parameters. 
 * ## These are not optional ##
 * 
 * 1. Account_id (Account must be of a client type) (type int)
 * 2. SMS Blast Id (type int)
 */
require_once '../eMobilePlatform.php';
use eMobilePlatform_SDK as eMobile;
define('EMOBILE_USERNAME', 'ENTER_USERNAME_HERE');
define('EMOBILE_API_KEY', 'ENTER_API_KEY_HERE');
$e = new eMobile\eMobilePlatform(EMOBILE_USERNAME, EMOBILE_API_KEY);
$p = new eMobile\Param();
try {
    /**
     * @param type int account_id. The Account to which the blast campaign belongs
     * 
     * Account has to be of client type
     */
    $p->addParam('account_id', XXXX);
    /**
     * @param type int blast_id. Id of the SMS blast campaign to be deleted
     */
    $p->addParam('blast_id', XXXX);
    $r = $e->executeAction('message', 'blast_delete', $p);
    if ($r->isSuccessful()) {
        $data = $r->getData();
        echo "<br>";
示例#19
0
 * This application exists to allow outside connections to the eMobilePlatform.
 * This API works by sending and receiving both well-formed and valid
 * XML documents. See the documentation for more information.
 */
/*
 * This file demonstrates how to send a one-off text message via the API.
 * The phone number supplied is not stored in a database. This only sends
 * a single message that is 160 characters or less. You must include opt-out
 * information.
 */
require_once '../eMobilePlatform.php';
use eMobilePlatform_SDK as eMobile;
define('EMOBILE_USERNAME', 'AABCPOC');
define('EMOBILE_API_KEY', 'jM5iE2rCuEhNYDPp5K5D1eJbw');
$e = new eMobile\eMobilePlatform(EMOBILE_USERNAME, EMOBILE_API_KEY);
$p = new eMobile\Param();
try {
    /**
     * @param type int account_id. The account_id using which the message has to be sent
     * 
     * Account has to be of client type
     */
    $p->addParam('account_id', 37297);
    /**
     * @param type int mobile
     * 
     * A ten digit mobile number.
     */
    $p->addParam('mobile', 5624004910);
    /**
     * @param type string shortcode
 * 
 * This file demonstrates how to generate a report of the Qwasi billing info for accounts under the current account via the API.
 * 
 * This functionality requires the following parameters. 
 * ## These are not optional ##
 * 
 * 1. Account_id (type int)
 * 2. Start Date (type Date, Format: YYYY-MM-DD)
 * 3. End Date (type Date, Format: YYYY-MM-DD)
 */
require_once '../eMobilePlatform.php';
use eMobilePlatform_SDK as eMobile;
define('EMOBILE_USERNAME', 'ENTER_USERNAME_HERE');
define('EMOBILE_API_KEY', 'ENTER_API_KEY_HERE');
$e = new eMobile\eMobilePlatform(EMOBILE_USERNAME, EMOBILE_API_KEY);
$p = new eMobile\Param();
try {
    /**
     *  @param type int account_id. The Account_id  for which the statement is required
     */
    $p->addParam('account_id', XXXX);
    /**
     * @param type string/date format start_date YYYY-MM-DD. The date from which the charges must be calculated
     */
    $p->addParam('start_date', "2013-06-01");
    /**
     * @param type string/date format end_date YYYY-MM-DD. The date till which the charges must be calculated
     */
    $p->addParam('end_date', "2013-09-01");
    $r = $e->executeAction('billing', 'report', $p);
    if ($r->isSuccessful()) {
 * 
 * This file demonstrates how to delete a keyword using the keyword_id via the API.
 * 
 * This functionality requires the following parameters. 
 * ## These are not optional ##
 * 
 * 1. Keyword_id (type int)
 * 2. Account_id (type int) (Account must be of a client type)
 * 3. Shortcode (type int)
 */
require_once '../eMobilePlatform.php';
use eMobilePlatform_SDK as eMobile;
define('EMOBILE_USERNAME', 'ENTER_USERNAME_HERE');
define('EMOBILE_API_KEY', 'ENTER_API_KEY_HERE');
$e = new eMobile\eMobilePlatform(EMOBILE_USERNAME, EMOBILE_API_KEY);
$p = new eMobile\Param();
try {
    /**
     * @param type int account_id. The account_id using which the keyword campaign was created
     * 
     * Account has to be of client type
     */
    $p->addParam('account_id', XXXX);
    /**
     * @param type int Keyword_id of the keyword to be updated
     */
    $p->addParam('keyword_id', XXXX);
    /**
     * @param type int shortcode for Keyword campaign
     */
    $p->addParam('shortcode', 63975);
 * This file demonstrates how to Opt Out a Member from a specific group in the Marketing Center DB via the API.
 * 
 * This functionality requires the following parameters. 
 * ## These are not optional ##
 * 
 * 1. Account_id (Account must be of a client type) (type int)
 * 2. Group_id (Group from which the members have to be removed)
 * 3. Phone numbers (type array)
 * 
 */
require_once '../eMobilePlatform.php';
use eMobilePlatform_SDK as eMobile;
define('EMOBILE_USERNAME', 'ENTER_USERNAME_HERE');
define('EMOBILE_API_KEY', 'ENTER_API_KEY_HERE');
$e = new eMobile\eMobilePlatform(EMOBILE_USERNAME, EMOBILE_API_KEY);
$p = new eMobile\Param();
try {
    /**
     * @param type int account_id. The account_id under which the group is created
     * 
     * Account has to be of client type
     */
    $p->addParam('account_id', XXXX);
    /**
     * @param type int group_id. Group to which the members belong to
     *  Use group_list.php to check the available/existing groups
     */
    $p->addParam('group_id', XXXX);
    /**
     * @param type array ph_numbers. The phone numbers() of members who want to OPT OUT.
     *  Can contain a single phone number, or an array of phone numbers.
 * Copyright: AvidMobile, LLC 2013
 * Version: 1.0
 *
 * This application exists to allow outside connections to the eMobilePlatform.
 * This API works by sending and receiving both well-formed and valid
 * XML documents. See the documentation for more information.
 * 
 * This file demonstrates how to generate a report of the keyword campaigns via the API.
 * 
 */
require_once '../eMobilePlatform.php';
use eMobilePlatform_SDK as eMobile;
define('EMOBILE_USERNAME', 'ENTER_USERNAME_HERE');
define('EMOBILE_API_KEY', 'ENTER_API_KEY_HERE');
$e = new eMobile\eMobilePlatform(EMOBILE_USERNAME, EMOBILE_API_KEY);
$p = new eMobile\Param();
try {
    /**
     * @todo Remove any parameters below that you are not using 
     *
     * All parameters below are optional
     * If you do not want to pass any of these parameters to the API simply remove those addParam statements
     */
    /**
     * @param type int account_id. The Account_id for which the report has to be generated
     * 
     * Account has to be of client type
     */
    $p->addParam('account_id', XXXX);
    $r = $e->executeAction('message', 'keyword_report', $p);
    if ($r->isSuccessful()) {
示例#24
0
 * 
 * This file demonstrates how to Opt Out a Member from the Marketing Center DB via the API.
 * 
 * This functionality requires the following parameters. 
 * ## These are not optional ##
 * 
 * 1. Account_id (Account must be of a client type) (type int)
 * 2. Phone numbers (type array)
 * 
 */
require_once '../eMobilePlatform.php';
use eMobilePlatform_SDK as eMobile;
define('EMOBILE_USERNAME', 'blamo54');
define('EMOBILE_API_KEY', 'dt5yp0vspgdfpi8905lkns');
$e = new eMobile\eMobilePlatform(EMOBILE_USERNAME, EMOBILE_API_KEY);
$p = new eMobile\Param();
try {
    /**
     * @param type int account_id. The Account_id to which the member belongs
     * 
     * Account has to be of client type
     */
    $p->addParam('account_id', XXXX);
    /**
     * @param type int ph_number. The phone number of the member who wants to OPT OUT.
     */
    $p->addParam('ph_number', XXXXXX);
    $r = $e->executeAction('message', 'opt_out', $p);
    if ($r->isSuccessful()) {
        $data = $r->getData();
        echo "<br>";
 * XML documents. See the documentation for more information.
 * 
 * This file demonstrates how to list the available billing dates via the API.
 * 
 * This functionality requires the following parameters. 
 * ## These are not optional ##
 * 
 *  Account_id (type int)
 * 
 */
require_once '../eMobilePlatform.php';
use eMobilePlatform_SDK as eMobile;
define('EMOBILE_USERNAME', 'ENTER_USERNAME_HERE');
define('EMOBILE_API_KEY', 'ENTER_API_KEY_HERE');
$e = new eMobile\eMobilePlatform(EMOBILE_USERNAME, EMOBILE_API_KEY);
$p = new eMobile\Param();
try {
    /**
     * @param type int account_id. The Account_id to find available billing dates for
     */
    $p->addParam('account_id', XXXX);
    $r = $e->executeAction('billing', 'billing_dates_available', $p);
    if ($r->isSuccessful()) {
        $data = $r->getData();
        echo 'The available billing dates: ';
        echo '<pre>';
        print_r($data);
        echo '</pre>';
    } else {
        echo $r->getMessage();
    }
 * 
 * The optional parameters are:
 * 
 * 1. Campaign Start time (type date string Y-m-d H:i:s)
 * 2. Campaign Start timezone (type string)  
 * 		Ex: Central Timezone can be represented by 'C'
 * 3. Campaign End time (type date string Y-m-d H:i:s) 
 * 4. Campaign End timezone (type string)
 * 5. Callbackurl (type string)
 */
require_once '../eMobilePlatform.php';
use eMobilePlatform_SDK as eMobile;
define('EMOBILE_USERNAME', 'ENTER_USERNAME_HERE');
define('EMOBILE_API_KEY', 'ENTER_API_KEY_HERE');
$e = new eMobile\eMobilePlatform(EMOBILE_USERNAME, EMOBILE_API_KEY);
$p = new eMobile\Param();
try {
    /**
     *  @param type int account_id. The account_id the keyword campaign belongs to
     *  Account has to be of client type
     */
    $p->addParam('account_id', XXXX);
    /**
     *  @param type string Keyword campaign name
     */
    $p->addParam('name', 'KEYWORD CREATE TEST 12333');
    /**
     *  @param type int Keyword_id of the keyword to be updated
     */
    $p->addParam('keyword_id', XXXX);
    /**