You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: "Get a send as alias for the authenticated user. [See the documentation](https://developers.google.com/workspace/gmail/api/reference/rest/v1/users.settings.sendAs/get)",
8
+
version: "0.0.1",
9
+
type: "action",
10
+
props: {
11
+
gmail,
12
+
sendAsEmail: {
13
+
type: "string",
14
+
label: "Send As Email",
15
+
description: "The email address of the send as alias to get",
16
+
asyncoptions(){
17
+
const{ sendAs }=awaitthis.gmail.listSignatures();
18
+
returnsendAs.map(({ sendAsEmail })=>sendAsEmail);
19
+
},
20
+
},
21
+
},
22
+
asyncrun({ $ }){
23
+
const{ data }=awaitthis.gmail._client().users.settings.sendAs.get({
24
+
userId: constants.USER_ID,
25
+
sendAsEmail: this.sendAsEmail,
26
+
});
27
+
28
+
$.export("$summary","Successfully retrieved send as alias");
description: "List all send as aliases for the authenticated user. [See the documentation](https://developers.google.com/workspace/gmail/api/reference/rest/v1/users.settings.sendAs/list)",
7
+
version: "0.0.1",
8
+
type: "action",
9
+
props: {
10
+
gmail,
11
+
},
12
+
asyncrun({ $ }){
13
+
constresponse=awaitthis.gmail.listSignatures({
14
+
$,
15
+
});
16
+
17
+
$.export("$summary",`Successfully retrieved ${response.sendAs?.length} send as aliases`);
0 commit comments