We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I cloned the repo and noticed the ProductsController doesn't work as is since it doesn't look like the API key is being passed anywhere...
ProductsController
ie:
$data = Http::get('https://sandbox-api.polar.sh/v1/products', [ 'organization_id' => env('POLAR_ORGANIZATION_ID'), 'is_archived' => false, ]);
If I dd($data); I see the following:
dd($data);
However, looks like if I just include that API key, it works!
$data = Http::withToken(env('POLAR_API_KEY'))->get('https://sandbox-api.polar.sh/v1/products', [ 'organization_id' => env('POLAR_ORGANIZATION_ID'), 'is_archived' => false, ]);
Now, if I dd($data->json());, I can see the products!
dd($data->json());
Happy to make a PR too, if you think this looks good!
The text was updated successfully, but these errors were encountered:
@stursby Ah, that definitely looks like a mistake on our end.
Feel free to do a PR! ☺️
Sorry, something went wrong.
@emilwidlund done!
No branches or pull requests
I cloned the repo and noticed the
ProductsController
doesn't work as is since it doesn't look like the API key is being passed anywhere...ie:
If I
dd($data);
I see the following:However, looks like if I just include that API key, it works!
Now, if I
dd($data->json());
, I can see the products!Happy to make a PR too, if you think this looks good!
The text was updated successfully, but these errors were encountered: