hoppities / sermon-audio
A wrapper for the SermonAudio Json API
0.1.5
2016-10-25 03:04 UTC
Requires
- guzzlehttp/guzzle: ~5.3|~6.0
Requires (Dev)
- phpunit/phpunit: ~4.0
This package is not auto-updated.
Last update: 2024-10-08 21:52:57 UTC
README
This is a simple wrapper for many of the methods available in the Sermon Audio API.
Installation
composer require hoppities\sermon-audio
After your composer dependencies finish, you will need to add the service provider to your app.php config file.
Hoppities\SermonAudio\SermonAudioServiceProvider::class,
In your application, call SermonAudio::Initialize()
to set up your facade.
$apiKey = YOUR__KEY_HERE;
$sourceID = YOUR_SOURCE_ID_HERE;
SermonAudio::Initialize($apiKey, $sourceID);
Usage
use SermonAudio
Then, just call any of the methods in that file.
SermonAudio::getSermonsBySource();
Parameters should be sent as an associative array to any API call, so the above call will take an associative array and then build the parameters for your query.
License
MIT