-
Notifications
You must be signed in to change notification settings - Fork 114
Open
Description
https://github.com/kytrinyx/etsy/blob/master/lib/etsy/listing.rb#L145
def variations(options={})
options.merge!(:require_secure => true)
self.class.get_all("/listings/#{id}/variations", oauth.merge(options))
end
Is there any reason for this to have the require_secure parameter set? It seems to work without it.
irb(main):093:0> listing = Etsy::Listing.find('193989447')
irb(main):094:0> listing.variations
RuntimeError: Secure connection required. Please provide your OAuth credentials via :access_token and :access_secret in the parameters
irb(main):109:0> Etsy::Listing.get_all("/listings/#{listing.id}/variations", listing.send(:oauth)).flat_map { |l| l.result.fetch('options').map { |v| v.fetch('value') } }
=> ["A4 (21 x 29.7cm)", "A3 (29.7 x 42cm)"]
Thanks.
Metadata
Metadata
Assignees
Labels
No labels