Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wrapper for Upsales API

For more information regarding the api, see https://api-docs.upsales.com/#/reference/gettingStarted/

Dependencies

  • php 7.0+
  • composer

Installation

Add a repository to your composer.json like so:

{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/VinniaAB/upsales.git"
    }
  ]
}

And then require the package with composer:

composer require vinnia/upsales

Usage

A complete html example is located in example.php.

use Vinnia\Upsales\Client;

$client = Client::make('access_token');

$response = $client->getClients();

$data = json_decode((string) $response->getBody(), $assoc = true);
var_dump($data);

Testing

Copy env.sample.php into env.php and enter a valid access token. Then run the tests:

vendor/bin/codecept run

Test URL

https://integration.upsales.com/api/v2/accounts/?token={TOKEN_WITHOUT_BRACES}&custom.fieldId=1&custom.value=556933-9251

About

Wrapper for Upsales API

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages