API callback tester grabs and stores the request query string parameters, body parameters and headers.
By default the response has 'message' and 'timestamp' fields. You can add following parameters to the callback request for the response customization.
response_code HTTP response code (ex. response_code=404)
response_time response delay time (ex. response_time=2000)
response_body response body (ex. response_body: {"vse":"propalo"})
response_headers response headers (ex. response_headers: {"header1":"value1", "header2":"value2"})
How to use it
- Create an entry point for your callbacks. Click on "Make URL" for custom hash like http://apicallbacks.pdffiller.com/handle?hash=201ce8bf Or use your own (for hash "apidev2" the link will be http://apicallbacks.pdffiller.com/handle?hash=apidev2)
You don't need to visit this page every time you want to use callbacks. Just add some unique hash
to the link and you're ready to go. - Add URL as a callback link for your script. You could add some params to customise response code and message
(described before current paragraph).
- To view the result for given hash insert full url to the field on this page and click "View URL".
Or navigate to http://apicallbacks.pdffiller.com/view?hash={your_hash_here}
Also you can get the view in JSON format by setting the response_format parameter in request query string in value json. Example: http://apicallbacks.pdffiller.com/view?hash={hash}&response_format=json
- Also you could check the amount of collected callbacks by visiting http://apicallbacks.pdffiller.com/count?hash={your_hash_here} It sends response in JSON format like { "total": 3 } or error like { "error": "Hash is not exist" }