Skip to content

Martian querystring modifier to authenticate against the Marvel Comics API

License

Notifications You must be signed in to change notification settings

taik0/marvelapi-martian_querystring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Marvel API martian querystring modifier

This package is a martian modifier for authentication against the Marvel comics API.

The procedure extracted from the Marvel API documentation: https://developer.marvel.com/documentation/authorization

Authentication for Server-Side Applications
Server-side applications must pass two parameters in addition to the apikey parameter:
ts - a timestamp (or other long string which can change on a request-by-request basis)
hash - a md5 digest of the ts parameter, your private key and your public key (e.g. md5(ts+privateKey+publicKey)
For example, a user with a public key of "1234" and a private key of "abcd" could construct a valid call as follows: http://gateway.marvel.com/v1/public/comics?ts=1&apikey=1234&hash=ffd275c5130566a2916217b101f26150 (the hash value is the md5 digest of 1abcd1234)

About

Martian querystring modifier to authenticate against the Marvel Comics API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages