duncan3dc / sonos-cloud

A PHP library to use the official Sonos API to control your speakers
Apache License 2.0
3 stars 0 forks source link

Authorisation problem #1

Open bwhp1 opened 1 year ago

bwhp1 commented 1 year ago

Hi Duncan I'm so excited to be able to use your framework to control our office Sonos system. But I'm having trouble with the authorisation so not getting very far. When I use the example at https://duncan3dc.github.io/sonos-cloud/setup/ (having set up a developer code etc at developer.sonos) on the callback I'm getting an error, something about a missing request header per below. Can you please tell me what I'm doing wrong?

PHP Fatal error: Uncaught duncan3dc\Sonos\Cloud\Exceptions\AuthenticationException: invalid_request - Missing request header 'Authorization' for method parameter of type String in /home/arc33114/public_html/rss_admin_new/sonos-cloud/vendor/duncan3dc/sonos-cloud/src/OAuthProvider.php:56

bwhp1 commented 1 year ago

This is at https://archive.traveldaily.com.au/rss_admin_new/sonoscontrol.php