colling-media/zipwhip-php-api

This package is abandoned and no longer maintained. No replacement package was suggested.

ZipWhip PHP API

v0.0.1 2016-08-18 17:13 UTC

This package is auto-updated.

Last update: 2020-01-22 21:44:08 UTC


README

Packagist Packagist Github All Releases

Make sure you have a ZipWhip account! Visit zipwhip.com and register to get your username and password!

Installation

composer require colling-media/zipwhip-php-api

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);

$zipWhip->listContacts();

$zipWhip->saveContact($contactInfo);

*For contact info, it must be an array, follow thier guide to see what is allowed.

$zipWhip->deleteConversation($fingerprint);

$zipWhip->getConversation($fingerprint, $limit, $start);

$zipWhip->listConversations($limit, $start);

NOTE! I didn't get to finish added the methods, will add tomorrow.

Find any issues? Let us know, and we will fix them ASAP!