如何通过邮递员从Smartsheet请求身份验证代码 [英] how to request auth code from Smartsheet via Postman

查看:201
本文介绍了如何通过邮递员从Smartsheet请求身份验证代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我正尝试使用邮递员从Smartsheet请求授权码。
我使用以下网址在智能表上创建了一个新应用:

so I am trying to request an authorization code from smartsheet using postman. I created a new app on my smartsheet with the following url:

应用网址: https://本地主机:3000 /

重定向网址: https:// localhost:3000 / callback

所以我尝试使用
GET https://app.smartsheet.com/b/authorize
并输入我的客户ID,范围,repsonse_type和邮递员中的状态

so I tried to use the GET https://app.smartsheet.com/b/authorize and input my client id, scope, repsonse_type, and state in postman

结果表明存在错误,并且没有将我定向到可以允许授权的页面。

the result says there is an error and it did not direct me to a page where I am able to allow authorization.

我期望与网站上说的类似( http://smartsheet-platform.github.io/api-docs/#access-levels )。我不确定我做错了哪一部分,我在这个志愿工作的家中错了,因此我没有适当的网址。我不知道是我的网址导致了问题还是其他问题。

I am expecting something similar to what the website says (http://smartsheet-platform.github.io/api-docs/#access-levels). I am not sure which part I did was wrong, I am wrong home for this volunteer work hence I do not have an appropriate url. I don't know if it's my urls that are causing the problem or there's something else.

预先感谢你们

推荐答案

如果要构建 Smartsheet OAuth 流程,您将需要一个托管环境,在该环境中可以发送请求,并能够在浏览器中打开页面以对Smartsheet帐户进行身份验证,然后选择 Allow 按钮以确认应该创建访问令牌并返回到您的应用程序。

If you are building out the Smartsheet OAuth flow you will need to have a hosted environment where you can have requests sent and be able to open a page in a browser to authenticate to the Smartsheet account and select the Allow button to confirm the access token should be created and returned to your application.

出于开发目的,您可以使用 ngrok 为您的本地主机创建一个公开可用的URL,该URL将允许您在开发环境中从Smartsheet发送和接收必要的数据。

For development purposes you can use a service like ngrok to create a publicly available URL for your localhost which will allow you to send and receive the necessary data from Smartsheet in your development environment.

这篇关于如何通过邮递员从Smartsheet请求身份验证代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆