Skip to content

Commit

Permalink
Create a test datapoint on pomodoro start
Browse files Browse the repository at this point in the history
Added jquery. Creates a test datapoint on pomodoro start. Currently
works with personal authentication, so you need to sub in your own
endpoint URL and auth_token.
  • Loading branch information
maggiedelano committed Jan 17, 2015
1 parent 1460f4f commit a66d48c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
9 changes: 9 additions & 0 deletions background.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,15 @@ function Pomodoro(options) {
this.running = true;
this.currentTimer = new Pomodoro.Timer(this, timerOptions);
this.currentTimer.start();

jQuery.ajax({
type: "POST",
url: "https://www.beeminder.com/api/v1/users/",
data: {"auth_token": "","value": 5,"comment":"pomodoro"},
success: function(data) {
console.log(data);
}
});
}

this.restart = function () {
Expand Down
Loading

0 comments on commit a66d48c

Please sign in to comment.