2017 © Pedro Peláez
 

library fanburst-php-api

Fanburst - PHP API, Complex PHP5 CURL library.

image

tuks128/fanburst-php-api

Fanburst - PHP API, Complex PHP5 CURL library.

  • Tuesday, July 31, 2018
  • by tuks128
  • Repository
  • 0 Watchers
  • 1 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Fanburst - PHP API

Complex PHP5 CURL library. See also official documentation: https://developers.fanburst.com/, (*1)

Install (Composer):

composer require tuks128/fanburst-php-api

Initialization:

<?php

use WaProduction\Fanburst\FanburstApi;

$fanburstApi = new FanburstApi('CLIENT_ID', 'CLIENT_SECRET', 'AUTH_CALLBACK_URI');

Auth:

auth.php, (*2)

<?php

$options = [
  'state' => json_encode([
      'custom_param' => 'custom_param_value',
   ]),
];

header('Location: '.$fanburstApi->getOauthLoginUrl($options)); // get URL for login

authCallback.php, (*3)

<?php

$accessToken = $fanburstApi->exachangeCodeForAccessToken($_GET['code']);
$fanburstApi->setAccessToken($accessToken);

Other methods:

<?php

$fanburstApi->getAccessToken();
$fanburstApi->followUser('CHANNEL_ID')
$fanburstApi->searchUser('CHANNEL_NAME');
$fanburstApi->multipleCallTargets('CHANNEL_ID', function($target) { });

The Versions

31/07 2018

dev-master

9999999-dev

Fanburst - PHP API, Complex PHP5 CURL library.

  Sources   Download

BSD-3-Clause GPL-2.0-or-later

by Martin Liprt

30/07 2018

v1.0

1.0.0.0

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

by Martin Liprt