@pipedream/verifalia
Version:
Pipedream Verifalia Components
22 lines (19 loc) • 639 B
JavaScript
import verifalia from "../../verifalia.app.mjs";
export default {
name: "Get Credits Balance",
description: "Get the number of credit packs and free daily credits available to the account. [See the docs](https://verifalia.com/developers#credits-get-balance) for more information",
key: "verifalia-get-balance",
version: "0.0.2",
type: "action",
props: {
verifalia,
},
async run() {
const verifaliaClient = this.verifalia.buildVerifaliaRestClient();
return await this.verifalia.wrapVerifaliaApiInvocation(async () => {
return await verifaliaClient
.credits
.getBalance();
});
},
};