我正在尝试使用邮递员针对Dynamics 365 API帐户发出API请求。我具有以下凭据,但我不知道要使用哪些标头进行身份验证。
我具有以下...
我需要在Postman中设置哪些标头才能访问API?
我已阅读文章并看到了一些示例,但它们都有不同之处数据比我大。例如,在下面的屏幕截图中,除了使用者密钥(client_id)和使用者密钥(client_secret)外,还有用户名和密码。
我确实了解,在制作API之前,我需要先获取 Bearer令牌呼叫。
解决方案只需遵循此
在授权选项卡中使用 OAuth 2.0 ,然后获取新访问令牌。
I am trying to make an API request against a Dynamics 365 API account using Postman. I have the following credentials but I do not know what headers to use to authenticate.
I have the following ...
What headers do I need to set in Postman to get access to the API?
I have read articles and seen some examples but they all have different data than I do. For example in the screen capture below there is a username and password in addition to a Consumer Key (client_id) and Consumer Secret (client_secret).
I do understand that I need to obtain a Bearer token first before making the API call. It is obtaining this token that is confusing me.
解决方案Simply follow this documentation to setup the Postman for Dynamics web API, even the ready-made clientid = 51f81489-12ee-4a9e-aaae-a2591f45987d will work for any CRM online instance for testing purpose. You can use your customer provided clientid as well.
url should be crmdev.crm.dynamics authurl should be login.microsoftonline/common/oauth2/authorize?resource={{url}}
First create an environment in Postman:
Use OAuth 2.0 in Authorization tab, and Get New Access Token.
更多推荐
使用Postman访问Dynamics 365 API
发布评论