2017 © Pedro Peláez
 

library client

Traitify Api Client

image

traitify/client

Traitify Api Client

  • Sunday, August 16, 2015
  • by carsonwright
  • Repository
  • 8 Watchers
  • 3 Stars
  • 51 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Traitify Api PHP Library

This is a helper library for the Traitify API - https://developer.traitify.com/, (*1)

Installing via Composer

The recommended way to install the Traitify library is through Composer., (*2)

# Install Composer
curl -sS https://getcomposer.org/installer | php

# Add the library as a dependency
php composer.phar require traitify/client dev-master

or alternatively, you can add it directly to your composer.json file., (*3)

{
    "require": {
        "traitify/client": "dev-master"
    }
}

Then install via Composer:, (*4)

composer install

Finally, require Composer's autoloader in your PHP script:, (*5)

require __DIR__.'/vendor/autoload.php';

This library is best used with Traitify JS

http://traitify.github.io/traitify-js/, (*6)

Secret Key Required

For instructions on obtaining a public key visit: https://developer.traitify.com, (*7)

Using The Traitify PHP Client Library:

Create an instance of the Client

$client = new Traitify\Client([
  'host'=>'api-sandbox.traitify.com', /* Example Host */ 
  'version'=>'v1', /* Example Version */
  'secretKey'=>'34aeraw23-3a43a32-234a34as42' /* Example Secret Key */
]);
$client->createAssessment("career-deck");

Get Slides

$client = new Traitify\Client([
  'host'=>'api-sandbox.traitify.com', /* Example Host */ 
  'version'=>'v1', /* Example Version */
  'secretKey'=>'34aeraw23-3a43a32-234a34as42' /* Example Secret Key */
]);
$client->getSlides('a45rasw3-45s3a32-234aas45'); /* Example Assessment Id */

Get Decks

$client = new Traitify\Client([
  'host'=>'api-sandbox.traitify.com', /* Example Host */ 
  'version'=>'v1', /* Example Version */
  'secretKey'=>'34aeraw23-3a43a32-234a34as42' /* Example Secret Key */
]);
$client->getDecks();

Get Personality Types

$client = new Traitify\Client([
  'host'=>'api-sandbox.traitify.com', /* Example Host */ 
  'version'=>'v1', /* Example Version */
  'secretKey'=>'34aeraw23-3a43a32-234a34as42' /* Example Secret Key */
]);
$client->getPersonalityTypes('a45rasw3-45s3a32-234aas45'); /* Example Assessment Id */

Get Personality Traits

$client = new Traitify\Client([
  'host'=>'api-sandbox.traitify.com', /* Example Host */ 
  'version'=>'v1', /* Example Version */
  'secretKey'=>'34aeraw23-3a43a32-234a34as42' /* Example Secret Key */
]);
$client->getPersonalityTraits('a45rasw3-45s3a32-234aas45'); /* Example Assessment Id */

Contributing

Building, Testing and Bundling:

Installing PHPUnit https://phpunit.de/manual/current/en/installation.html, (*8)

$ composer install
$ phpunit tests/traitify_client.php

The Versions

16/08 2015

dev-master

9999999-dev http://www.traitify.com

Traitify Api Client

  Sources   Download

MIT

The Requires

 

The Development Requires

api client personality traitify

12/11 2014

dev-untested

dev-untested http://www.traitify.com

Traitify Api Client

  Sources   Download

MIT

The Requires

 

The Development Requires

api client personality traitify

17/06 2014

1.0.0.x-dev

1.0.0.9999999-dev http://www.traitify.com

A library for consuming Traitify Api.

  Sources   Download

MIT

The Development Requires

api client personality traitify