Created
September 9, 2019 14:06
-
-
Save dmsimard/783e4e190322f1a346b296437400929b to your computer and use it in GitHub Desktop.
http client test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import json | |
# Import the client | |
from ara.clients.http import AraHttpClient | |
# Instanciate the HTTP client with an endpoint where an API server is listening | |
client = AraHttpClient(endpoint="https://api.demo.recordsansible.org") | |
print(json.dumps(client.get("/api/v1/playbooks"))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment