Postman Collection to Test few Marvel API end points.
- Go to Marvel Developer Page to Sign in, register your application and get
- Public Key
- Private Key
- Import the Testing Marvel API.postman_collection.json to your Postman Environment
- When Editing your Collection, go to the Pre-request Tab
- Edit pubkey and pvtkey variables values to the one you've just get at Marvel Developer Page or go to the file and change the following lines:
var pubkey = "<INSERT YOUR PUBLIC KEY>";
var pvtkey = "<INSERT YOUR PRIVATE KEY>";
- Other Enviromnent Variables will be automatically created, they are:
- ts: Time stamp required
- apikey: The same pubkey value
- hash: Hash in MD5 created from ts, pubkey and pvtkey
pm.environment.set("ts", ts);
pm.environment.set("apikey", pubkey);
var message = ts+pvtkey+pubkey;
var a = CryptoJS.MD5(message);
pm.environment.set("hash", a.toString());
Time to Run! Good Luck! Good Night! Sleep well
This file was written with Dillinger.io Online Editor and