POST /

http://www.mobikey.eu/cmd/{K}/{DEVICE}/key/{TIME}/{SIG}

{DEVICE}

{TIME}

{SIG}

{K}

code identifying the remote device

message timestamp

message signature

T for plain text response

J for JSON response

callback for JSONP


EXAMPLE TEXT :


http://www.mobikey.eu/cmd/T/gxl0/key/1450857297/bWsBeiWhM/teC1XWjjh5J...


HEADER


DATA

Content-type: text/plain


OUT1=1

OUT1=0 OUT2=1



HTTP STATUS CODE RESPONSE :


200

OK : posted commands successfully appended to command queue



RESPONSE DATA :


OK

When command is pushed into queue, waiting to be fetched by device

OVER QUOTA

Command queue is full, the remote device doesn't fetch the commands



EXAMPLE JSON :


http://www.mobikey.eu/cmd/J/gxl0/key/1450857297/bWsBeiWhM/teC1XWjjh5J...


HEADER


DATA

Content-type: text/plain


OUT1=1

OUT1=0 OUT2=1



HTTP STATUS CODE RESPONSE :


200

413

OK : posted commands successfully appended to command queue

Payload Too Large : command queue size > 4k


RESPONSE DATA :


{"result": "OK"}

When command is pushed into queue, waiting to be fetched by device

{"result": "OVER QUOTA"}

Command queue is full, the remote device doesn't fetch the commands



EXAMPLE JSONP :


http://www.mobikey.eu/cmd/data/gxl0/key/1450857297/bWsBeiWhM/teC1XWjjh5J...


HEADER


DATA

Content-type: text/plain


OUT1=1

OUT1=0 OUT2=1



HTTP STATUS CODE RESPONSE :


200

413

OK : posted commands successfully appended to command queue

Payload Too Large : command queue size > 4k


RESPONSE DATA :


data({"result": "OK"});

When command is pushed into queue, waiting to be fetched by device

data({"result": "OVER QUOTA"});

Command queue is full, the remote device doesn't fetch the commands


Up to 5 commands allowed per line. Each line terminated by <Cr>, <Lf> or <Cr><Lf>.

COMMAND LIST AVAILABLE HERE