Dynec-Api-Python-Biblioteca Clasificación y resumen
- Licencia:
- Other/Proprietary Li...
- Nombre del editor:
- Cole Tuininga
- Sitio web del editor:
- https://github.com/dyninc/
Dynec-Api-Python-Biblioteca Etiquetas
Dynec-Api-Python-Biblioteca Descripción
Dynec-Api-Python-biblioteca es una envoltura simple de Python para interactuar con la API de reposación DNS administrada por DINNECT, hace uso de una interfaz JSON, se debe tener instalado el módulo SIMEJSON, o tener Python 2.6 / 2.7 que tienen un JSON Biblioteca que viene con el lenguaje. Python 3.x actualmente es compatible con la actualidad. Uso es bastante simple: importar SYSFROM DYNECT.DYNECTDNS Importar Dynectrestest_ifaces = DYNECTREST () # Log Inarguments = {'Customer_Name': 'My_cust', 'user_name': 'My_user', 'contraseña' : 'my_pass',} respuesta = rest_iface.execute ('/ session / session /', 'post', argumentos) Si la respuesta ! = 'éxito': sys.exit ("credenciales incorrectas") # realiza actionResponse = REST_IFACE.EXECUTE ('/ ZONE /', 'Obtener') Zone_Resources = Respuesta # Cerrar sesión, para ser politerest_iface.execute ('/ sesión /', 'eliminar') La documentación en los recursos de descanso se puede encontrar ATHTTPS: //manage.dynec.net/help/docs/api2/rest/resources/product Homepage
Dynec-Api-Python-Biblioteca Software relacionado