Skip to content

Instantly share code, notes, and snippets.

@enocom
Created November 8, 2017 17:34
Show Gist options
  • Save enocom/d29e40a22c8040f6432dd95f5acc4286 to your computer and use it in GitHub Desktop.
Save enocom/d29e40a22c8040f6432dd95f5acc4286 to your computer and use it in GitHub Desktop.
function getCookie(token) {
fetch("https://doppler.coconut.cf-app.com/set-cookie?CookieName=authorization&CookieValue="+token)
.then(function(response) { console.log(response); })
}
function getRecentLogs(guid) {
fetch("https://doppler.coconut.cf-app.com/apps/" + guid + "/recentlogs")
.then(function(response) { return response.text(); });
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment