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

Keyword to like the currently playing song #40

Open
NGumby opened this issue Oct 22, 2024 · 1 comment
Open

Keyword to like the currently playing song #40

NGumby opened this issue Oct 22, 2024 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@NGumby
Copy link

NGumby commented Oct 22, 2024

That would be nice to be able to quickly save a song to Liked.

something like sp like or sp .

  1. Make a GET request to /v1/me/player/currently-playing

    • Headers:
      • Authorization: Bearer {access_token}
  2. Extract the 'id' of the currently playing track from the response.

  3. Make a PUT request to /v1/me/tracks

    • Headers:
      • Authorization: Bearer {access_token}
      • Content-Type: application/json
    • Body:
      {
      "ids": ["{track_id}"]
      }
@waaverecords waaverecords added enhancement New feature or request good first issue Good for newcomers labels Oct 24, 2024
@waaverecords
Copy link
Owner

I would most likely use ShopifySharp's API rather than raw HTTP requests, as the plugin relies on it for all functionalities.

Feel free to submit a PR to add this feature!

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