href.be API
send your request to http://href.be/api?url=<URL>, you will get your
short URL in text/plain format.
you should check the HTTP response code for errors:
200— we're cool400— unsupported URL or protocol500— oops, internal server terror
see for example http://href.be/api?url=http://href.be/.
if you like to gather statistics of the shortened URL, you can query the API using
the hash specified in the X-Hash header returned by the API. you can
use this hash to get the number of clickthroughs via
http://href.be/api/hits/<hash>/- for example:
- link: http://href.be/b
- hits: http://href.be/api/hits/d8cb…68c2/
