Ejemplo n.º 1
0
 public function testConstructor()
 {
     $hiveage = new \Bouncefirst\Hiveage\Hiveage('test', '12345');
     $http = $hiveage->getRequestor()->getHttp();
     $this->assertEquals('https://test.hiveage.com/api/', $http->getBaseUrl());
     $this->assertEquals(['12345', ''], $http->getDefaultOption('auth'));
 }
Ejemplo n.º 2
0
<?php

set_include_path(dirname(__FILE__) . '/../');
require 'vendor/autoload.php';
$http = new GuzzleHttp\Client();
// Replace with your information!
$hiveage = new \Bouncefirst\Hiveage\Hiveage('bouncefirst', '7FA41818y3wf5q5C739apn');
$connections = $hiveage->getConnections();
foreach ($connections as $con) {
    echo $con->id . ' = ' . $con->business_email . PHP_EOL;
}