ZipWhip-PHP-API [WIP]
, (*1)
Make sure you have a ZipWhip account! Visit zipwhip.com and register to get your username and password!, (*2)
Installation
composer require colling-media/zipwhip-php-api
, (*3)
Getting Started
$user = "YOUR_USERNAME_HERE"; //Typically, this is your phone number
$pass = "YOUR_PASSWORD_HERE";
$zipWhip = new \CollingMedia\ZipWhipClient($user, $pass);
$message = "Hello World";
$number = "5555555555"; //This can be an int too, either way works.
$zipWhip->sendMessage($number, $message); //Yay! Your message was sent, and you should be receiving it soon!
Available Methods
$zipWhip->deleteContact($contactId);
, (*4)
$zipWhip->listContacts();
, (*5)
$zipWhip->saveContact($contactInfo);
, (*6)
*For contact info, it must be an array, follow thier guide to see what is allowed., (*7)
$zipWhip->deleteConversation($fingerprint);
, (*8)
$zipWhip->getConversation($fingerprint, $limit, $start);
, (*9)
$zipWhip->listConversations($limit, $start);
, (*10)
NOTE! I didn't get to finish added the methods, will add tomorrow., (*11)
Find any issues? Let us know, and we will fix them ASAP!, (*12)