Skip to content

Latest commit

 

History

History
executable file
·
43 lines (33 loc) · 1.93 KB

README.md

File metadata and controls

executable file
·
43 lines (33 loc) · 1.93 KB

Sproutsocial API client (https://api.sproutsocial.com/docs/)

Packagist License Packagist Version Total Downloads Build Status Code Coverage Scrutinizer Code Quality

Installation

You can install the package via composer:

composer require think.studio/laravel-sproutsocials-api
# optional publish configs
php artisan vendor:publish --provider="ThinkOne\LaravelSproutsocialsApi\ServiceProvider" --tag="config"

Usage

/** @var Metadata $endpoint */
$endpoint = SproutsocialsApi::endpointGroup(Metadata::class);
$response = $endpoint->getTags($customerId);
if($response->successful()) {
    $tags = $response->json('data');
}
/** @var Analytics $endpoint */
$endpoint = SproutsocialsApi::endpointGroup(Analytics::class);
$response = $endpoint->getPosts($requestData);
if($response->successful()) {
    $posts = $response->json('data');
}

Credits

  • Think Studio