https://github.com/tuks128/fanburst-php-api
Fanburst - PHP API
https://github.com/tuks128/fanburst-php-api
fanburst php php-api
Last synced: 8 months ago
JSON representation
Fanburst - PHP API
- Host: GitHub
- URL: https://github.com/tuks128/fanburst-php-api
- Owner: tuks128
- Archived: true
- Created: 2018-07-15T19:15:59.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-31T19:09:32.000Z (almost 8 years ago)
- Last Synced: 2024-11-13T16:19:28.420Z (over 1 year ago)
- Topics: fanburst, php, php-api
- Language: PHP
- Homepage: https://fanburst.com
- Size: 5.86 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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) { });
```