API Request does not work anymore!

My mistake it’s $keys->access_token

This was why I asked for all your code as I could of run it on my machine and tested it with my keys