Code Monkey home page Code Monkey logo

flickr's People

Contributors

apikas avatar baltazore avatar boncey avatar chrblabla avatar christopheradams avatar codener avatar cpuguy83 avatar cyclotron3k avatar dentarg avatar freeslugs avatar hanklords avatar jkraemer avatar khustochka avatar kueda avatar loeschg avatar mendab1e avatar mratzloff avatar mtn avatar netqyq avatar nitoyon avatar octplane avatar parkr avatar ramin avatar rdp avatar srussking avatar tarebyte avatar tarko avatar viseztrance avatar zatton avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

flickr's Issues

Install instructions

Following your install instructions, I typed 'gem install flickr' into the terminal from inside the project directory. It said it installed the gem but there was no creation of any directory or documentation.

NoMethodError: undefined method `keys' for "year":String

Hi,

I've been using flickraw for some years. Over the last few days I started to see a 100% failure rate when making requests to Flickr's API at the photos.getInfo endpoint.

I first landed here at your updated gem, Flickr, and upgraded from Flickraw 0.9.0 to flickr 2.0.2. However, I still see the same error, even when running the "Simple" example code

7.0.3@3.1.0 (main)> require 'flickr'
flickr = Flickr.new(ENV['FLICKR_API_KEY'], ENV['FLICKR_SECRET'])
list   = flickr.photos.getRecent
id     = list[0].id
secret = list[0].secret
info   = flickr.photos.getInfo :photo_id => id, :secret => secret
# =>
NoMethodError: undefined method `keys' for "year":String

      elsif h.keys == ['_content']
             ^^^^^
from /Users/ben/Code/railsblog/vendor/bundler/ruby/3.1.0/bundler/gems/flickr-9ced8cdfa592/lib/flickr/response.rb:11:in `build'

It seems the response builder logic is receiving a string "year" instead of a hash for the getInfo method call. The getRecent call appears to succeed:

7.0.3@3.1.0 (main)> list.count
=> 100
7.0.3@3.1.0 (main)> 
id     = list[0].id
secret = list[0].secret
7.0.3@3.1.0 (main)> id
=> "52082470912"
7.0.3@3.1.0 (main)> secret
=> "6db346ee90"

Any idea what is going wrong here?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.