承接 ksidenko/smartsheet-php-client 相关项目开发

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

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

ksidenko/smartsheet-php-client

Composer 安装命令:

composer require ksidenko/smartsheet-php-client

包简介

PHP client library for interacting with Smartsheet API

关键字:

README 文档

README

PHP client to interact with the Smartsheet API.

We're slowly building out this client as we need the functionality. Initially we only need it for managing user accounts.

This client is built on top of Guzzle, the PHP HTTP Client. Guzzle has a simple way to create API clients by describing the API in a Swagger-like format without the need to implement every method yourself. So adding support for more Smartsheet APIs is relatively simple. If you want to submit a pull request to add another feature, please do. If you don't know how to do that, ask us and we might be able to add it in for you.

Smartsheet API Authentication

Smartsheet supports User Generated Tokens or OAuth 2.0 for authorization. This client however only supports the User Generated Tokens method. Please see http://www.smartsheet.com/developers/api-documentation#h.y2e83x6xwscl for more information.

Install

Installation is simple with Composer. Add "ksidenko/smartsheet-php-client", "dev-master" to your composer.json file and update.

Usage

Example:

<?php

use Smartsheet\Client;

$client = new Client([
  'access_token' => '1234567890',
]);

$user = $client->getUser(['id' => 123456789]);

echo $user['email'];
// example@domain.org

$newUser = $client->addUser([
  "email" => "test_user@domain.org",
  "name" => "test user",
  "firstName" => "test",
  "lastName" => "user",
  "admin" => false,
  "licensedSheetCreator" => false,
  "resourceManager" => false,
]);

echo $user['result']['id'];
// 1234567890

Guzzle Service Client Notes

统计信息

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

GitHub 信息

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

其他信息

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