2017 © Pedro Peláez
 

library api-helper

DoYouBuzz API Helper

image

doyoubuzz/api-helper

DoYouBuzz API Helper

  • Monday, September 7, 2015
  • by Bacteries
  • Repository
  • 3 Watchers
  • 0 Stars
  • 8,163 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 6 % Grown

The README.md

DoYouBuzz API Helper

If you want to use DoYouBuzz in your PHP project this project can help you., (*1)

Install

You can install this library by using Packagist., (*2)

Add the following to your composer.json file. Composer will handle the autoloading., (*3)

{
    "require": {
        "doyoubuzz/api-helper": "dev-master"
    }
}

Usage

<?php
// include your autoloader then :
$apiKey = 'XXX';
$apiSecret = 'YYY';
$dyb = new \DoYouBuzz\ApiHelper\DoYouBuzzAPI($apiKey, $apiSecret);
$dyb->connect(true);
$user = $dyb->getUser();
if ($user) {
    echo 'Utilisateur : ' .  $user->firstname . ' ' . $user->lastname . '<br>';

    $mainCv = $dyb->getMainCv();
    if ($mainCv) {
        echo 'Cv : ' . $mainCv->title . '<br>';
    }
}

Methods

List of methods you can use : - getUser : Return a \stdClass with the user's data (and CV with their titles) - getMainCv : Return the main CV as \stdClass - getCv(:id) : Give an id and get the CV as \stdClass - getStatistics : Return user's statistics - getEmploymentPreferences : Return user's employment preferences - getDisplayOptions(:id, :type) : Return the display option for the given type (web, mobile, print) - getAccessToken : Return the access token - setAccessToken(:token, :secret): You can set the access token - clearAll : remove all data in storage (Session by default) - connect(:redirect = false, :callbackUrl) : Will connect your user and get the access token, (*4)

If you want to know the properties available on \stdClass see json format on our doc., (*5)

The Versions

07/09 2015

dev-master

9999999-dev

DoYouBuzz API Helper

  Sources   Download

MIT

The Requires

 

api oauth resume cv doyoubuzz

11/06 2015

1.0.0

1.0.0.0

DoYouBuzz API Helper

  Sources   Download

MIT

The Requires

 

api oauth resume cv doyoubuzz