adddevice

Creates a device for the current user.

Command's fields description:

  • txtUser1 field is the “username” of MyWakes account.

  • txtUser2 field is the “password” of MyWakes account.

  • txtCommand field contains the command: “adddevice”.

  • txtFormat optional field specifies txtParameters and response formats. more info.

  • txtParameter field contains a structure like this:

<?xml version="1.0" encoding="utf-8" ?> 
<adddevice>
	<imei>123456789012345</imei>
	<consumer>I1234</consumer>
	<time>20101025183000</time> 
</adddevice>
{
  "adddevice": {
    "imei": "123456789012345",
    "consumer": "I1234",
    "time": "20101025183000"
  }
}

 

Where

  • <imei> mandatory. The IMEI code of the device that will be added to the current user.

  • <consumer> optional. The call sign for the new consumer that will be automatically linked to the device with the IMEI code indicated in <IMEI> field.

  • <time> mandatory, date and time in UTC. The accepted format is “yyyyMMddhhmmss”.

  • txtProvider field must contain the application calling ID and generated characters.

  • txtSignature field must contain the signature based on the string made of “Command Name” + “time” + “generated character to 32”.

Looking at the previous example, the string on which calculate the check will be:
“adddevice20101025183000xxxxxxxxx”


Therefore the txtProvider field will be:
“76a865d4-fab8-51cd-ba78-2da325f6955axxxxxxxxx”

Returns a structure like the following:

<?xml version="1.0" encoding="utf-8" ?> 
<furesult>
	<message><![CDATA[ OK ]]></message>
</furesult>
{
  "furesult": {
    "message": " OK "
  }
}

 

Where

  • <message> contains OK in command succeeded or Error description

If MyWakes server returns an error, the format of this answer is described in the error section.

Terms Of Use | Privacy Statement | Company info
  • © Cedac Sistemi srl
  • Head office: Via Toscana, 3 40035 Castiglione dei Pepoli (Italy) Tel.: +39 0534-93811 Fax: +39 0534-93899
  • Branch office: Via del Lavoro, 47 40033 Casalecchio di Reno (Italy)
  • Branch office: Via Parini, 1 40033 Casalecchio di Reno (Italy)
  • Share capital Euro 26,000.00 - Company Register of Bologna / VAT no / fiscal code 01695261204