make_api_call: make_api_call

Description Usage Arguments Value Examples

Description

Function to call the Ghost api.

Usage

1
make_api_call(request_type, ghost_url, post_body)

Arguments

request_type

Can take one of four values. POST for creating a post,GET for obtaining information,DELETE for deleting posts.,PUT for updating a existing post.

ghost_url

the endpoint (including url parameters) where to call the ghost api.

post_body

IF a POST or PU request is made a valid post object is required.

Value

Response object. See the construct_response function.

Examples

1
make_api_call("POST",ghost_url,post_body)

good-marketing/RGhost documentation built on May 17, 2019, 7:42 a.m.