m1guelpf/laraccess-api 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

m1guelpf/laraccess-api

Composer 安装命令:

composer require m1guelpf/laraccess-api

包简介

PHP Client for the Laraccess API

README 文档

README

Latest Version on Packagist Software License Build Status Total Downloads

This package makes it easy to interact with Laraccess.

Installation

You can install the package via composer:

composer require m1guelpf/laraccess-api

Usage

You must pass a the API token to the constructor of M1guelpf\LaraccessApi\Laraccess.

$laraccess = new \M1guelpf\LaraccessApi\Laraccess('YOUR_LARACCESS_API_TOKEN');

or you can skip the token and use the connect() method later

$laraccess = new \M1guelpf\LaraccessApi\Laraccess();

$laraccess->connect('YOUR_LARACCESS_API_TOKEN');

Get User info

$laraccess->getUser();

Create User

$laraccess->createUser($user);

Edit User

$laraccess->editUser($user);

Delete User

$laraccess->deleteUser();

Get User Campaigns

$laraccess->getUserCampaigns();

Get Campaign

$laraccess->getCampaign($id);

Create Campaign

$laraccess->createCampaign($campaign);

Edit Campaign

$laraccess->editCampaign($id, $campaign);

Delete Campaign

$laraccess->deleteCampaign($id);

Get Campaign Leads

$laraccess->getCampaignLeads($id);

Get Lead

$laraccess->getLead($id);

Create Lead

$laraccess->createLead($id, $lead);

Edit Lead

$laraccess->editLead($id, $lead);

Delete Lead

$laraccess->deleteLead($id, $lead);

Invite Lead

$laraccess->inviteLead($id);

Renenerate Token

$laraccess->regenerateToken($set);

where $set is false if you don't want to use the new token on future requests.

Get the Guzzle Client

$laraccess->getClient();

Set the Guzzle Client

$client = new \GuzzleHttp\Client(); // Example Guzzle client
$laraccess->setClient($client);

where $client is an instance of \GuzzleHttp\Client.

Changelog

Please see CHANGELOG for more information what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email soy@miguelpiedrafita.com instead of using the issue tracker.

Credits

License

The Mozilla Public License 2.0 (MPL-2.0). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MPL-2.0
  • 更新时间: 2017-05-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固