with Plain and CoinMarketCal?
Obtain a list of all available event categories in CoinMarketCal. See the docs here
Obtain a list of all available coins in CoinMarketCal. See the docs here
The Plain API provides functionality for automating customer support tasks, such as managing conversations, customers, and team inboxes. Within Pipedream, you can leverage these features to create custom workflows that respond to events from your app or external services, triggering actions in Plain. By integrating the Plain API with Pipedream, you can enhance customer support efficiency, streamline communication, and keep customer data synchronized across platforms.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
plain: {
type: "app",
app: "plain",
}
},
async run({steps, $}) {
const data = {
"query": `query Workspace {
workspace(workspaceId: "${this.plain.$auth.workspace_id}") {
id
publicName
}
}`,
}
return await axios($, {
method: "post",
url: `https://core-api.uk.plain.com/graphql/v1`,
headers: {
Authorization: `Bearer ${this.plain.$auth.api_key}`,
"Content-Type": `application/json`,
},
data,
})
},
})
CoinMarketCal API delivers information on cryptocurrency events. It can serve as a critical data source for market sentiment analysis, trading, and investment strategies. With Pipedream, you can trigger workflows based on this data, process and analyze it, or connect it to other services to create comprehensive crypto market tools.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
coinmarketcal: {
type: "app",
app: "coinmarketcal",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://developers.coinmarketcal.com/v1/events`,
headers: {
"x-api-key": `${this.coinmarketcal.$auth.api_key}`,
},
})
},
})