wpcom.ex v0.1.0 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

Link to this section Functions

Link to this function

request(method, path, custom_headers \\ [], body \\ "") View Source
request(: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.