If you look back at my Pi digits API from a couple months ago, you might have noticed this button:
If DHC isn’t installed in Chrome (as DHC is a Chrome extension), it’ll suggest you to install DHC. But if DHC is indeed installed, it’ll launch DHC with a pre-filled request, that you can directly try to send!
How to do the magic? You’ll need a bit of pixie dust in your HTML page:
- a meta tag to make DHC aware of the fact you want to launch a request,
- and a JSON payload to represent the details of the request you want to open in DHC.
To learn more about how to open DHC from any web page, with custom requests, you can read some more details on the DHC documentation to get all the technical details.