
auths objectreturn or this.key = 'value', pass input data to your code viaparams, and maintain state across executions with$checkpoint.async (event, steps, auths) => {}return await require("@pipedreamhq/platform").axios(this, {
url: `https://api.telegram.org/bot${auths.telegram_bot_api.token}/getMe`,
})async (params, auths) => {}// See https://developer.spotify.com/documentation/web-api/reference/player/get-recently-played/
return (await require("@pipedreamhq/platform").axios(this, {
url: `https://api.spotify.com/v1/me/player/recently-played`,
headers: {
Authorization: `Bearer ${auths.spotify.oauth_access_token}`,
},
params: {
limit: 50, // Even with pagination, this endpoint only returns the 50 most recent tracks, so we grab them all
}
})).items