PHPackages                             day4/blubrry-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. day4/blubrry-sdk

ActiveLibrary

day4/blubrry-sdk
================

Client SDK for Blubrry API version 2

2.0.0(5y ago)01621[1 PRs](https://github.com/u12206050/blubrry-php-sdk/pulls)ISCPHP

Since Feb 28Pushed 5y agoCompare

[ Source](https://github.com/u12206050/blubrry-php-sdk)[ Packagist](https://packagist.org/packages/day4/blubrry-sdk)[ RSS](/packages/day4-blubrry-sdk/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (4)Used By (0)

Blubrry PHP SDK
===============

[](#blubrry-php-sdk)

The SDK is based on Blubrry API version 2 and you can find the documentation [here](https://create.blubrry.com/resources/blubrry-api/)

Supported Features
------------------

[](#supported-features)

- Media Hosting
- Podcast Statistics
- Social Medias

Installation
------------

[](#installation)

Blubrry SDK requires [PHP](https://www.php.net/) v7.2+ to run.

`use Blubrry\REST\Api`

### Authenticating Users

[](#authenticating-users)

The Blubrry API has OAuth2.0 authentication system.

In way to keep using that authentication system, you will have to implement some thing to make that work. The first step is to contat the [Blubrry Support Team](https://www.blubrry.com/contact/) and ask them for user credentials to use their API.

After that, you will have to add a button into your Website with a redirect to a link like this:

```
https://api.blubrry.com/oauth2/authorize?response_type=code&client_id=$client_id&redirect_uri=$redirect_uri

```

Where:

ParametersDescriptionTypeOptionalclient\_idThe client\_id that the customer recieved from Blubrry Support Team.stringnoredirect\_uriThe url that the user should be redirected after login into the Blubrry account.stringnoThis will return a link like this:

```
https://$redirect_uri/code=767a88a9576asdasdasda123123cfd

```

Then, you will have to retrieve a Refresh token for this user:

### - getRefresh

[](#--getrefresh)

Description: Gets Access and Refresh token from Blubrry API.

ParametersDescriptionTypeOptionalclientIdClient Id recieved from Blubrry TeamstringnoclientSecretClient Secret recieved from BlubrrystringnocodeResponse code from User login at BlubrrystringnoredirectUriThe url that the user should be redirected after login into the Blubrry accountintegeryesExample request:

```
