for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Kerox\Messenger\Api;
use GuzzleHttp\ClientInterface;
use Kerox\Messenger\Request\InsightsRequest;
use Kerox\Messenger\Response\InsightsResponse;
class Insights extends AbstractApi
{
/**
* Insights constructor.
*
* @param string $pageToken
* @param \GuzzleHttp\ClientInterface $client
*/
public function __construct($pageToken, ClientInterface $client)
parent::__construct($pageToken, $client);
}
* @return \Kerox\Messenger\Response\InsightsResponse
public function threads(): InsightsResponse
$request = new InsightsRequest($this->pageToken);
$response = $this->client->get('me/insights/page_messages_active_threads_unique', $request->build());
return new InsightsResponse($response);
public function feedback(): InsightsResponse
$response = $this->client->get('me/insights/page_messages_feedback_by_action_unique', $request->build());