使用Postman访问Dynamics 365 API

编程入门 行业动态 更新时间:2024-10-28 04:20:44
本文介绍了使用Postman访问Dynamics 365 API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在尝试使用邮递员针对Dynamics 365 API帐户发出API请求。我具有以下凭据,但我不知道要使用哪些标头进行身份验证。

我具有以下...

  • 消费者密钥
  • 消费者秘密
  • 重定向Uri
  • 授权重定向URL
  • HTTP方法= POST
  • 访问令牌服务端点
  • 我需要在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 ...

  • Consumer Key
  • Consumer Secret
  • Redirect Uri
  • Authorize Redirect URL
  • HTTP Method = POST
  • Access Token Service Endpoint
  • 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

    本文发布于:2023-10-29 09:30:14,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1539339.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:Dynamics   Postman   API

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!