PHP Code generator broken, 403 bad request error
Expected content
Code generated by API documentation should work on our own server.
Actual content
Navigated to https://sendgrid.api-docs.io/v3.0/lists/get-all-lists. Entered API key generated with Full Access. Received 200 OK message on Documentation page. Copied generated PHP exactly as provided to .php file, uploaded to our server. When having navigated to that file, am receiving 403 Bad Request error. Code isn't changed in any way. API key is valid (generated another one to be sure, same result). Please contact via DM for private information to troubleshoot if needed.
Link to page: https://sendgrid.api-docs.io/v3.0/lists/get-all-lists
Hi @davidsbaldwin,
Thanks so much for your feedback! We've added this to our internal docs backlog.
Twilio SendGrid Docs Team
@davidsbaldwin
What version of PHP code did you use? Looking at the docs shows there are 3 different code examples.
@kylearoberts The ext-curl PHP code. It works on the documentation page itself (thus API key must work), but the moment I take that identical PHP code to our server and execute it, I receive the 403 Bad Request error.