construct_post: Creates a post object to be passed on when a post is created...

Description Usage Arguments Value Examples

Description

Please review the api unofficial documentation from ghost to obtain official information.Please review the official documentation

Usage

1
construct_post(post_body)

Arguments

post_body

is a vector with named objects. The title and markdown object are required. The other object are optional. #'

  • title [required]: The post title (string).

  • markdown [required] : the markdown content to be converted by Ghost to html. This contains all the content of your post (string)

  • slug: The url where you post can be accessed. Ghost automagically create a slug based on the input. Spaces and other non alpanumeric characters will be escaped by Ghost. Any string is valid, if nothing is provided Ghost will create a slug for you. (string)

  • status: Can either take draft or published. Default is draft. (string)

  • featured: If a post is featured or not.Default is false (boolean).

  • image: url to an image. Depending on the ghost template the image will be used as a cover (string)

  • page: Indicated is the post serves as a static page. Default is false (boolean)

  • author: The author id of the author of the post.(integer

  • tags: list of tags objects (see ghost documentation for a description of the tag object. )

Value

Response object. See the construct_response function.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
post_body <- c(
markdown = 'Content',
slug     = "Slug",
status   = "Publish",
image    = 'Image',
featured = Featured,
page     = "0",
author   = Author,
tags     = list(TagsList)
)
post_body <- construct_post(post_body)

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