Files
2022-04-15 16:43:13 -07:00

26 lines
575 B
ReStructuredText

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