简体   繁体   English

从Google Drive API获取数据

[英]fetch data from google drive api

I want to access google drive api methods. 我想访问Google Drive API方法。 i have access token for this. 我对此有访问令牌。 I am using c#.net. 我正在使用c#.net。 i basically want to create custom api methods for users so that they can pass access token to a method to invoke that. 我基本上想为用户创建自定义api方法,以便他们可以将访问令牌传递给方法来调用它。 So i want to know if it is possible or not, and if possible then can i get an example for it. 所以我想知道是否可能,如果可以的话我可以举个例子。

I have searched a lot on google and found a 'Dr.Edit' sample aplication. 我在Google上进行了大量搜索,发现了“ Dr.Edit”示例应用程序。 It uses many methods for retrieving data but it uses driveservice object as a parameter in every method. 它使用许多方法来检索数据,但在每种方法中都使用driveservice对象作为参数。 this object consist of acccesstoken inside it but i did not find any way of getting data just by accesstoken. 这个对象由里面的acccesstoken组成,但是我没有发现仅通过accesstoken获取数据的任何方法。

Any help from your side would be appreciated. 您的任何帮助将不胜感激。 Thanx in advance. 提前感谢。

请检查有关如何获取授权凭证的C#示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM