Module: Marvel
- Defined in:
- lib/marvel.rb
Defined Under Namespace
Classes: Base, Character, Comic, Creator, Event, JsonParser, MarvelError, Series, SetAuthParams, Story
Constant Summary collapse
- PUBLIC_KEY =
TODO: Let these variables come from a config file or pass them in
ENV["MARVEL_PUBLIC_KEY"]
- PRIVATE_KEY =
ENV["MARVEL_PRIVATE_KEY"]
- TIMESTAMP =
DateTime.now.to_s
- URL_HASH =
Digest::MD5.hexdigest("#{TIMESTAMP}#{PRIVATE_KEY}#{PUBLIC_KEY}")
- DEFAULT_PARAMS =
"apikey=#{PUBLIC_KEY}&ts=#{TIMESTAMP}&hash=#{URL_HASH}"- BASE_URL =
"http://gateway.marvel.com/v1/public"