wpcom.ex v0.1.1 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 Sourcedel(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 Sourceget(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 Sourcepost(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 Sourceput(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