budgetlens/copernica-rest-api-client

Copernica Rest API client
1,030
Install
composer require budgetlens/copernica-rest-api-client
Latest Version:v3.0.3
PHP:^8.1
Laravel:9 · 10
License:MIT
Last Updated:Dec 27, 2023
Links: GitHub  ·  Packagist
Maintainer: 123lens

Copernica Rest Api Client

Copernica API documentation

Requirements

To use the Copernica Rest API client, the following things are required:

Installation

Install package using composer

composer require budgetlens/copernica-rest-api-client

Getting started

$accessToken = 'your-token';
$client = new \Budgetlens\CopernicaRestApi\Client($accessToken);

If required additional configuration can be added by supplying an additional config

class MyConfig implements Budgetlens\CopernicaRestApi\Contracts\Config
{
    public function getEndpoint(): string
    {
        return 'https://api.copernica.com/v3';
    }

    public function getMiddleware(): array
    {
        return $this->middleware;
    }

    public function addMiddleware($middleware)
    {
        $this->middleware[] = $middleware;
    }

    public function getTimeout(): int
    {
        return 180;
    }

    public function getUserAgent(): string
    {
        return '';
    }
}
$client->setConfig($config);

Examples

for examples see "tests folder"

Related Packages

amanank/hal-client

A PHP client for interacting with HAL APIs.

2,324 0
youxianbo/oceanengine-sdk

根据项目需求完成的接口,非所有接口都有相应的代码

27 0
saintsystems/odata-client

Saint Systems OData Client for PHP

597,964 160
justbetter/odata-client

Saint Systems OData Client for PHP

32,017 1
dfreer/zillow

Laravel 5 Zillow api wrapper. This code is a fork from vinceg/zillow

28,823 2

Version History

Version Released PHP Laravel License
v3.0.3 ^8.1 ^9.1|^10.0 MIT
3.0.2 ^8.1 ^9.1 MIT
v3.0.1 ^8.1 ^9.1 MIT