Skip to content

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

Merged
devgianlu merged 3 commits intolibrespot-org:devfrom
Twinki14:dev-feat-instance-get
Sep 16, 2021
Merged

feat: Add GET /instance endpoint, which returns some basic information about the current session#403
devgianlu merged 3 commits intolibrespot-org:devfrom
Twinki14:dev-feat-instance-get

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