guapa/timechimp-sdk

1.0.1 2019-04-19 07:24 UTC

This package is auto-updated.

Last update: 2024-04-19 19:09:25 UTC


README

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.