wpcom.ex v0.1.1 Wpcom.Req View Source
Low-level request functionality for WP.com REST API.
Accepts GET or POST types. Optional headers. JSON body.
Link to this section Summary
Functions
Make a request to WP.com REST API.
Link to this section Functions
Link to this function
request(method, path, custom_headers \\ [], body \\ "")
View Sourcerequest(:get | :post, String.t(), [{String.t(), String.t()}], %{}) :: {:error, HTTPoison.Error.t()} | {:ok, HTTPoison.Response.t()}
request(:get | :post, String.t(), [{String.t(), String.t()}], String.t()) :: {:error, HTTPoison.Error.t()} | {:ok, HTTPoison.Response.t()}
Make a request to WP.com REST API.