wpcom.ex v0.3.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 Sourcedel(String.t(), Wpcom.Req.http_headers()) :: Wpcom.Req.http_response()
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(), Wpcom.Req.http_headers()) :: Wpcom.Req.http_response()
Performs a synchronous GET request to the WP.com API
Link to this function
post(path, body, headers \\ [])
View Sourcepost(String.t(), String.t() | map(), Wpcom.Req.http_headers()) :: Wpcom.Req.http_response()
Performs a synchronous POST request to the WP.com API
Link to this function
put(path, body, headers \\ [])
View Sourceput(String.t(), String.t() | map(), Wpcom.Req.http_headers()) :: Wpcom.Req.http_response()
Aliased to post/3. Performs a synchronous POST request to the WP.com API