PHP code example of yaroslawww / laravel-sproutsocials-api
1. Go to this page and download the library: Download yaroslawww/laravel-sproutsocials-api library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
yaroslawww / laravel-sproutsocials-api example snippets
/** @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');
}