PHP code example of dosomething / mobilecommons-php
1. Go to this page and download the library: Download dosomething/mobilecommons-php library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
dosomething / mobilecommons-php example snippets
`
$config = array(
'username' => USERNAME, // Mobile commons username
'password' => PW // Mobilecommons password
);
$MobileCommons = new MobileCommons($config);
$campaigns = $MobileCommons->campaigns();
print_r($campaigns); // Print list of campaigns