nerdexam
Microsoft

MS-600 · Question #178

You have a third-party API that is secured by using Azure Active Directory (Azure AD). You need to configure a SharePoint Framework (SPFx) web part to consume the third-party API. Which method…

The correct answer is A. aadHccpCliencFaccory(). The AadHttpClient client object is useful for consuming any REST API. You can use it to consume Microsoft Graph or any other third-party (or first-party) REST API. To consume any REST API using the AadHttpClient client object, create a new instance of the AadHttpClient type by…

Extend and customize Microsoft 365 with SharePoint Framework

Question

You have a third-party API that is secured by using Azure Active Directory (Azure AD). You need to configure a SharePoint Framework (SPFx) web part to consume the third-party API. Which method should you use?

Options

  • AaadHccpCliencFaccory()
  • BExecuteQuery()
  • CClientConcexc()
  • DmsGraphCliencFaccory()

How the community answered

(33 responses)
  • A
    73% (24)
  • B
    3% (1)
  • C
    18% (6)
  • D
    6% (2)

Explanation

The AadHttpClient client object is useful for consuming any REST API. You can use it to consume Microsoft Graph or any other third-party (or first-party) REST API. To consume any REST API using the AadHttpClient client object, create a new instance of the AadHttpClient type by calling the context.aadHttpClientFactory.getClient() method and providing the URI of the target service. https://docs.microsoft.com/en-us/sharepoint/dev/spfx/use-aad-tutorial

Topics

#SPFx#AadHttpClient#Azure AD#third-party API

Community Discussion

No community discussion yet for this question.

Full MS-600 Practice