Skip to content

Commit

Permalink
Merge pull request #11 from The-Academic-Observatory/API_version_update
Browse files Browse the repository at this point in the history
Updated oapen API version url to v3
  • Loading branch information
aroelo authored May 30, 2022
2 parents dc92d70 + a113bc4 commit 3faf2a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ def download_access_stats_new(
requestor_id = username
api_key = password
base_url = (
f"https://irus.jisc.ac.uk/api/oapen/reports/oapen_ir/?platform=215&requestor_id={requestor_id}"
f"https://irus.jisc.ac.uk/api/v3/oapen/reports/oapen_ir/?platform=215&requestor_id={requestor_id}"
f"&api_key={api_key}&begin_date={release_date}&end_date={release_date}"
)
if publisher_uuid:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ def test_download_access_stats_new(self, mock_replace_ip):
requestor_id = "requestor_id"
api_key = "api_key"
base_url = (
f"https://irus.jisc.ac.uk/api/oapen/reports/oapen_ir/?platform=215&requestor_id"
f"https://irus.jisc.ac.uk/api/v3/oapen/reports/oapen_ir/?platform=215&requestor_id"
f"={requestor_id}&api_key={api_key}&begin_date={release_date}&end_date={release_date}"
)
if publisher_uuid:
Expand Down

0 comments on commit 3faf2a6

Please sign in to comment.