iconneqt/rest-api-client 问题修复 & 功能扩展

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

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

iconneqt/rest-api-client

Composer 安装命令:

composer require iconneqt/rest-api-client

包简介

A PHP class library for the iConneqt REST API.

README 文档

README

Version 1.0.6

A PHP class library for the iConneqt REST API.

license Build Status

Copyright © 2016-2017 Advanced CRMMail Technology B.V.

Documentation

The API documentation can be found here: http://demo.iconneqt.nl/api/docs/.

Installation

Either use the included autoloader in src/autoloader.php or install using Composer:

composer require iconneqt/rest-api-client

Classes

Class hierarchy in the src directory.

If you use Composer, you can add the src to the autoloader as such:

/* @var $loader Composer\Autoload\ClassLoader */
$loader = require 'path-to-vendor/autoload.php';
$loader->add('Iconneqt', 'path-to-src');

The two most important classes are the following:

\Iconneqt\Api\Rest\Iconneqt

High-level access to the iConneqt REST API, returning rich objects from which you can explore/dive into the API further.

Method calls to the Iconneqt class return objects where properties can be accessed using getters and further objects can be queried from the REST API.

Alternatively, you can just use the Iconneqt class directly.

\Iconneqt\Api\Rest\Client\Client

Low-level API access component used internally by the Iconneqt class.

Essentially, this class is a somewhat generic wrapper for cURL lightly tuned for the iConneqt REST API.

You may want to use this class if you want to use all available functionality the REST API has to offer or want to bypass the use of objects.

Method calls to the Client class return stdClass objects by default, but can be set to return associative arrays instead.

Examples

Examples in the example directory.

Authentication for examples

  • Copy the file auth.example.ini to auth.ini.
  • Put your iConneqt username and password in the new file.
  • If you are on a different server from demo.iconneqt.nl, change the URL in the auth.ini file accordingly.

Examples

  • check_email demonstrates a simple form to check if an email address exists on a given list. Start with this example as an introduction to the Iconneqt class.
  • form shows a dynamic form to add new subscribers to a list.
  • low-level demonstrates using the Client class directly.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-09-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固