laravel-sproutsocials-api maintained by think.studio
Description
sproutsocials api integration for laravel
Author
Last update
2023/09/03 16:27
(dev-main)
License
Downloads
17
Sproutsocial API client (https://api.sproutsocial.com/docs/)
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');
}



