php - Troubleshooting loading an API


I'm working on using the Etsy API and have been trying to complete this online tutorial but haven't been able to load any of the data successfully:

When I load the page, it creates the cache file but the page is blank.

This is my first venture into APIs and I'm not sure how to troubleshoot what the problem might be. It seems like all of the code with loading it into the PHP webpage should work ok.

I've read about a few issues people have had using the Etsy API beacuse of the json cross-domain policy, so I'm wondering if that might be the issue, or if there might be authentication that is required.

I created a pastebin of the code from the tutorial here:




After checking the docs and the API, I got this.

API requests must be made over HTTPS. 

Change your links to usehttps://.

People are also looking for solutions to the problem: php - Request input laravel ajax return null on update method


Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.