定制 mailxpert/php-sdk 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mailxpert/php-sdk

最新稳定版本:0.1.5

Composer 安装命令:

composer require mailxpert/php-sdk

包简介

mailXpert SDK for PHP

README 文档

README

This library allows you to easily manipulate the mailXpert API V2.0.

NOTE: This library is still considered as in alpha release. Although it is meant to be light and there is no plan for big changes in it, be careful if planned to use in production environment.

Scrutinizer Code Quality

Installation

Install this package with composer:

composer require mailxpert/php-sdk

Usage

You can check the examples/ folders.

Initialisation

The basic usage is the following:

$mailxpert = new Mailxpert([
    'app_id' => $appId,
    'app_secret' => $appSecret 
]);

Show the "Login with mailXpert" button

<a href="<?php echo $mailxpert->getLoginHelper()->getLoginUrl($redirectUrl); ?>">Login with mailXpert</a>

Retrieve the access token from the code

if (isset($_REQUEST['code'])) {
    $accessToken = $mailxpert->getLoginHelper()->getAccessToken($redirectUrl);
}

Do a query with the access token

$data = json_decode($mailxpert->sendRequest('GET','/contact_lists',[], $accessToken), true);
$contactLists = $data['data'];

Note: You can also set the access token for all your requests:

$mailxpert->setAccessToken($access_token);

and then you can do any call like this:

$mailxpert->sendRequest('GET','/contact_lists');

Support

Made by ARTACK WebLab GmbH. Feel free to contribute or submit issues.

-- Inspired from Facebook PHP SDK 4.0 https://github.com/facebook/facebook-php-sdk-v4 --

统计信息

  • 总下载量: 2.19k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-08-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固