shortenURL#
- hvpy.shortenURL(queryString, callback=None)[source]#
Shorten a Helioviewer.org URL with the bit.ly URL shortening web service.
- Parameters:
- Return type:
References
Examples
>>> from hvpy import shortenURL >>> shortenURL(queryString="https://api.helioviewer.org/v2/queueMovie/?startTime=2010-03-01T12:12:12Z&endTime=2010-03-04T12:12:12Z") {'status_code': ..., 'status_txt': 'OK', 'data': {'long_url': ..., 'url': ...}}