Skip to content

Instantly share code, notes, and snippets.

@dmsimard
Created September 9, 2019 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmsimard/783e4e190322f1a346b296437400929b to your computer and use it in GitHub Desktop.
Save dmsimard/783e4e190322f1a346b296437400929b to your computer and use it in GitHub Desktop.
http client test
#!/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