如何在 C# 中使用 Core API 在 ASP.NET 网页中显示 Dropbox 图像文件
How do I display Dropbox image files in an ASP.NET web page using Core API in C#
我想在 C# 中使用核心 API 在 ASP.NET 图像控件中显示 Dropbox 图像文件。我正在使用以下代码填充保管箱图像文件:
RequestResult strReq = OAuthUtility.Get
(
"https://api.dropbox.com/1/metadata/auto/",
new HttpParameterCollection
{
{ "path", "FilePath" },
{ "access_token", "AccessToken" }
}
);
假设.aspx页面上有一个图像控件
<asp:Image id="Image1" runat="server">
并且我想在此控件上显示 Dropbox 图像文件。
最初的link不正确,而不是:
dropbox.com/1/metadata/
应该使用以下link:
dropboxapi.com/1/media/
我想在 C# 中使用核心 API 在 ASP.NET 图像控件中显示 Dropbox 图像文件。我正在使用以下代码填充保管箱图像文件:
RequestResult strReq = OAuthUtility.Get
(
"https://api.dropbox.com/1/metadata/auto/",
new HttpParameterCollection
{
{ "path", "FilePath" },
{ "access_token", "AccessToken" }
}
);
假设.aspx页面上有一个图像控件
<asp:Image id="Image1" runat="server">
并且我想在此控件上显示 Dropbox 图像文件。
最初的link不正确,而不是:
dropbox.com/1/metadata/
应该使用以下link:
dropboxapi.com/1/media/