Skip to content

Commit bf345d0

Browse files
committed
a php guy was in town ;)
1 parent ccfd469 commit bf345d0

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

README.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,29 @@ This is a clone of Hexonet ispapi 2.2.
55

66
.. code:: python
77
8-
#Import the ispapi library
8+
# Import the ispapi library
99
import ispapi
1010
11-
#Create a connection with the URL, entity, login and password
12-
#Use "1234" as entity for the OT&E, and "54cd" for productive use
13-
#Don't have a HEXONET Account yet? Get one here: www.hexonet.net/sign-up
11+
# Create a connection with the URL, entity, login and password
12+
# Use "1234" as entity for the OT&E, and "54cd" for productive use
13+
# Don't have a HEXONET Account yet? Get one here: www.hexonet.net/sign-up
1414
api = ispapi.connect(
1515
url = 'https://coreapi.1api.net/api/call.cgi',
1616
entity = '1234',
1717
login = 'test.user',
1818
password = 'test.passw0rd'
1919
)
2020
21-
#Call a command
21+
# Call a command
2222
response = api.call({
2323
'Command': "QueryDomainList", 'limit' : 5
2424
})
2525
26-
#Display the result in the format you want
27-
$res = response.as_list()
28-
$res = response.as_list_hash()
29-
$res = response.as_hash()
26+
# Display the result in the format you want
27+
res = response.as_list()
28+
res = response.as_list_hash()
29+
res = response.as_hash()
3030
31-
#Get the response code and the response description
31+
# Get the response code and the response description
3232
code = response.code()
3333
description = response.description()

0 commit comments

Comments
 (0)