think.studio/laravel-sproutsocials-api

sproutsocials api integration for laravel

1.1.0 2023-09-03 14:27 UTC

This package is auto-updated.

Last update: 2024-12-03 17:39:25 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