Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document configuration class more thoroughly #3

Open
f4n opened this issue Apr 15, 2020 · 1 comment
Open

Document configuration class more thoroughly #3

f4n opened this issue Apr 15, 2020 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@f4n
Copy link

f4n commented Apr 15, 2020

Describe what's going wrong
Couln't use the library: "Invalid token". Please describe what the sonos applicationId is. Do we need other settings e.g. event callback url or something else?

Log

15:25:09.713 INFO  [main] e.nightowl.sonos.api.SonosApiClient - Initialising sonos-api-java:0.0.9
15:25:09.717 DEBUG [main] e.nightowl.sonos.api.SonosApiClient - Using default HttpClient
15:25:10.161 DEBUG [main] e.n.sonos.api.resource.GroupResource - Sending request to https://api.ws.sonos.com/control/api/v1/households/householdId/groups
Exception in thread "main" engineer.nightowl.sonos.api.exception.SonosApiClientException: Invalid token
	at engineer.nightowl.sonos.api.resource.BaseResource.callApi(BaseResource.java:81)
	at engineer.nightowl.sonos.api.resource.BaseResource.getFromApi(BaseResource.java:178)
	at engineer.nightowl.sonos.api.resource.GroupResource.getGroups(GroupResource.java:51)
	at SonosTest.main(SonosTest.java:21)
@nightowlengineer
Copy link
Owner

It's just the GUID for the integration you've created on the Sonos Developer portal. It isn't used in the creation of the token etc, just there for convenience.

The error you're getting, makes it sound like you haven't set the keys up correctly or haven't authorised your integration properly. If you can show some example code etc I can try and help diagnose what's going wrong.

@nightowlengineer nightowlengineer changed the title Describe what is applicationId Document configuration class more thoroughly Apr 26, 2020
@nightowlengineer nightowlengineer added enhancement New feature or request good first issue Good for newcomers labels Apr 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants