Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stavarengo/deep-social-php-api-client
PHP Client Library for http://deep.social API
https://github.com/stavarengo/deep-social-php-api-client
api client deep deep-social deepsocial php social
Last synced: 8 days ago
JSON representation
PHP Client Library for http://deep.social API
- Host: GitHub
- URL: https://github.com/stavarengo/deep-social-php-api-client
- Owner: stavarengo
- License: mit
- Created: 2017-11-30T17:34:20.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-15T12:38:48.000Z (almost 6 years ago)
- Last Synced: 2024-12-10T00:54:29.773Z (about 1 month ago)
- Topics: api, client, deep, deep-social, deepsocial, php, social
- Language: PHP
- Size: 16.6 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# deep-social-php-api-client
PHP Client Library for http://deep.social APIIf you are interested in a PHP API for [Deep.Social](http://deep.social), that's your library :)
## About It
- Depends only on PSRs.
- Optionally use cache to avoid spend your DeepSocial credits requesting data you already have.
- You can use it with any application, either if it uses or not a factories from PSR-11.
- It should be very easy to use, since I tried to keep all the source code well documented.
## Installation
Install via `composer`.```
composer require stavarengo/deep-social-php-api-client:^0.0
```## Basic Usage - More complete documentation yet to come
- Use it directly (without a factory).
```php
$client = new \Sta\DeepSocialPhpApiClient\Client('YOUR_DEPPSOCIAL_API_TOKEN', null);// This 'null' means: "no cache"
$response = $client->getAudienceData('@SOME_INSTAGRAM_USER_NAME');
var_dump($response->hasError() ? $response->getErrorEntity() : $response->getEntity());
```- Use our default factory (PSR-11).
```php
$client = $container->get(\Sta\DeepSocialPhpApiClient\Client::class)
var_dump($response->hasError() ? $response->getErrorEntity() : $response->getEntity());
```