private function makeRequest($body, $endpoint, $account = null)
    {
        return Core::instance()->client()
            ->request(
                'POST',
                $endpoint,
                [
                    'headers' => [
                        'Authorization' => 'Bearer ' . Core::instance()->auth()->authenticate($account),
                        'Content-Type'  => 'application/json',
                    ],
                    'json' => $body,
                ]
            );
    }
private function makeRequest($body, $endpoint, $account = null)
    {
        return Core::instance()->client()
            ->request(
                'POST',
                $endpoint,
                [
                    'headers' => [
                        'Authorization' => 'Bearer ' . Core::instance()->auth()->authenticate($account),
                        'Content-Type'  => 'application/json',
                    ],
                    'json' => $body,
                ]
            );
    }
private function makeRequest ( $ body , $ endpoint , $ account = null ) { return Core :: instance ( ) -> client ( ) -> request ( 'POST' , $ endpoint , [ 'headers' => [ 'Authorization' => 'Bearer ' . Core :: instance ( ) -> auth ( ) -> authenticate ( $ account ) , 'Content-Type' => 'application/json' , ] , 'json' => $ body , ] ) ; }
Initiate the request.

@param array  $body
@param string $endpoint
@param string $account

@return mixed|\Psr\Http\Message\ResponseInterface
Initiate the request .