whisperbuddy / whisperbuddy-php
whisperbuddy.com 的 Lead 和 Listener 的 PHP 库
1.0.5
2016-04-08 09:07 UTC
Requires
- php: >=5.4.0
- curl/curl: ^1.3
- firebase/php-jwt: ^3.0
This package is not auto-updated.
Last update: 2024-09-14 18:26:18 UTC
README
- 安装
您需要 PHP 5.4 或更高版本
composer require whisperbuddy/whisperbuddy-php
- 示例用法
<?php require(__DIR__ . 'path/to/vendor/autoload.php'); use whisperbuddy\WhisperBuddy; $key = "NC8XanSyKcyU8PtUOnl-xxxxxxxxxx"; $secret = "mE7sGcH-zQc_-KF6xxxxxxxxxxxxxx"; $whisperbuddy = new WhisperBuddy($key,$secret); // Create new Lead $data = [ 'name'=> 'John Smith' , 'email'=>'johnsmith@gmail.com']; $response = $whisperbuddy->createLead($data); var_dump($response); // Create Listener $listener = $whisperbuddy->listen(); var_dump($listener);