{user_id}在Instagram基本显示API中请求访问令牌时,正在使用失眠和Axios

发布于 2025-02-12 18:57:59 字数 1367 浏览 3 评论 0原文

即时消息将“发布”请求发送到 https://api.instagram.com/oaauth/oauth/access_token 要获取访问令牌以获取Instagram用户基本信息。但是,我注意到当我使用完全相同的凭据但不同的方式调用上面的API时,响应对象的{user_id}的{user_id}正在增加。这是为什么?

第一种方法是使用失眠

注意 user_id 以*** 499 结束

第二种方法是在Nest JS服务中使用Axios,并使用Inmomia 来调用夹杂物:

请注意, user_id 由1 增加。

最糟糕的是 user_id 以结尾*** 500 无效。 (请参阅下面的错误)

为什么会发生这种情况?诡异的...

Im sending "POST" request to https://api.instagram.com/oauth/access_token to obtain an access token in order to fetch instagram user basic info. But I notice when im calling the api above using exact same credential but different way then the { user_id } from the response object is incrementing. Why is that?

FIRST WAY IS USING INSOMIA:

Notice the user_id ends with ***499
enter image description here

SECOND WAY IS USING AXIOS INSIDE NEST JS SERVICE AND CALLING THE ENDOINT USING INSOMIA:

Notice the user_id is incremented by 1.
enter image description here

enter image description here

The worst thing is the user_id that ends with ***500 is not valid. (See the error below)
enter image description here

Why is that happened? Weird...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文