wpcom.ex v0.1.0 Wpcom.Call View Source
Synchronous HTTP request functions for the WordPress.com REST API
Link to this section Summary
Functions
Aliased to post/3. Performs a synchronous DELETE request to the WP.com API
Performs a synchronous GET request to the WP.com API
Performs a synchronous POST request to the WP.com API
Aliased to post/3. Performs a synchronous POST request to the WP.com API
Link to this section Functions
Link to this function
del(path, headers)
View Source
del(path, headers)
View Source
del(String.t(), [{String.t(), String.t()}]) ::
{:error, HTTPoison.Error.t()} | {:ok, HTTPoison.Response.t()}
del(String.t(), [{String.t(), String.t()}]) :: {:error, HTTPoison.Error.t()} | {:ok, HTTPoison.Response.t()}
Aliased to post/3. Performs a synchronous DELETE request to the WP.com API
Link to this function
get(path, headers \\ [])
View Source
get(path, headers \\ [])
View Source
get(String.t(), [{String.t(), String.t()}]) ::
{:error, HTTPoison.Error.t()} | {:ok, HTTPoison.Response.t()}
get(String.t(), [{String.t(), String.t()}]) :: {:error, HTTPoison.Error.t()} | {:ok, HTTPoison.Response.t()}
Performs a synchronous GET request to the WP.com API
Link to this function
post(path, body, headers \\ [])
View Source
post(path, body, headers \\ [])
View Source
post(String.t(), %{} | String.t(), [{String.t(), String.t()}]) ::
{:error, HTTPoison.Error.t()} | {:ok, HTTPoison.Response.t()}
post(String.t(), %{} | String.t(), [{String.t(), String.t()}]) :: {:error, HTTPoison.Error.t()} | {:ok, HTTPoison.Response.t()}
Performs a synchronous POST request to the WP.com API
Link to this function
put(path, body, headers \\ [])
View Source
put(path, body, headers \\ [])
View Source
put(String.t(), %{} | String.t(), [{String.t(), String.t()}]) ::
{:error, HTTPoison.Error.t()} | {:ok, HTTPoison.Response.t()}
put(String.t(), %{} | String.t(), [{String.t(), String.t()}]) :: {:error, HTTPoison.Error.t()} | {:ok, HTTPoison.Response.t()}
Aliased to post/3. Performs a synchronous POST request to the WP.com API