Skip to content

Jobsity/php-tick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Tick

A PHP client for Tickspot API. Currently supports v2 of the API.

Latest Stable Version Total Downloads Latest Unstable Version License

Requirements

  • PHP >= 5.5.0
  • guzzlehttp/guzzle ^6.0
  • mefworks/log ^1.0

Development Requirements

  • phpunit/phpunit ^4.6.0

##Available endpoints

  • Entry
  • Task
  • Project

How to use

###Credentials Get your access token and subscription ID from Tickspot

###API calls

All calls to Tickspot's API are made over HTTPS protocol.

###Example

// Make sure you require autoload file somewhere
require_once "../vendor/autoload.php";

use Jobsity\PhpTick\Tick;

// Get instance of Tick client
$tick = Tick::getInstance($subscriptionId, $accessToken, 'CompanyName', '[email protected]');

// Start using the api

// Get entries created after 2015-11-14
$tick->entry->getList('2015-11-14');

// Get entry by its id
$tick->entry->get($entryId);

// Create entry with required parameters: hours, date, notes and task which entry belongs
$tick->entry->create(5, '2015-11-14', 'notes', '687756');

// Update entry atributes, with entry id as first parameter and hours as parameter for update
$tick->entry->update('56565', 3);

// Delete entry by its id
$tick->entry->delete($entryId);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages