HTTP API for localhost

I am just trying basic stuff with HTTP API to get all lights ( using php, but it doesn’t seems to be return anything at all. I understand that all request must be made with HTTPS, I have config a self-assigned SSL certificate for my apache. but still not working.

Anyone have any idea how could i make this work in my localhost?

Many thanks!

Are you passing your authentication token in the request?

You need something in your header that looks like this:

Authorization: "Bearer [YOUR_TOKEN_HERE]"

If you could paste the code you’re using to make the request, I can help you figure out how to get the auth token in there.