airtable.airtable.whoami
Home > @runlightyear/airtable > Airtable > whoami
Airtable.whoami() method
Retrieve the user ID and, for OAuth access tokens, the scopes associated with the token used.
Signature:whoami(): Promise<WhoamiResponse>;
Promise<WhoamiResponse>
Example
Who am I?
import { defineAction } from "@runlightyear/lightyear";
import { Airtable } from "@runlightyear/airtable";
defineAction({
name: "whoami",
title: "Who Am I?",
apps: ["airtable"],
run: async ({ auths, variables }) => {
const airtable = new Airtable({ auth: auths.airtable });
const response = await airtable.whoami();
console.log("Response: ", response.data);
},
});