2017 © Pedro Peláez
 

library timeblocker

The official Timeblocker PHP SDK

image

timeblocker/timeblocker

The official Timeblocker PHP SDK

  • Sunday, June 29, 2014
  • by timeblocker
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Timeblocker PHP SDK

Overview

This is the officially supported development kit for PHP to interface with the Timeblocker. This library takes a couple of design principles from Backbone.js and Laravel and combine them together to create a full REST client for the Timeblocker API. Timeblocker has over 100 endpoints for developers, and this library interacts will all them., (*1)

Installation

To install this library, it's highly recommended you use Composer., (*2)

"require": {
    "timeblocker/timeblocker": "0.9.*"
}

While the API and SDK is in beta, you must also set your minimum-stability paramter to dev., (*3)

"minimum-stability": "dev"

If you want to use the Timeblocker SDK without changing your minimum-stability, use the require-dev parameter instead of require., (*4)

"require-dev": {
    "timeblocker/timeblocker": "0.9.*"
}

Development Status

Timeblocker API is currently in beta. We are stabilizing the platform and trying to ensure consistency and stability with all the endpoints. We hope to have as minimal breaking changes as possible before the 1.0 release. If you need to use the Timeblocker API in production, we would love to hear from you, (*5)

Authentication

Timeblocker requires authenticating with a user account before making API requests. To authenticate, you need a user's email, password, and API key. This will generate an authentication token which you must pass with all other requests., (*6)

use Timeblocker\Timeblocker;
use Timeblocker\Models\AuthToken;

Timeblocker::init(array(
    'account'  => 'yourdomain'
));

$token = AuthToken::login(array(
    'email' => 'you@example.com', 
    'password' => 'password',
    'key' => 'yourkey',
    'remember' => 1
));

Timeblocker::setAuthToken($token->uid);

var_dump($token->uid);exit();

The Versions

29/06 2014

dev-master

9999999-dev

The official Timeblocker PHP SDK

  Sources   Download

The Requires

 

by Timeblocker, LLC

29/06 2014

0.9.0

0.9.0.0

The official Timeblocker PHP SDK

  Sources   Download

The Requires

 

by Timeblocker, LLC