如何获取Windows项目的客户端ID和密码以获取访问令牌以访问C#中的智能表API [英] How to get client id and secret for a windows project to get access token for accessing smartsheet API in C#

查看:87
本文介绍了如何获取Windows项目的客户端ID和密码以获取访问令牌以访问C#中的智能表API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要通过程序获取访问令牌,智能表文档告诉使用开发人员工具选项注册第三方应用程序,该选项需要APP URL和APP Redirect URL。



我的应用程序是一个控制台项目,如何指定APP URL和APP Redirect URL。



我尝试过:



我尝试通过进入账户(设置)>手动点击生成新访问令牌,从智能表生成访问令牌。个人设置> API访问。

但是此访问令牌将在7天后到期。

因此我希望通过程序生成访问令牌,以便我可以刷新令牌。

解决方案

如果您的意思是 Developer Portal | Smartsheet开发人员 [ ^ ],此示例应回答您的问题:< a href =https://github.com/smartsheet-samples/csharp-read-write-sheet> GitHub - smartsheet-samples / csharp-read-write-sheet:加载工作表的C#示例应用程序,更新选定的单元格,并保存结果 [ ^

To get access token through program the smart sheet documentation tells to register the third party application using the Developer tools option which requires "APP URL" and "APP Redirect URL".

My application being a console project how can i specify "APP URL" and "APP Redirect URL".

What I have tried:

I tried access token generated from smart sheet by manually clicking "Generate New Access Token" by going into Account(settings)> Personal Settings> API Access.
But this Access token will expire in 7 days.
Hence i want an access token to be generated through program so that i can Refresh the Token.

解决方案

If you mean Developer Portal | Smartsheet Developers[^], this sample should answer your questions: GitHub - smartsheet-samples/csharp-read-write-sheet: C# sample application that loads a sheet, updates selected cells, and saves the results[^]


这篇关于如何获取Windows项目的客户端ID和密码以获取访问令牌以访问C#中的智能表API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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