Google API - 检索资源ID?
如何使用 C# 检索 GoogleDocs 中指定文件夹的资源 ID?我知道我可以根据我上传的文件检索它,如下所示:
DocumentEntry docEntry = docServ.UploadDocument(@"c:\AnotherDocument1.txt", null);
Document newDoc = docReq.Retrieve<Document>(new Uri(docReq.BaseUri + "/" + docEntry.ResourceId));
string x = newDoc.ResourceId;
但是我有一个名为“ABC”的文件夹,我想根据该文件夹的名称获取该文件夹的 ResourceId。我将使用它将文档移动到“ABC”文件夹中。
How do I retrieve a resourceid of a specified folder within GoogleDocs using C#? I understand I can retrieve it based on a file I have uploaded like below:
DocumentEntry docEntry = docServ.UploadDocument(@"c:\AnotherDocument1.txt", null);
Document newDoc = docReq.Retrieve<Document>(new Uri(docReq.BaseUri + "/" + docEntry.ResourceId));
string x = newDoc.ResourceId;
But I have a folder called "ABC" and I would like to get the ResourceId of this based on the name of this folder. I will be using this to move the document into the "ABC" folder.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论