cushion v0.0.3 Cushion

Cushion has function for creating updates using the Buffer API

Summary

Functions

Posts an update to Buffer using the Cushion.Update struct

Functions

post_update(update)

Specs

post_update(%Cushion.Update{attachment: term, profiles: term, shorten: term, text: term}) :: %HTTPotion.Response{body: term, headers: term, status_code: term}

Posts an update to Buffer using the Cushion.Update struct.

Returns the response struct from the api call.

Examples

iex> Cushion.post_update(%Cushion.Update{text: "Some text", profiles: ["1234"]})
%HTTPotion.Response{...}