Skip to content

retailify/ispapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hexonet ISP API

This is a clone of Hexonet ispapi 2.2.

Install ispapi

pip install ispapi
# 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()