UNPKG

@pipedream/pushbullet

Version:

Pipedream pushbullet Components

34 lines (30 loc) 705 B
import pushbullet from "../../pushbullet.app.mjs"; export default { name: "Delete push", version: "0.0.2", annotations: { destructiveHint: true, openWorldHint: true, readOnlyHint: false, }, key: "pushbullet-delete-push", description: "Delete a push. [See docs here](https://docs.pushbullet.com/#delete-push)", type: "action", props: { pushbullet, pushIden: { propDefinition: [ pushbullet, "push", ], }, }, async run({ $ }) { const response = await this.pushbullet.deletePush({ pushIden: this.pushIden, $, }); $.export("$summary", `Successfully deleted push ${this.pushIden}`); return response; }, };