https://github.com/jleagle/btn-api-client
A wrapper class for the BTN API
https://github.com/jleagle/btn-api-client
btn btn-api
Last synced: 4 months ago
JSON representation
A wrapper class for the BTN API
- Host: GitHub
- URL: https://github.com/jleagle/btn-api-client
- Owner: Jleagle
- Created: 2014-04-15T09:49:53.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-09-03T22:16:06.000Z (almost 10 years ago)
- Last Synced: 2025-02-20T11:06:12.025Z (5 months ago)
- Topics: btn, btn-api
- Language: PHP
- Size: 207 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
btn-api-client
==============[](https://scrutinizer-ci.com/g/Jleagle/btn-api-client)
[](https://scrutinizer-ci.com/g/Jleagle/btn-api-client)
[](https://packagist.org/packages/Jleagle/btn-api-client)
[](https://packagist.org/packages/Jleagle/btn-api-client)A helper class to access data from the BTN API (http://btnapps.net/)
### Usage
Instantiate Btn() with your API key:
```php
$btn = new \Jleagle\Btn\Btn($apiKey);
```Get blog posts:
```php
try
{
print_r($btn->getBlog());
}
catch(Exception $e)
{
echo $e->getMessage();
}
```