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

feat: Add GET /instance endpoint, which returns some basic information about the current session #403

Merged
merged 3 commits into from
Sep 16, 2021
Merged

Conversation

Twinki14
Copy link
Contributor

  • Endpoint addition, main intention is to provide an alternative to using the web-api for basic information about the session including device_id, device_name, and device_type
  • device_id, device_name,device_type, country_code, and preferred_locale

Example request:

{
    "device_id": "22ed0b3e74ad2001d16b7ea751fc58bb7a1ae686",
    "device_name": "librespot-java",
    "device_type": "COMPUTER",
    "country_code": "US",
    "preferred_locale": "en"
}

…n about the current session

- `device_id`, `device_name`,`device_type`, `country_code`, and `preferred_locale`
- 'Please extract this to a variable instead of calling forSession twice.'
- Switch to 405 / method not allowed in InstanceHandler
@devgianlu devgianlu merged commit 60ebdc6 into librespot-org:dev Sep 16, 2021
@Twinki14 Twinki14 deleted the dev-feat-instance-get branch September 16, 2021 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants