Skip to content

Commit

Permalink
Update usage example (fix #34)
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdandm committed Nov 2, 2020
1 parent 96570fe commit c446f36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions testing_tools/real_apis/randomapis.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Example uses the following APIs:
- CHRONICLING API (https://chroniclingamerica.loc.gov/about/api/)
- Launch Library Reading API (https://launchlibrary.net/docs/1.3/api.html)
- Launch Library Reading V2 API (https://ll.thespacedevs.com/2.0.0/swagger)
- University Domains and Names Data List (https://github.com/Hipo/university-domains-list)
"""
import requests
Expand All @@ -18,8 +18,8 @@ def chroniclingamerica(tag="michigan"):
return requests.get(f"http://chroniclingamerica.loc.gov/search/titles/results/?terms={tag}&format=json").json()


def launchlibrary(mission_name="GPS"):
return requests.get(f"https://launchlibrary.net/1.3/mission/{mission_name}").json()
def launchlibrary():
return requests.get(f"https://ll.thespacedevs.com/2.0.0/dashboard/starship/").json()


def university_domains():
Expand Down

0 comments on commit c446f36

Please sign in to comment.