定制 theapiguys/api-helpers 二次开发

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

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

theapiguys/api-helpers

Composer 安装命令:

composer require theapiguys/api-helpers

包简介

Helpers for Harvest, Asana and Infusionsoft APIs, standardizing some common tasks

README 文档

README

Latest Stable Version

This package is originally a split from a project that works with those three APIs. Its main purpose is to level the different ways they work, by providing a common way to instantiate clients and retrieve data.

While it does include classes for the three SDKs, you do not need to have all three installed to use its benefits. That's why there's no SDK on the composer's require section - more on this in the install procedures below.

Installation

  1. Include this library in your project by requiring it: composer require theapiguys/api-helpers *
  2. Depending on the SDKs you need, you should also require the following libraries:
    • Harvest: cogitools/hapi: ^0.1.18
    • Asana: asana/asana: ^0.5.0
    • Infusionsoft: infusionsoft/php-sdk: 1.3.*
  3. Configure the following constants somewhere in your code, depending on the SDKs you need:
    • BASE_URL (mandatory): used to define the auth direct URI;
    • Auth parameters:
      • HARVEST_ACCOUNT, HARVEST_CLIENT_ID and HARVEST_CLIENT_SECRET
      • ASANA_CLIENT_ID and ASANA_CLIENT_SECRET
      • INFUSIONSOFT_APP_NAME, INFUSIONSOFT_CLIENT_ID and INFUSIONSOFT_CLIENT_SECRET
    • Auth files: each of these are a path to a file that will store the auth token for each service:
      • ASANA_AUTH_FILE
      • HARVEST_AUTH_FILE
  4. Prepare your web server to receive authenticated responses at auth/(asana|harvest|infusion).php (see #1)
  5. Take a look at the source code and see what each class is capable of :)

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-01-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固