static osapi.jive.corev3.posts

Static class for getting and creating Posts. A Post is an entry in a blog, either a personal blog or a blog in a place.

Methods

create(post,options)
POST /contents

Retrieves

Post

Description

Create a new blog post with specified characteristics, and return an entity representing the newly created blog post.

Here is an example of a JSON with the minimum set of fields you must include for creating a post in a personal blog:

 {
  "content":
      {
      "type": "text/html",
      "text": "<body><p>Some interesting text</p></body>"
      },
  "subject": "New Post in Personal Blog"
  }

Takes:
  • Post fields describing the new blog post
Options:
NameTypeRequiredDescription
fieldsStringfalseNames of the fields to be returned
Retrieves:
  • Post describing the newly created blog post
  • get(options)
    GET /contents

    Retrieves

    Content[]

    Description

    Return a paginated list of blog posts that match the specified criteria.

    Options:
    NameTypeRequiredDescription
    authorStringfalseURI of a person, limiting results to objects authored by this person
    countIntegerfalseMaximum number of objects to return (default is 25)
    fieldsStringfalseNames of the fields to be returned
    placeStringfalseURI of a place, limiting results to objects contained in that place
    searchStringfalseOne or more search terms separated by commas, limiting results to objects that match the terms Wildcards can be used, e.g. to search by substring use "*someSubstring*".
    startIndexIntegerfalseZero-relative index of the first content object to be returned
    tagStringfalseComma delimited list of tag values, limiting results to objects with one of those tags
    Retrieves:
  • Post[] Paginated list of matching blog posts
  • get(options)
    GET /contents/{uri}

    Retrieves

    Content

    Description

    Return a single blog post by its URI.

    Options:
    NameTypeRequiredDescription
    uriStringtrueURI of the blog post to get
    fieldsStringfalseNames of the fields to be returned
    Retrieves:
  • Post Representation of the requested blog post
  • getEditable(options)
    GET /contents/{uri}/editable

    Retrieves

    Content

    Description