Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tuks128/fanburst-php-api

Fanburst - PHP API
https://github.com/tuks128/fanburst-php-api

fanburst php php-api

Last synced: about 2 months ago
JSON representation

Fanburst - PHP API

Awesome Lists containing this project

README

        

# ***Fanburst - PHP API*** #

Complex PHP5 CURL library. See also official documentation: https://developers.fanburst.com/

## Install (Composer):

```
composer require tuks128/fanburst-php-api
```

## Initialization: ##
```
json_encode([
'custom_param' => 'custom_param_value',
]),
];

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

authCallback.php
```
exachangeCodeForAccessToken($_GET['code']);
$fanburstApi->setAccessToken($accessToken);
```

## Other methods: ##
```
getAccessToken();
$fanburstApi->followUser('CHANNEL_ID')
$fanburstApi->searchUser('CHANNEL_NAME');
$fanburstApi->multipleCallTargets('CHANNEL_ID', function($target) { });
```