Skip to content

Commit

Permalink
Change http to https. The Rescuetime API endpoint requires https to f…
Browse files Browse the repository at this point in the history
…etch data.
  • Loading branch information
= committed Dec 4, 2015
1 parent 0a41da6 commit 4f7261a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function init() {
function urlForEfficiency() {
pv = "interval"; // do not change this
rk = "efficiency";
efficiencyUrl = "http://www.rescuetime.com/anapi/data?key=" + key + "&perspective=" + pv + "&restrict_kind=" + rk + "&interval=" + rs + "&restrict_begin=" + rb + "&restrict_end=" + re + "&format=json";
efficiencyUrl = "https://www.rescuetime.com/anapi/data?key=" + key + "&perspective=" + pv + "&restrict_kind=" + rk + "&interval=" + rs + "&restrict_begin=" + rb + "&restrict_end=" + re + "&format=json";
console.log(efficiencyUrl);
}
/**
Expand All @@ -106,7 +106,7 @@ function urlForEfficiency() {
function urlForActivity() {
pv = "rank"; //do not change this
rk = "activity";
activityUrl = "http://www.rescuetime.com/anapi/data?key=" + key + "&perspective=" + pv + "&restrict_kind=" + rk + "&interval=" + rs + "&restrict_begin=" + rb + "&restrict_end=" + re + "&format=json";
activityUrl = "https://www.rescuetime.com/anapi/data?key=" + key + "&perspective=" + pv + "&restrict_kind=" + rk + "&interval=" + rs + "&restrict_begin=" + rb + "&restrict_end=" + re + "&format=json";
console.log(activityUrl);
}

Expand Down Expand Up @@ -696,7 +696,3 @@ function screenShot() {
}
});
}




0 comments on commit 4f7261a

Please sign in to comment.