【文件属性】:
文件名称:forecast-php-api:Forecast Forecastapp API PHP客户端
文件大小:107KB
文件格式:ZIP
更新时间:2021-04-11 03:33:42
http swagger openapi api-client forecast
用于Harvest Forecast APIPHP客户端
是工具。
此PHP SDK是使用与自动生成的。
安装
该库建立在和之上。 因此,您将需要为这些接口安装一些实现。
如果您的项目中没有可用的PSR-18客户端或PSR-7消息工厂,或者您不在乎使用哪个,请安装一些默认设置:
composer require symfony/http-client nyholm/psr7
现在,您可以安装Forecast客户端:
composer require jolicode/forecast-php-api
用法
首先,您需要检索访问令牌。 请查看Harvest的文档。
然后,使用提供的工厂创建客户端:
// $client contains all the methods to interact with the API
$ client = JoliCode \ Forecast