Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit 38ea7a2

Browse files
committed
moved to api_from_openapi()
1 parent f42454b commit 38ea7a2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

examples/example_list_api_from_web.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import sys
66
import json
77

8+
sys.path.insert(0, os.path.abspath('.'))
89
sys.path.insert(0, os.path.abspath('..'))
910
import CloudFlare
1011

@@ -13,10 +14,13 @@ def main():
1314

1415
cf = CloudFlare.CloudFlare()
1516
try:
16-
found_comands= cf.api_from_web()
17+
found_comands = cf.api_from_openapi()
1718
except Exception as e:
1819
exit('api_from_web: - %s - api call connection failed' % (e))
1920

21+
# {"action": "GET", "cmd": "/accounts", "deprecated": false, "deprecated_date": "", "deprecated_already": false}
22+
# {"action": "DELETE", "cmd": "/accounts/:id/addressing/prefixes/:id/delegations", "deprecated": false, "deprecated_date": "", "deprecated_already": false, "content_type": "application/json"}
23+
2024
cmds = {}
2125
for r in found_comands:
2226
if r['deprecated'] or r['deprecated_already']:

0 commit comments

Comments
 (0)