承接 jakezatecky/work-etc-client 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

jakezatecky/work-etc-client

最新稳定版本:v2.0.0

Composer 安装命令:

composer require jakezatecky/work-etc-client

包简介

A thin HTTP client for WORK[etc]'s API.

README 文档

README

Packagist Build Status GitHub license Scrutinizer Code Quality

Warning – This package is no longer maintained.

WorkEtcClient is a thin HTTP client to the WORK[etc] API. It handles login authentication and simple invocations of the WORK[etc] operations.

Installation

This library is only available through a Composer package. Add the following to your composer.json:

{
    "require": {
        "jakezatecky/work-etc-client": "^2.0.0"
    }
}

Usage

Usage is simple. Invoke WorkEtcClient::connect and pass in your organization's domain, your email, and your password. Then, call the invoke method and pass in the relevant operation and its required parameters as an associative array.

$domain   = 'yourcompany';
$email    = 'youremail@mail.com';
$password = 'yourpassword';

// Authenticate with WORK[etc] and get access to the API
$api = \WorkEtcClient\WorkEtcClient::connect($domain, $email, $password);

// Invoke an operation without any parameters
$stageGroups = $api->invoke('GetProjectStageGroups');

// Invoke an operation with parameters
$projects = $api->invoke('FindProjects', [
    'keywords' => 'Install',
]);

The example above is for the following WORK[etc] address. Replace yourcompany with whatever sub-domain is associated with your organization:

https://yourcompany.worketc.com

License

MIT license.

统计信息

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

GitHub 信息

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

其他信息

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