Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 12 days 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 (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-09-03T22:16:06.000Z (over 9 years ago)
- Last Synced: 2025-01-07T16:53:21.082Z (25 days ago)
- Topics: btn, btn-api
- Language: PHP
- Size: 207 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
btn-api-client
==============[![Build Status (Scrutinizer)](https://scrutinizer-ci.com/g/Jleagle/btn-api-client/badges/build.png)](https://scrutinizer-ci.com/g/Jleagle/btn-api-client)
[![Code Quality (scrutinizer)](https://scrutinizer-ci.com/g/Jleagle/btn-api-client/badges/quality-score.png)](https://scrutinizer-ci.com/g/Jleagle/btn-api-client)
[![Latest Stable Version](https://poser.pugx.org/Jleagle/btn-api-client/v/stable.png)](https://packagist.org/packages/Jleagle/btn-api-client)
[![Latest Unstable Version](https://poser.pugx.org/Jleagle/btn-api-client/v/unstable.png)](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();
}
```