Comments on: API/Protocol http://h3x.se spotify remote Tue, 02 Oct 2012 23:49:43 +0000 hourly 1 https://wordpress.org/?v=6.1.1 By: JamesM http://h3x.se/apiprotocol/comment-page-1/#comment-4775 Tue, 02 Oct 2012 23:49:43 +0000 http://h3x.se/?page_id=715#comment-4775 Hello I ahave just discovered you program and I am having trouble sending the header. This is what im sending, can you see anything wrong?

Any help greatly appreciated.

POST / HTTP/1.1
HOST: 192.168.1.134:1337
Content-Type: application/json
1
H3X!
Content-Length: 30

{“commandType”: “stopPlayback”}

]]>
By: Smilykoch http://h3x.se/apiprotocol/comment-page-1/#comment-2088 Fri, 13 Jul 2012 16:23:34 +0000 http://h3x.se/?page_id=715#comment-2088 Hey..

would i be able to use servify with jQuery?
By doing something like an $.ajax call with the right headers defined?

and if so how should the headers be?

]]>
By: johannes http://h3x.se/apiprotocol/comment-page-1/#comment-1719 Sun, 03 Jun 2012 11:56:25 +0000 http://h3x.se/?page_id=715#comment-1719 In reply to Patrik.

Patrik, no. Not at this time.

]]>
By: Patrik http://h3x.se/apiprotocol/comment-page-1/#comment-1709 Sat, 02 Jun 2012 17:29:39 +0000 http://h3x.se/?page_id=715#comment-1709 Any plans on adding support for local files?

]]>
By: johannes http://h3x.se/apiprotocol/comment-page-1/#comment-956 Sun, 29 Jan 2012 00:52:31 +0000 http://h3x.se/?page_id=715#comment-956 In reply to Woo!.

Alex, good that you got it working.. and yes, classic mistake πŸ™‚

]]>
By: Woo! http://h3x.se/apiprotocol/comment-page-1/#comment-954 Sat, 28 Jan 2012 03:39:55 +0000 http://h3x.se/?page_id=715#comment-954 Hi mate,

Classic 4:30am mistake:
”HEX!” should be “H3X!”

Hence the incorrect magic string. Feel free to delete my noise πŸ˜›

]]>
By: johannes http://h3x.se/apiprotocol/comment-page-1/#comment-914 Sat, 14 Jan 2012 23:25:26 +0000 http://h3x.se/?page_id=715#comment-914 In reply to Dave.

Dave; no

]]>
By: Dave http://h3x.se/apiprotocol/comment-page-1/#comment-906 Thu, 12 Jan 2012 23:50:38 +0000 http://h3x.se/?page_id=715#comment-906 Hello!

Can we use this somehow to dump songs to hdd. And use other players to listen to it.

Applian Media Catcher won’t work.

Thanks

]]>
By: johannes http://h3x.se/apiprotocol/comment-page-1/#comment-563 Sat, 01 Oct 2011 23:24:09 +0000 http://h3x.se/?page_id=715#comment-563 In reply to Ravi.

Ravi: a code (java) example of how to send messages to Servify:

DataOutputStream dataStream = new DataOutputStream(socket.getOutputStream());
dataStream.writeInt(1);
dataStream.writeBytes(“H3X!”);
dataStream.writeInt(payload.length());
dataStream.writeBytes(payload);
dataStream.flush();

payload is a string such as:
{“commandType”: “toggleShuffle”}

See the API/Protocol stuff here on h3x.se for more info about different messages.

]]>
By: Ravi http://h3x.se/apiprotocol/comment-page-1/#comment-557 Fri, 30 Sep 2011 12:49:12 +0000 http://h3x.se/?page_id=715#comment-557 Could you post a simple example, please? An example header and an example for say, getting all playlists. Oh, and please open the code for the servify/C#. No good reason for keeping it closed, eh?

]]>