jishi / node-sonos-http-api

An HTTP API bridge for Sonos easing automation. Hostable on any node.js capable device, like a raspberry pi or similar.
http://jishi.github.io/node-sonos-http-api/
MIT License
1.84k stars 463 forks source link

How to add Google Music credentials settings.json file #733

Open moschnetwork opened 4 years ago

moschnetwork commented 4 years ago

Dear jishi, thank you so much ;)

I would like to know, how i can add Google Music credentials settings.json file? I need it, to give my playlist songs thumb up & downs.

Thank you so much & my donations comes from Jutta (Germany)

like pandora radio: Pandora

Perform a search for one of your Pandora stations and begin playing. Give the currently playing song a thumbs up or thumbs down. Requires a valid Pandora account and credentials.

The following endpoints are available:

/RoomName/pandora/play/{station name} Plays the closest match to the specified station name in your list of Pandora stations /RoomName/pandora/thumbsup Gives the current playing Pandora song a thumbs up /RoomName/pandora/thumbsdown Gives the current playing Pandora song a thumbs down

Your Pandora credentials need to be added to the settings.json file

   ,
   "pandora": {
     "username": "your-pandora-account-email-address",
     "password": "your-pandora-password"
   }
moschnetwork commented 4 years ago

I found here: https://unofficial-google-music-api.readthedocs.io/en/latest/reference/mobileclient.html?highlight=thumb%20down this:

`

Parameters: songs – a list of song dictionaries or a single song dictionary. required keys: ‘id’ for library songs or ‘nid’ and ‘trackType’ for store songs. rating – set to '0' (no thumb), '1' (down thumb), or '5' (up thumb).
` Parameters: songs – a list of song dictionaries or a single song dictionary. required keys: ‘id’ for library songs or ‘nid’ and ‘trackType’ for store songs. rating – set to '0' (no thumb), '1' (down thumb), or '5' (up thumb).