Execute a request against the Ghost Admin API. For successful requests, the HTTPResponse object will contain an object or array or objects decoded from the JSON returned by your Ghost installation as appropriate to the request made. Refer to Ghost Admin API documentation for details about the expected parameters and responses.
Optional
data?: { An object containing data to be encoded into the HTTP body of the request. Drafts will take care of the JSON conversion.
Optional
headers?: { An object contain key-values to be added as custom headers in the request. There is no need to provide authorization headers, Drafts will add those.
The HTTP method, like "GET", "POST", etc.
Optional
parameters?: { An object containing key-values to be added to the request as URL parameters. Drafts will take care of encoding these.
The path to the API endpoint in the OpenAI API. This should include the path after the API version. For example /chat/completion
Static
create
Script integration with the Ghost Admin API to support working with sites hosting using the Ghost open source CMS platform. This object offers convenience over direct HTTP requests by:
Example
Creating a Post