Toolshed.HTTP (toolshed v0.2.15) View Source

Helpers that make HTTP requests

Link to this section Summary

Functions

Post text to a paste service

Generate an ASCII art QR code

Display the local weather

Link to this section Functions

Specs

pastebin(String.t()) :: String.t() | {:error, term()}

Post text to a paste service

This is a convenient way of sharing text data with others. It currently posts to "exbin.call-cc.be". Keep in mind that the text is posted in the clear and the server may retain it indefinitely.

On success, this function returns a URL to the posted text.

Specs

qr_encode(String.t()) :: :"do not show this result in output"

Generate an ASCII art QR code

See https://github.com/chubin/qrenco.de for more information.

Specs

weather() :: :"do not show this result in output"

Display the local weather

See http://wttr.in/:help for more information.