使用Dropbox API为Dropbox文件夹生成可共享的链接. [英] generate a shareable link for Dropbox Folders using Dropbox API.
本文介绍了使用Dropbox API为Dropbox文件夹生成可共享的链接.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用C#生成一个链接以共享Dropbox中的文件夹.我正在使用SharpBox API和此链接 [此处获得了C#的代码 [
I''m trying to generate a link to share a folder in Dropbox using C#. Im using the SharpBox API and this link[^] to share folders. I got the code for C# from here[^](under the heading: Issuing HTTP POST Requests) and copied it as it was. Im passing the following parameters in the function:
string url = @"https://www.dropbox.com/1/shares/dropbox/" + @"Apps/myAppFolder/CommonFolder";
string[] paramz = { "locale", "short_url" };
string[] values = { "404", "false" };
string result = DropboxUtil.HttpPost(url, paramz, values);
但是我在函数中的此行上收到403禁止错误:
However I get a 403 forbidden error on this line in the function:
using (HttpWebResponse resp = req.GetResponse() as HttpWebResponse)
请帮忙!
Please help!
推荐答案
详细信息和可能的修复方法:
HTTP错误403禁止 [ 403禁止的错误解决方法 [
Details and possible fix of it:
HTTP Error 403 Forbidden[^]
403 Forbidden Error Resolution[^]
这篇关于使用Dropbox API为Dropbox文件夹生成可共享的链接.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文