定制 xvilo/harvest-forecast 二次开发

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

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

xvilo/harvest-forecast

最新稳定版本:v1.1.2

Composer 安装命令:

composer require xvilo/harvest-forecast

包简介

Harvest Forecast API client

README 文档

README

A Forecast API Wrapper, please note that there is currently no official public API. However this API client has been made by inspecting network traffic from their web client.

Installation

You can install this package through composer, the easiest way is to:

composer require xvilo/harvest-forecast

You will also need an implementation of php-http/client-implementation.

Getting Started

You will need an API access token, you can obtain one from Harvest Developers. Please create a new access token and save this.

Usage

<?php
declare(strict_types=1);   

// This file is generated by Composer
require_once __DIR__ . '/vendor/autoload.php';

// Create Client Instance
$client = new \Harvest\Forecast\Client();

// Authenticate
$client->authenticate('1622120.xx._xyzabcdefghijklmnopqrstuvw', 123456);

// Call endpoint
$whoAmI = $client->user->whoAmI();
echo json_encode ( $whoAmI, JSON_PRETTY_PRINT );

FAQ

php-http/client-implementation needed

If you try to install this package and get the following error:

xvilo/harvest-forecast 1.0.0 requires php-http/client-implementation ^1.0 -> no matching package found

Please install a PHP HTTP library such as Guzzle or Symfony HttpClient Component:

composer require symfony/http-client

or

composer require php-http/guzzle6-adapter

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-02-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固