Files
2023-08-24 20:57:25 +00:00

29 lines
625 B
ReStructuredText

..
Code generated for API Clients. DO NOT EDIT.
Client
=====================================
:class:`~ngrok.Client` is the root object of the `ngrok-api` library. Construct
a Client with an API Key. Then you can access API Services as properties of the
Client object:
::
import ngrok
# construct the api client
client = ngrok.Client("<API KEY>")
# list all ip policies
for policy in client.ip_policies.list():
print(policy)
# create an ngrok agent authtoken
cred = client.credentials.create()
print(cred)
.. automodule:: ngrok
:members: Client
:undoc-members: Client