CloudServices/WheresMyFox: Difference between revisions

Line 84: Line 84:
From Server:
From Server:


     {"cmd":<i>COMMAND</i>,
     {"c":<i>COMMAND</i>,
     <i>ARGS</i>}
     <i>ARGS</i>}


where COMMAND is:
where COMMAND is:
<dl>
<dl>
<dt><b>ring</b>
<dt><b>r</b>ing
<dd>cause the phone to ring constantly for "duration" seconds.<br>
<dd>cause the phone to ring constantly for <b>d</b>uration seconds.<br>
e.g. <code>{"cmd":"ring","duration":60}</code> will cause the phone to ring for 60 seconds or until dismissed on the device by the user.</dd>
e.g. <code>{"c":"r","d":60}</code> will cause the phone to ring for 60 seconds or until dismissed on the device by the user.</dd>
<dt><b>track</b>
<dt><b>t</b>rack
<dd>Have the phone report back it's location every "period" seconds<br>
<dd>Have the phone report back it's location every <b>p</b>eriod seconds<br>
e.g. <code>{"cmd":"track","period":20}</code> will cause the phone to POST to <code>/<i>$v</i>/cmd/<i>$id</i></code>
e.g. <code>{"c":"t","p":20}</code> will cause the phone to POST to <code>/<i>$v</i>/cmd/<i>$id</i></code>
     {"cmd":"track", "lat":<i>$lattitudeDecimal</i>, "lon":<i>$longitudeDecimal</i>}
     {"c":"t", "la":<i>$lattitudeDecimal</i>, "lo":<i>$longitudeDecimal</i>}
The server may reply back to the "track" POST with either an empty 200 or a <i>COMMAND</i> object
The server may reply back to the "track" POST with either an empty 200 or a <i>COMMAND</i> object
<dt><b>cancel</b>
<dt><b>c</b>ancel
<dd>Cancel the current activity ("ring" or "track").
<dd>Cancel the current activity ("ring" or "track").
<dt><b>nuke</b>
<dt><b>n</b>uke
<dd>Factory Reset your phone.
<dd>Factory Reset your phone.
</dl>
</dl>
Confirmed users
1,018

edits