lib/marvel/client.rb in marvel_api-0.2.0 vs lib/marvel/client.rb in marvel_api-0.2.1
- old
+ new
@@ -17,25 +17,17 @@
end
# Requests on the server side must be of the form
# http://gateway.marvel.com/v1/comics/?ts=1&apikey=1234&hash=ffd275c5130566a2916217b101f26150
# where ts is a timestamp
- # where apikey is your public API key
- # where hash is the MD5 hash of the concatenation of
- # ts, your private API key, and your public API key
+ # apikey is your public API key
+ # hash is the MD5 hash of the concatenation of
+ # ts, your private API key, and your public API key
- # So basic request form for all methods looks like
- # Faraday.get("#{BASE_URL}#{path}#{id}#{stub}#{auth}").body
- # e.g., get_comics_by_character_id
- # Faraday.get("#{BASE_URL}characters/#{id}/comics#{auth}").body
+ # All methods return an Array of Hashie::Mash objects
+ # that represent the original JSON response
- # TODO; MODULARIZE THIS!!!
- # TODO; Refactor — tons of duplication
-
- # All methods return a Hashie::Mash object
- # representation of the original JSON response
-
- # Characters:
+ # Characters:
# fetches lists of characters
def characters(options = {})
# v1/public/characters
get('characters', options)
\ No newline at end of file