Skip to content

Commit c338295

Browse files
[Outlook] (code sample) Add snippet to restUrl property (#2098)
1 parent 81fe0a5 commit c338295

File tree

13 files changed

+120
-0
lines changed

13 files changed

+120
-0
lines changed

docs/code-snippets/outlook-snippets.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,11 @@ Office.Mailbox#makeEwsRequestAsync:member(1):
706706
707707
// Process the returned response here.
708708
}
709+
Office.Mailbox#restUrl:member:
710+
- |-
711+
// Get the URL of the REST endpoint.
712+
const restUrl = Office.context.mailbox.restUrl;
713+
console.log(`REST API URL: ${restUrl}`);
709714
Office.MailboxEnums.AttachmentStatus:enum:
710715
- |-
711716
// Get the attachment that was just added to a message or appointment.

docs/docs-ref-autogen/outlook/outlook/office.mailbox.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,16 @@ properties:
394394
#### Examples
395395
396396
397+
```TypeScript
398+
399+
// Get the URL of the REST endpoint.
400+
401+
const restUrl = Office.context.mailbox.restUrl;
402+
403+
console.log(`REST API URL: ${restUrl}`);
404+
405+
```
406+
397407
```TypeScript
398408
399409
// Link to full sample:

docs/docs-ref-autogen/outlook_1_10/outlook/office.mailbox.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,16 @@ properties:
394394
#### Examples
395395
396396
397+
```TypeScript
398+
399+
// Get the URL of the REST endpoint.
400+
401+
const restUrl = Office.context.mailbox.restUrl;
402+
403+
console.log(`REST API URL: ${restUrl}`);
404+
405+
```
406+
397407
```TypeScript
398408
399409
// Link to full sample:

docs/docs-ref-autogen/outlook_1_11/outlook/office.mailbox.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,16 @@ properties:
394394
#### Examples
395395
396396
397+
```TypeScript
398+
399+
// Get the URL of the REST endpoint.
400+
401+
const restUrl = Office.context.mailbox.restUrl;
402+
403+
console.log(`REST API URL: ${restUrl}`);
404+
405+
```
406+
397407
```TypeScript
398408
399409
// Link to full sample:

docs/docs-ref-autogen/outlook_1_12/outlook/office.mailbox.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,16 @@ properties:
394394
#### Examples
395395
396396
397+
```TypeScript
398+
399+
// Get the URL of the REST endpoint.
400+
401+
const restUrl = Office.context.mailbox.restUrl;
402+
403+
console.log(`REST API URL: ${restUrl}`);
404+
405+
```
406+
397407
```TypeScript
398408
399409
// Link to full sample:

docs/docs-ref-autogen/outlook_1_13/outlook/office.mailbox.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,16 @@ properties:
394394
#### Examples
395395
396396
397+
```TypeScript
398+
399+
// Get the URL of the REST endpoint.
400+
401+
const restUrl = Office.context.mailbox.restUrl;
402+
403+
console.log(`REST API URL: ${restUrl}`);
404+
405+
```
406+
397407
```TypeScript
398408
399409
// Link to full sample:

docs/docs-ref-autogen/outlook_1_14/outlook/office.mailbox.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,16 @@ properties:
394394
#### Examples
395395
396396
397+
```TypeScript
398+
399+
// Get the URL of the REST endpoint.
400+
401+
const restUrl = Office.context.mailbox.restUrl;
402+
403+
console.log(`REST API URL: ${restUrl}`);
404+
405+
```
406+
397407
```TypeScript
398408
399409
// Link to full sample:

docs/docs-ref-autogen/outlook_1_5/outlook/office.mailbox.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,16 @@ properties:
310310
#### Examples
311311
312312
313+
```TypeScript
314+
315+
// Get the URL of the REST endpoint.
316+
317+
const restUrl = Office.context.mailbox.restUrl;
318+
319+
console.log(`REST API URL: ${restUrl}`);
320+
321+
```
322+
313323
```TypeScript
314324
315325
// Link to full sample:

docs/docs-ref-autogen/outlook_1_6/outlook/office.mailbox.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,16 @@ properties:
310310
#### Examples
311311
312312
313+
```TypeScript
314+
315+
// Get the URL of the REST endpoint.
316+
317+
const restUrl = Office.context.mailbox.restUrl;
318+
319+
console.log(`REST API URL: ${restUrl}`);
320+
321+
```
322+
313323
```TypeScript
314324
315325
// Link to full sample:

docs/docs-ref-autogen/outlook_1_7/outlook/office.mailbox.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,16 @@ properties:
310310
#### Examples
311311
312312
313+
```TypeScript
314+
315+
// Get the URL of the REST endpoint.
316+
317+
const restUrl = Office.context.mailbox.restUrl;
318+
319+
console.log(`REST API URL: ${restUrl}`);
320+
321+
```
322+
313323
```TypeScript
314324
315325
// Link to full sample:

0 commit comments

Comments
 (0)