File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,4 +6,26 @@ A desec.io API client for python.
66
77```
88pip3 install desec
9+ ```
10+
11+ ## Usage
12+
13+ ```
14+ import desec
15+
16+ desec_token = "xxxx"
17+
18+ client = desec.Client(token=desec_token)
19+ ```
20+
21+ ```
22+ # Get info about a domain
23+ result = client.get_domain("example.com")
24+ print(result)
25+ ```
26+
27+ ```
28+ # Get all recordsets of a domain
29+ results = client.get_rrsets("example.com")
30+ print(results)
931```
Original file line number Diff line number Diff line change 1+ import desec
2+
3+ desec_token = "xxxx"
4+
5+ client = desec .Client (token = desec_token )
6+
7+
8+ result = client .get_domain ("example.com" )
9+
10+ print (result )
Original file line number Diff line number Diff line change 1+ import desec
2+
3+ desec_token = "xxxx"
4+
5+ client = desec .Client (token = desec_token )
6+
7+
8+ results = client .get_rrsets ("example.com" )
9+
10+ print (results )
You can’t perform that action at this time.
0 commit comments