dmamontov/amo-restapi 问题修复 & 功能扩展

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

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

dmamontov/amo-restapi

最新稳定版本:1.0.3

Composer 安装命令:

composer require dmamontov/amo-restapi

包简介

PHPClient to work with through AmoCRM Rest API.

README 文档

README

Latest Stable Version License Total Downloads

AmoCRM API Client

This class can Manage accounts of AmoCRM using its REST API.

It can obtain an authorization token for a given account, so it can send HTTP requests to the AmoCRM Rest API in order to perform several types of operations.

Currently it can the current accounts, set and get contacts, contact links, leads, companies, tasks, notes and fields.

Requirements

  • PHP version >5.0
  • curl

Available methods

  • getAccounts
  • setContacts, getContactsList, getContactsLinks
  • setLeads, getLeadsList
  • setCompany, getCompanyList
  • setTasks, getTasksList
  • setNotes, getNotesList
  • setFields

Installation

  1. Install composer

  2. Follow in the project folder:

composer require dmamontov/amo-restapi ~1.0.3

In config composer.json your project will be added to the library dmamontov/amo-restapi, who settled in the folder vendor/. In the absence of a config file or folder with vendors they will be created.

If before your project is not used composer, connect the startup file vendors. To do this, enter the code in the project:

require 'path/to/vendor/autoload.php';

Examples of use

Getting information about the leads

$amo = new AmoRestApi($subDomain, $login, $key);
$order = $amo->getLeadsList(1, 0, 2556);

Creating a contacts

$amo = new AmoRestApi($subDomain, $login, $key);
$contacts['add'] = array(
    'name' => 'Test',
    'request_id' => '2555',
    'date_create' => time()
);
$result = $amo->setContacts($contacts);

统计信息

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

GitHub 信息

  • Stars: 10
  • Watchers: 1
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-05-10