yaroslawww/laravel-sproutsocials-api

This package is abandoned and no longer maintained. The author suggests using the think.studio/laravel-sproutsocials-api package instead.

sproutsocials api integration for laravel

1.1.0 2023-09-03 14:27 UTC

This package is auto-updated.

Last update: 2023-09-03 14:46:00 UTC


README

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