99designs/php-desk

PHP client for Desk.com API

Installs: 3 887

Dependents: 0

Stars: 8

Watchers: 44

Language: PHP

v1.0.1 2013-02-03 23:41 UTC

README

A php 5.3+ wrapper for the Desk.com API

Build Status

While this is in use in some projects, it will eventually be updated/refactored to be based on Guzzle (work in progress).

Installation

To add php-desk to a project, the easiest way is via composer:

{
    "require": {
        "99designs/php-desk": "dev-master"
    }
}

Usage

Before you use the API, you need an access token and other credentials. Your token can be found under your client application's details in Admin — General Settings — API Applications.

<?php

$desk = new \Desk(
  YOUR_DESK_SUBDOMAIN,
  YOUR_CONSUMER_KEY,
  YOUR_CONSUMER_SECRET,
  YOUR_OAUTH_TOKEN,
  YOUR_OAUTH_TOKEN_SECRET
);

// TODO: describe API calls here

Copyright

Copyright (c) 2012 99designs See LICENSE for details.