Pomax / node-flickrapi

A node.js (and client-library) implementation of the Flickr API with oauth API key authentication and API method proxying
177 stars 52 forks source link

TypeError: Cannot read property 'photos' of undefined #113

Closed yarekc closed 4 years ago

yarekc commented 4 years ago
var config = require('./config');
var Flickr = require('flickrapi');
var flickr = Flickr.tokenOnly({
    api_key: config.flickrkey
});
flickr.photos.search({
    user_id: flickr.options.user_id,
    page: 1,
    per_page: 500
}, function(err, result) {
    // result is Flickr's response
});

gives

TypeError: Cannot read property 'photos' of undefined

Pomax commented 4 years ago

at this point in time, you probably want to use https://github.com/Flickr/flickr-sdk instead