Skip to content

Commit

Permalink
Updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
ispyhumanfly committed Oct 3, 2023
1 parent a391f28 commit 5ee5817
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# drone-deploy-experiments

We will use this to test DroneDeploy's API


# Shell examples
## Shell examples

```shell
./graphql_test.py | while read RESULT; do echo $RESULT | jq ".data" ; done
```


3 changes: 2 additions & 1 deletion graphql_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

"""Testing connecting to Drone Deploy GraphQL API"""
import os
import json
import requests
from dotenv import load_dotenv

Expand Down Expand Up @@ -50,7 +51,7 @@

if response.status_code == 200:
print("We succeeded")
print(response.text)
print(json.loads(response.text))
else:
print(response.status_code)
print(response.text)

0 comments on commit 5ee5817

Please sign in to comment.