Codewave Software Forums Forum Index Codewave Software Forums
Codewave Software - Java done right
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

X-MyTunesRSS-ID

 
Post new topic   Reply to topic    Codewave Software Forums Forum Index -> Remote API discussion (problems, questions, feature requests)
View previous topic :: View next topic  
Author Message
damianlegassick



Joined: 10 Aug 2009
Posts: 15

PostPosted: Tue Aug 11, 2009 6:21 pm    Post subject: X-MyTunesRSS-ID Reply with quote

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
View user's profile Send private message
mdescher
Site Admin


Joined: 05 May 2006
Posts: 1268
Location: Rastatt, Germany

PostPosted: Tue Aug 11, 2009 6:35 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
mdescher
Site Admin


Joined: 05 May 2006
Posts: 1268
Location: Rastatt, Germany

PostPosted: Tue Aug 11, 2009 6:40 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
damianlegassick



Joined: 10 Aug 2009
Posts: 15

PostPosted: Tue Aug 11, 2009 6:41 pm    Post subject: Reply with quote

great,

works for me

thanks

damian
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Codewave Software Forums Forum Index -> Remote API discussion (problems, questions, feature requests) All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group