| View previous topic :: View next topic |
| Author |
Message |
damianlegassick
Joined: 10 Aug 2009 Posts: 15
|
Posted: Tue Aug 11, 2009 6:21 pm Post subject: X-MyTunesRSS-ID |
|
|
hi all
i've mostly got curl to play ball
there's one bit of the docs i don't get
"The session ID must be specified in a request header (preferred method) with the name "X-MyTunesRSS-ID" or the request URL."
it's all good with the sessionID tagged on the end of the url but the X-MyTunesRSS-ID method is eluding me.
curl -H "Content-Type: application/json, X-MyTunesRSS-ID: sessionID" -d '{jsonstuff}' http://localhost:8080/jsonrpc
does not work - have i got the header all wrong?
tia
damian |
|
| Back to top |
|
 |
mdescher Site Admin

Joined: 05 May 2006 Posts: 1268 Location: Rastatt, Germany
|
Posted: Tue Aug 11, 2009 6:35 pm Post subject: |
|
|
Hi Damian,
I guess you cannot put multiple header lines in one curl -H parameter. The following sample request (this is one line of course) works fine for me:
| Code: |
curl -H "Content-Type: application/json"
-H "X-MyTunesRSS-ID: 152ad9b6128a1ea797acef328e3cecfc"
-d '{"method":"PlaylistService.getPlaylists","params":[]}'
http://localhost:8080/jsonrpc
|
Michael _________________ MyTunesRSS developer
Codewave Software Support |
|
| Back to top |
|
 |
mdescher Site Admin

Joined: 05 May 2006 Posts: 1268 Location: Rastatt, Germany
|
Posted: Tue Aug 11, 2009 6:40 pm Post subject: |
|
|
The documentation states that the header is the preferred way to pass the session id. This is because it is a somehow technical parameter.
Also unfortunately the remote api has not been used much yet. The iPhone interface uses it and parts of the web interface of MyTunesRSS 3.8.0 use it (e.g. for playlist maintenance).
So I would very much appreciate any feedback on it, i.e. bug reports and feature requests if you think some functions are missing or existing ones should be changed.
Michael _________________ MyTunesRSS developer
Codewave Software Support |
|
| Back to top |
|
 |
damianlegassick
Joined: 10 Aug 2009 Posts: 15
|
Posted: Tue Aug 11, 2009 6:41 pm Post subject: |
|
|
great,
works for me
thanks
damian |
|
| Back to top |
|
 |
|