agyson/interakt-php-sdk
最新稳定版本:1.0.9
Composer 安装命令:
composer require agyson/interakt-php-sdk
包简介
Interakt PHP SDK
README 文档
README
Interakt PHP SDK. Read their docs for more information.
Installation
Run composer
composer require agyson/interakt-php-sdk
Usage
Getting API Key (Authentication)
Inside your app, you’ll want to set your api_key before making any track calls:
To find your API key,
-
go to your interakt account's Settings --> Developer Settings
-
copy the Secret Key.
-
Use this key
Standalone usage
Make sure you already have Interakt Account and API Key
require 'vendor/autoload.php'; use Agyson\InteraktPhpSdk\Interakt; $sms = new Interakt(env('api_key')); // Get All Users $interakt->get_users( $offset = 0, $limit = 100, $filter_start_date = "2010-01-01", $filter_end_date = "2023-01-01" ); // Creating & Updating Users $interakt->track_user( $userId = null, $fullPhoneNumber = null, $phoneNumber = null, $countryCode = null, $traits = [], $tags = [] ); // Assign Events to Specific Users $interakt->track_event( $userId = null, $fullPhoneNumber = null, $phoneNumber = null, $countryCode = null, $event = null, $traits = [] ); // Send Message Templates $interakt->send_template( $fullPhoneNumber = null, $phoneNumber = null, $countryCode = null, $callbackData = null, $templateName = null, $templateLanguageCode = null $headerValues = [], $bodyValues = [], $buttonValues = [], );
Read their Postman API Documentation for more detailed information on using the API.
License
MIT © Agy Nurwicaksono
统计信息
- 总下载量: 77
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-04-16