项目作者: stavarengo

项目描述 :
PHP Client Library for http://deep.social API
高级语言: PHP
项目地址: git://github.com/stavarengo/deep-social-php-api-client.git
创建时间: 2017-11-30T17:34:20Z
项目社区:https://github.com/stavarengo/deep-social-php-api-client

开源协议:MIT License

下载


deep-social-php-api-client

PHP Client Library for http://deep.social API

If you are interested in a PHP API for 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.

  1. composer require stavarengo/deep-social-php-api-client:^0.0

Basic Usage - More complete documentation yet to come

  • Use it directly (without a factory).

    1. $client = new \Sta\DeepSocialPhpApiClient\Client('YOUR_DEPPSOCIAL_API_TOKEN', null);// This 'null' means: "no cache"
    2. $response = $client->getAudienceData('@SOME_INSTAGRAM_USER_NAME');
    3. var_dump($response->hasError() ? $response->getErrorEntity() : $response->getEntity());
  • Use our default factory (PSR-11).

    1. $client = $container->get(\Sta\DeepSocialPhpApiClient\Client::class)
    2. var_dump($response->hasError() ? $response->getErrorEntity() : $response->getEntity());