colling-media/zipwhip-php-api

此包已被弃用且不再维护。未建议替代包。

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

请确保您有一个ZipWhip账户!访问 zipwhip.com 并注册以获取用户名和密码!

安装

composer require colling-media/zipwhip-php-api

入门指南


$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!

可用方法

$zipWhip->deleteContact($contactId);

$zipWhip->listContacts();

$zipWhip->saveContact($contactInfo);

注意!对于联系人信息,它必须是一个数组,请遵循他们的指南以查看允许的内容。

$zipWhip->deleteConversation($fingerprint);

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

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

注意! 我还没有完成添加方法,明天会添加。

发现任何问题?请告诉我们,我们将尽快修复它们!