To get started with this project you will need to install the client via composer..
-
Create a composer.json where you want to install the project
-
Add the following:
{ "repositories": [{ "type": "vcs", "url": "git@github.com:carltonsoftware/tabs2-php-client.git" }], "require": { "carltonsoftware/tabs2-php-client": "dev-master" } }
-
Download composer and install the repo:
curl -sS https://getcomposer.org/installer | php ./composer.phar install
-
Create a new php file in your directory and insert the following code. You should see the a property output when you run the file!
<?php require_once __DIR__ . '/vendor/autoload.php'; \tabs\apiclient\client\Client::factory( 'https://apiurl/v2/', // Api Url: this will be provided to you. // NOTE: This url should end in '/v2/' 'abc', // Api username: this will be provided to you 'def', // Api password: this will be provided to you '14_hij', // Api client key: this will be provided to you 'klm' // Api client secret: this will be provided to you ); $prop = new \tabs\apiclient\Property(1); $prop->get(); echo $prop->getName();