Service for managing a reading list of articles and videos
Get the duration between two dates in days, hours, minutes, and seconds along with checking if they are the same.
Save articles, videos, images and URLs to your Pocket list. See docs here
Pocket's API on Pipedream allows for the automation of content curation workflows. Users can add, retrieve, and organize articles, videos, or other content they want to view later. By leveraging the API, you can create systems for tagging and sorting saved items, integrating them with other services for further processing or sharing. This could be useful for content creators, researchers, or anyone needing to manage a large influx of information efficiently.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
pocket: {
type: "app",
app: "pocket",
}
},
async run({steps, $}) {
const pocketReq = {
method: "post",
url: "/v3/get",
data: {
count: 10,
access_token: this.pocket.$auth.oauth_access_token,
},
}
// proxy pocket request
return await axios($, {
url: "https://enkogw2a5epb176.m.pipedream.net",
params: {
http_respond: 1,
},
data: pocketReq,
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})