访问自己的照片时在Flicker Api中出现问题

时间:2016-10-04 16:48:06

标签: javascript node.js npm flickr

我试图通过此函数https://www.flickr.com/services/api/flickr.people.getPhotosOf.htm在我从这里获得的节点包上访问我自己的图片https://www.npmjs.com/package/flickrapi \

如果我尝试访问任何其他用户的图片(例如,136485307 @ N06 - Apollo Image Gallery),我可以轻松获取图片。但是,如果我尝试通过using System; using System.Collections.Generic; using System.Text; using Microsoft.SqlServer.Dts.Runtime; using Microsoft.SqlServer.Dts.Tasks.BulkInsertTask; namespace configuration_API { class Program { static void Main(string[] args) { // Create a package and set two properties. Package pkg = new Package(); pkg.EnableConfigurations = true; pkg.ExportConfigurationFile(@"C:\conf.xml"); // Create a variable object and add it to the // package Variables collection. Variable varPkg = pkg.Variables.Add("var", false, "", 100); varPkg.Value = 1; string packagePathToVariable = varPkg.GetPackagePath(); // Create a configuration object and add it to the // package configuration collection. Configuration config = pkg.Configurations.Add(); // Set properties on the configuration object. config.ConfigurationString = "conf.xml"; config.Description = "My configuration description"; config.ConfigurationType = DTSConfigurationType.ConfigFile; config.PackagePath = packagePathToVariable; // Save the package and its configuration. Application app = new Application(); app.SaveToXml(@"c:\pkg.xml", pkg, null); // Reload the package. Package p1 = app.LoadPackage(@"c:\pkg.xml", null); // Review the configuration information. Configurations configs_After = pkg.Configurations; foreach(Configuration confAfter in configs_After) { Console.WriteLine("ConfigurationString is {0}", confAfter.ConfigurationString); Console.WriteLine("ConfigurationType is {0}", confAfter.ConfigurationType); Console.WriteLine("CreationName is {0}", confAfter.CreationName); Console.WriteLine("Description is {0}", confAfter.Description); Console.WriteLine("Assigned ID is {0}", confAfter.ID); Console.WriteLine("Name is {0}", confAfter.Name); } } } } user_id: "132868185@N07访问我自己的照片,我从服务中得不到任何回复。我的代码现在看起来像这样:

user_id: "me"

我觉得我错过了一步,但我无法确定哪一步。任何建议都会有所帮助!

1 个答案:

答案 0 :(得分:0)

好的,我发现了问题。我试图使用错误的功能。也就是说,我试图使用flick.people.getPhotosOf https://www.flickr.com/services/api/flickr.people.getPhotosOf.htm

我应该使用flick.people.getPhotos https://www.flickr.com/services/api/flickr.people.getPhotos.html