https://github.com/retailify/ispapi
Hexonet ISP API
https://github.com/retailify/ispapi
hexonet ispapi python
Last synced: 3 months ago
JSON representation
Hexonet ISP API
- Host: GitHub
- URL: https://github.com/retailify/ispapi
- Owner: retailify
- License: mit
- Created: 2017-07-12T08:20:21.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-12T10:50:54.000Z (about 8 years ago)
- Last Synced: 2025-02-13T15:24:41.433Z (5 months ago)
- Topics: hexonet, ispapi, python
- Language: Python
- Homepage:
- Size: 19.5 KB
- Stars: 1
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.txt
- License: LICENSE
- Authors: AUTHORS
Awesome Lists containing this project
README
Hexonet ISP API
===============This is a clone of Hexonet ispapi 2.2.
Install ispapi
--------------.. code:: bash
pip install ispapi.. code:: python
# Import the ispapi library
import ispapi
# Create a connection with the URL, entity, login and password
# Use "1234" as entity for the OT&E, and "54cd" for productive use
# Don't have a HEXONET Account yet? Get one here: www.hexonet.net/sign-up
api = ispapi.connect(
url = 'https://coreapi.1api.net/api/call.cgi',
entity = '1234',
login = 'test.user',
password = 'test.passw0rd'
)
# Call a command
response = api.call({
'Command': "QueryDomainList", 'limit' : 5
})
# Display the result in the format you want
res = response.as_list()
res = response.as_list_hash()
res = response.as_hash()
# Get the response code and the response description
code = response.code()
description = response.description()