Télécharger Imprimer la page

Amphitech IP-GAP Serie Notice D'exploitation page 44

Publicité

3.3.19. API
1. API PORTE
Le code porte API correspond à un des codes communs RELAIS 1 ou 2. L'API porte est soumise à
la plage horaire ou au type d'activation du Code commun RELAIS 1 ou 2 (local/Distant). En défaut
usine USER et PASSWORD sont : admin et admin
Dans l'exemple, l'utilisateur =toto avec mot de passe =titi.
Le code du relais = 1234 correspond à un des 4 codes communs relais 1 ou 2.
Authentification NONE :
http://adresse_IP_IPAC/api/remote/?login=toto&password=titi&code=xxxx (GET)
curl -d "code=1234&login=toto&password=titi" -X POST http://adresse_IP_IPAC/api/remote (POST)
Authentification BASIC :
http://toto:titi@adresse_IP_IPAC/api/remote/?code=xxxx (GET)
curl -d "code=1234" -X POST http://toto:titi@adresse_IP_IPAC/api/remote (POST)
Authentification DIGEST :
http://toto:titi@adresse_IP_IPAC/api/remote/?code=xxxx (GET, mode Hashé) (GET)
curl -d "code=1234" -X POST http://toto:titi@adresse_IP_IPAC/api/remote --digest
Il est possible pour les méthodes GET et POST le mode « https » dans la requête à la place du «
http ».
Pour l'utilisation « https » sous CURL on ajoute - - insecure (certificat non signé)
Attention : Le mode d'authentification est sauvegardé dans le cash de la page tout au long de l'ou-
verture de celle-ci.
Notice_IP_GAP_D.xml
Mars 2019
(POST)
Page 44 sur 63

Publicité

loading

Ce manuel est également adapté pour:

Ip-gap 12Ip-gap 12vIp-gap 02Ip-gap 02v