Comments (2)
sounds like you are passing a class into the configure method instead of a hash.
i use asin in a helper-class that is located in my lib folder:
class Helper
extend ASIN
def self.amazon_book(asin)
configure(:secret => ENV['ASIN_SECRET'], :key => ENV['ASIN_KEY'], :host => 'webservices.amazon.de', :logger => logger)
end
end
from asin.
Yes, thanks for the reply. I also have it in a helper class, I think the problem I was having was that I was doing "include ASIN" instead of "extend ASIN".
my helper class:
module Amazonian
extend ASIN
end
and my initializer:
require 'amazonian'
Amazonian.configure(:secret => '<>', :key => '<>')
I had almost the same setup yesterday when it was throwing that error so I was distilling it down to the bare minimum for some testing. Swapping out that include for extend seems to have done it.
Thanks!
from asin.
Related Issues (20)
- Readme correction for properly finding the Formatted Price HOT 3
- Response not contain image product HOT 3
- Prevent stdout logging HOT 1
- How to gracefully handle response errors? HOT 2
- simplify asin
- Care required with dependent module versioning when using excon with httpi HOT 2
- Example are broken ... HOT 14
- Question: Getting lowest new price including shipping HOT 1
- Latest Amazon changes to product API seemed to result in errors HOT 13
- different languages HOT 5
- How can I pull image url(s) ? HOT 7
- Too much debug info HOT 4
- check compatibility with new AWS certificates HOT 1
- SearchBins Response Group does not return any Search Bins HOT 5
- Hashie::Rash namespace collision in newer versions of Hashie & Rash gems HOT 2
- empty price for some asin HOT 2
- How to get list of products for a particular store only HOT 3
- SignatureDoesNotMatch HOT 7
- Maybe it's a good idea to change XML serialization library? HOT 2
- Will ASIN support the Product Advertising API 5.0? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asin.