mailkitchen / api-wrapper-php
此包的最新版本(1.0)没有可用的许可证信息。
MailKitchen 公共API
1.0
2020-05-14 10:14 UTC
Requires
- php: >=5.4.0
- guzzlehttp/guzzle: ~6.0|~5.3
This package is auto-updated.
Last update: 2024-09-14 20:09:46 UTC
README
官方MailKitchen PHP包装器API
此仓库包含MailKitchen API的PHP包装器。
要求
PHP >= 5.4
安装
composer require mailkitchen/api-wrapper-php
开始使用!
使用您在MailKitchen平台账户中启用的"api_key"和"api_key_secret"登录:https://mail.mailkitchen.com
初始化您的MailKitchen客户端
<?php $mk = new \Mailkitchen\Client(['api_key' => '<your_api_key>' , 'api_secret_key' => '<your_api_secret_key>']); ?>
进行第一次调用
<?php require 'vendor/autoload.php'; // Generate an object MailKitchen by logging in $mk = new \Mailkitchen\Client(['api_key' => '<your_api_key>' , 'api_secret_key' => '<your_api_secret_key>']); // Get your campaigns $response = $mk->get(\Mailkitchen\Resources::CAMPAIGNS);
请求
主要客户端函数通过get、post、put和delete方法提供,参数作为参数传递。
可用资源
文档
您将在此处找到使用此API的文档:https://api.mailkitchen.com/docs/?php#introduction