C# 通过标记wpf获取instagram照片

C# 通过标记wpf获取instagram照片,c#,instagram-api,C#,Instagram Api,我正在使用Instagram API,我发现它为开发者屏蔽了公共内容。我必须通过我的应用程序注册,但他们要求我的网站的url…,但我正在创建桌面应用程序!也许您知道使用此API的其他方法?我的应用程序的用户可以通过AOuth,但我找不到方法。我也试着使用InstaSharp,但没用 var clientID = "myid"; var clientSecret = "secret"; InstaSharp.InstagramConfig config = new InstaSharp.Ins

我正在使用Instagram API,我发现它为开发者屏蔽了
公共内容。我必须通过我的应用程序注册,但他们要求我的网站的url…,但我正在创建桌面应用程序!也许您知道使用此API的其他方法?我的应用程序的用户可以通过
AOuth
,但我找不到方法。我也试着使用InstaSharp,但没用

var clientID = "myid";
var clientSecret = "secret";

InstaSharp.InstagramConfig config = new 
InstaSharp.InstagramConfig(clientID, clientSecret);
OAuthResponse responses = new OAuthResponse();
var tags = new InstaSharp.Endpoints.Tags(config, responses);
var result = await tags.Recent("inst");
foreach (InstaSharp.Models.Media item in result.Data)
{
    MessageBox.Show(item.Link);
}

Instagram提供了一个公共搜索选项,也许可以得到你想要的东西。我使用Chrome和开发者控制台以及网络活动选项卡来破译正确的查询参数

https://www.instagram.com/web/search/topsearch?context=user&q={username}
这将返回一个JSON结果。如果你擅长使用JSON,这应该很容易搜索