Created
July 7, 2020 18:06
-
-
Save blacklight/bd83030eb86a4d05096aa64665c8d41d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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