Skip to content

fw4-bvba/setle-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setle API

PHP client for the Setle API. For information and terms of use, refer to the official documentation.

Installation

composer require fw4/setle-api

Usage

use Setle\Setle;

// Instantiate the API using a client id and client secret
$api = new Setle('client-id-string', 'client-secret-string');

// Request a list of estates
$estates = $api->getEstates();
foreach ($estates as $estate) {
    echo $estate->estate->estate_type . ': ' . $estate->referral_link . PHP_EOL;
}

Access tokens

Access tokens are managed by the library, and long-running scripts will automatically trigger a refresh when a token expires. Due to the short lifespan of Setle's access tokens it is not recommended to manage tokens manually, but it is supported through the requestAccessToken() and setAccessToken() methods.

License

fw4/setle-api is licensed under the MIT License (MIT). Please see LICENSE for more information.

About

PHP client for the Setle API

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages