Skip to content

Instantly share code, notes, and snippets.

@dmsimard dmsimard/test.py
Created Sep 9, 2019

Embed
What would you like to do?
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
You can’t perform that action at this time.