-1

I'm not entirely sure when to use each API reference that Microsoft provides.

E.g.,

I had requirements to obtain the TASKS because I was developing an Office Outlook add-in. There are many approaches, but I'm not sure which one is the most up-to-date in terms of development.

What the differences are between those API endpoints? Is it fine to use the [DEPRECATED] Outlook Task REST API Reference (version 2.0) API endpoints?

James Z
  • 12,209
  • 10
  • 24
  • 44
Kishan Vaishnani
  • 234
  • 1
  • 12
  • 3
    If an API is marked as deprecated, I would strongly suggest not to use it anymore and use a provided alternative (if one exists). – mamen Aug 01 '23 at 06:47

1 Answers1

2

OfficeJs APIs are the APIs provided for web addins and you should use these whenever possible. If you do not find API for your scenario in OfficeJs APIs you can use other APIs. For these APIs you will need to acquire auth token. You can try using Microsoft Graph APIs as it's most recent. For more details on enabling SSO and acquiring Graph token for addins please check here

You can also use Office JS API(makeEwsRequestAsync) to make EWS request this would not require you to acquire access token separately. Please refer to doc here for more details