DirkGroenen\Pinterest\Transport\Request::get PHP Method

get() public method

Make a get request to the given endpoint
public get ( string $endpoint, array $parameters = [] ) : DirkGroenen\Pinterest\Transport\Response
$endpoint string
$parameters array
return DirkGroenen\Pinterest\Transport\Response
    public function get($endpoint, array $parameters = array())
    {
        if (!empty($parameters)) {
            $path = sprintf("%s/?%s", $endpoint, http_build_query($parameters));
        } else {
            $path = $endpoint;
        }
        return $this->execute("GET", sprintf("%s%s", $this->host, $path));
    }