@pipedream/sendcloud
Version:
Pipedream Sendcloud Components
23 lines (18 loc) • 545 B
JavaScript
import app from "../../sendcloud.app.mjs";
export default {
key: "sendcloud-get-current-user",
name: "Get Current User",
description: "Get the authenticated user info. [See the documentation](https://api.sendcloud.dev/docs/sendcloud-public-api/user/operations/list-user-auth-metadata)",
version: "0.0.1",
type: "action",
props: {
app,
},
async run({ $ }) {
const response = await this.app.getCurrentUser({
$,
});
$.export("$summary", "Successfully retrieved current user");
return response;
},
};