Skip to content

Instantly share code, notes, and snippets.

@blacklight
Created July 7, 2020 18:06
Show Gist options
  • Save blacklight/bd83030eb86a4d05096aa64665c8d41d to your computer and use it in GitHub Desktop.
Save blacklight/bd83030eb86a4d05096aa64665c8d41d to your computer and use it in GitHub Desktop.
// Sample Platypush user script to save the current URL to Instapaper
async (app, args) => {
const url = await app.getURL();
const response = await app.axios.get('https://www.instapaper.com/api/add', {
params: {
url: url,
username: '********@****.***',
password: '******',
},
});
const targetURL = `https://instapaper.com/read/${response.data.bookmark_id}`;
app.openTab(targetURL);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment