larseijman/fmp-api-sdk

Laravel Question: how to use it?

Closed this issue · 0 comments

Hi there,

Thanks for creating this SDK. I am fairly new to Laravel and I am just wondering how I can use this package.

public function test(Request $request, \Leijman\FmpApiSdk\Client $client)
{
    $endpoint = new Quote($client);
    $response = $endpoint->setSymbol('AAPL')->get();
    dd($response);
}

When I run this: I get the following exception:
cURL error 6: Could not resolve host: quote (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for quote/AAPL