iPlace External API
La API externa de iPlace permite a las aplicaciones cliente comunicarse con la plataforma fácilmente mediante HTTPS.
A parte de ser una conexión segura, cada petición debe realizarse correctamente autenticada con las credenciales de un usuario registrado en el sistema.
Ejemplo de uso:
getElementData
Parameters:
{
[“id” : “I20121203171041”]
[“name”: “Input 1”]
}
Response:
{
“Id” : “I20121203171041”,
“name”: “Input 1”,
“value”: “1”,
“type”: “1”,
“updated”: “2016-02-01 12:00:00”
}
Parameters:
{
[“id” : “O20121203171041”],
[“name”: “Output 1”],
“value” : “1”
}
Response:
{
“status” : “0”,
[“msg” : “error messages”]
}
Parameters:
{
[“id” : “I20121203171041”]
[“name”: “Input 1”]
“start” : “2016-02-01 12:00:00”
[“end” : “2016-02-01 12:00:00”]
[“order”: 0 ] // 0 = ASC , 1 = DESC
[“page”: 1]
}
Response:
{
“size” : “234”
“data” :[{
“Id” : “I20121203171041”,
“name”: “Input 1”,
“value”: “1”,
“type”: “1”,
“updated”: “2016-02-01 12:00:00”
},{
…
}
Parameters:
{
[“id” : “I20121203171041”]
[“name”: “Input 1”]
“start” : “2016-02-01 12:00:00”
[“end” : “2016-02-01 12:00:00”]
[“order”: 0 ] // 0 = ASC , 1 = DESC
[“page”: 1]
}
Response:
{
“size” : “234”
“data” :[{
“Id” : “I20121203171041”,
“name”: “Input 1”,
“value”: “1”,
“type”: “1”,
“updated”: “2016-02-01 12:00:00”
},{
…
}
]
}