Exemples Formats JSON et URL Encoded :
POST:
curl -X POST -d '{"code":"1111","relay":"1"}' http://admin:admin@192.168.0.30/api/remote/ --digest
--header "Content-Type: application/json"
POST:
curl -d "code=1111,relay=1" -H "Content-Type: application/x-www-form-urlencoded" -X POST
http://admin:admin@192.168.0.30/api/remote/ --digest
GET:(auth NONE/BASIC)
curl -H "Content-Type: application/x-www-form-urlencoded"
http://admin:admin@192.168.0.30/api/remote/?code=1111&relay=1
2. API VoIP
Cette API permet de contrôler à distance la partie téléphonie du produit.
– Répondre à un appel entrant
POST:
curl -d "type=answer" -H "Content-Type: application/x-www-form-urlencoded" -X
POST http://admin:admin@192.168.0.30/api/voip/ --digest
GET: (auth NONE/BASIC)
curl -H "Content-Type: application/x-www-form-urlencoded"
http://admin:admin@192.168.0.30/api/voip/?type=answer
– Terminer une communication ou un appel entrant
POST:
curl -d "type=terminate_all" -H "Content-Type: application/x-www-form-urlencoded"
-X POST http://admin:admin@192.168.0.30/api/voip/ --digest
GET: (auth NONE/BASIC)
curl -H "Content-Type: application/x-www-form-urlencoded"
http://admin:admin@192.168.0.30/api/voip/?type=terminate_all
– Lancer un appel
table:
Précise dans quelle table de base de données se situe le contact.
Notice_IPAC_500_M.xml
Octobre 2021
Page 55 sur 77