Skip to content

guapa-ecommerce/timechimp-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Call the TimeChimp API with a breeze

Latest Version on Packagist Software License Build Status Quality Score Total Downloads

This is a package that allows you to call the API of TimeChimp, please see their documentation for more information

Installation

You can install the package via compose:

composer require guapa/timechimp-sdk

Usage

To use this package you need to instantiate a new request like so:

<?php

$request = new \Guapa\TimeChimp\UsersRequest;
$request->setAccessToken('abcde');

/** @var \GuzzleHttp\Psr7\Response $response */
$response = $request->getAll();

$users = json_decode($response->getBody(), true);

You need to add the access token after creating the instance of the request. This is done so the requests can be loaded using Dependency Injection

Available requests are:

  • Customers
  • Expenses
  • Invoices
  • Mileage
  • Projects
  • Project notes
  • Time entries
  • Users

See the official documentation for more information: https://timechimp.docs.apiary.io/#

Credits

License

The MIT License (MIT). Please see License File for more information.