johnsoftwareentwicklung/smartsheetapi
Composer 安装命令:
composer require johnsoftwareentwicklung/smartsheetapi
包简介
An API for Smartsheet
关键字:
README 文档
README
This library serves as a convenience wrapper around the REST API that smartsheet exposes. It also uses the Collections library from the Illuminate library in lieu of arrays, so check that out if you are unfamiliar with it.
Table of Contents
Installation
The preferred method of installing this library is with Composer by running the following from your project root:
composer require infamoustrey/smartsheet
Usage
This library provides a fluent api for interacting with Smartsheet.
$smartsheetClient = new \Smartsheet\SmartsheetClient([ 'token' => 'yourapitoken' ]); $smartsheetClient->getSheet('sheetid');
Sheets
Fetch a list of sheets
$smartsheetClient = new \Smartsheet\SmartsheetClient([ 'token' => 'yourapitoken' ]); $smartsheetClient->listSheets(); // Collection<Sheet>
Access a sheet, see the Sheet Object for a list of possible properties.
$smartsheetClient = new \Smartsheet\SmartsheetClient([ 'token' => 'yourapitoken' ]); $sheet = $smartsheetClient->getSheet('4583173393803140'); // Access some fields $sheet->getId(); // '4583173393803140' $sheet->getName(); // 'sheet 1' // Add some rows $sheet->addRow([ 'ID' => "39424808324", 'Transaction Desc' => "Toys", 'Amount' => 754.23, ]);
Workspace
Fetch a workspace and access its properties. See the Workspace Object for a list of possible properties.
$smartsheetClient = new \Smartsheet\SmartsheetClient([ 'token' => 'yourapitoken' ]); $workspace = $smartsheetClient->getWorkspace('7116448184199044'); // \Smartsheet\Resources\Workspace $workspace->getId(); // '7116448184199044' $workspace->getName(); // 'New workspace' $workspace->listSheets(); // Collection<Sheet> // Fetch a sheet by name $workspace->getSheet('sheet name'); // Sheet // Create a sheet with some columns $workspace->createSheet('sheet name', [ [ "title" => "Primary", "type" => "TEXT_NUMBER", "primary" => true ] ]);
Folder
Fetch a folder and access its properties. See the Folder Object for a list of possible properties.
$smartsheetClient = new \Smartsheet\Client([ 'token' => 'yourapitoken' ]); $folder = $smartsheetClient->getFolder('7116448184199044'); // Folder // Access some fields $folder->getId(); // '7116448184199044' $folder->getName(); // 'Projects' $sheet = $folder->getSheet('sheet name');
Issues
Use this repository's issue tracker to resolve issues and ask questions.
Roadmap
Full api coverage! There's a lot missing, if you see something missing then put in a PR! Your help is appreciated!
Contributing
Feel free to submit a PR, just be sure to explain what you are trying to fix/add when submitting it. If you do decide to add functionality, it must be covered by a test. See the contribution guide for more info.
To run the tests simply run, you'll want to add a .env file(see .env.example) with a valid api token value in the SMARTSHEET_API_TOKEN variable.
Tests are also run on pull requests.
./vendor/bin/phpunit
johnsoftwareentwicklung/smartsheetapi 适用场景与选型建议
johnsoftwareentwicklung/smartsheetapi 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 09 月 11 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「http」 「client」 「library」 「smartsheet」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 johnsoftwareentwicklung/smartsheetapi 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 johnsoftwareentwicklung/smartsheetapi 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 johnsoftwareentwicklung/smartsheetapi 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
repository php library
Inbox pattern process implementation for your Laravel Applications
Mock PSR-18 HTTP client
Asynchronous MQTT client built on React
Core library that defines common interfaces used by the rest of the intahwebz..
Amqp classes
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-09-11