exNoops v0.1.2 Exnoops.Polybot View Source

Module to interact with Github's Noop: Polybot

See the official `noop` documentation for API information including the accepted parameters.

Link to this section Summary

Link to this section Functions

Link to this function

format_polygons(polygons) View Source

Link to this function

get_polygon(opts \\ []) View Source
get_polygon(keyword()) :: {atom(), [list()]}

Query Polybot for polygon(s)

  • Parameters are sent with a keyword list into the function.

Examples

iex> Exnoops.Polybot.get_polygon()
# List of {x, y} points
{:ok, [[{157, 998}, {145, 1000}, {122, 1000}, {106, 989}, {151, 972}]]}