Skip to content

Commit

Permalink
Address Picasa API deprecation
Browse files Browse the repository at this point in the history
Issue #18 work around
  • Loading branch information
Bostwickenator committed Jan 29, 2019
1 parent 4f8698a commit 67f7e50
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public PicasawebClient(Credential credential) {
}

private HttpsURLConnection getConnection() throws Exception {
HttpsURLConnection connection = (HttpsURLConnection) new URL(API_PREFIX + "default/albumid/" + "default").openConnection();
HttpsURLConnection connection = (HttpsURLConnection) new URL(API_PREFIX + "default/albumid/" + "default" + "?deprecation-extension=true").openConnection();
connection.setRequestMethod("POST");
connection.setDoOutput(true); // Triggers POST.
connection.setRequestProperty("Authorization", "Bearer " + credential.getAccessToken());
Expand Down

0 comments on commit 67f7e50

Please sign in to comment.