src/Showpad/Authentication.php
public function request($method, $endpoint, array $parameters = null)
    {
        $url = $this->config->getEndpoint() . $endpoint;

        // Client should always send OAuth2 tokens in its headers
        $headers = array('Authorization' => 'Bearer ' . $this->config->getAccessToken());

        return $this->client->request($method, $url, $parameters, $headers);
    }
public function request($method, $endpoint, array $parameters = null)
    {
        $url = $this->config->getEndpoint() . $endpoint;

        // Client should always send OAuth2 tokens in its headers
        $headers = array('Authorization' => 'Bearer ' . $this->config->getAccessToken());

        return $this->client->request($method, $url, $parameters, $headers);
    }
public function request ( $ method , $ endpoint , array $ parameters = null ) { $ url = $ this -> config -> getEndpoint ( ) . $ endpoint ; // Client should always send OAuth2 tokens in its headers $ headers = array ( 'Authorization' => 'Bearer ' . $ this -> config -> getAccessToken ( ) ) ; return $ this -> client -> request ( $ method , $ url , $ parameters , $ headers ) ; }
Send an authenticated api request

@param string $method     The HTTP method
@param string $endpoint   The api endpoint to send the request to
@param array  $parameters The parameters for the request (assoc array)

return mixed
Send an authenticated api request