Sapphire server-less blog is an extension to the Orkiv CMS platform. Serverless blogging enables you to integrate a blogging system within seconds, whilst giving clients a full WYISWYG interface to create and sort content as they please.
Learn more about sapphire here.
- Orkiv Sapphire account.Login
Serverless blogging allows easy access to your content within Sapphire. You can now build your basic website and simply connect to this API to open a blog within your website.
There are two ways of authenticating with the Serverless blogging API.
- account : Sapphire account id (found in your Sapphire account, within settings tab) or your login email.
- account : Sapphire account id (found in your Sapphire account, within settings tab) or your login email.
Serverless blog is interfaced through a REST API. Below, the endpoints are listed, as well as accessing the API :
GET /groups/
Retrieve groups from your sapphire account.
curl --get --include 'https://orkiv.com/sapphire/blog_json.php/groups/' \
-H 'account: <account_id>' \
-H 'Accept: application/json'
- { result : Array [Group ] }
GET /blogs/
Retrieve blog content from your sapphire account.
- string search : String to match with blog titles
- string group : Blog group ID of cursor, use
trending
to get trending topics. Separate multiple group id by commma. - int page : Page number of cursor.
curl --get --include 'https://orkiv.com/sapphire/blog_json.php/blogs/' \
-H 'account: <account_id>' \
-H 'Accept: application/json'
- {pages: int 0, result : Array [Blog ] }
GET /BLOG/{ id }
Get the specified blog from your sapphire account.
- id : String, ID of blog to open.
curl --get --include 'https://orkiv.com/sapphire/blog_json.php/blog/{id}/' \
-H 'account: <account_id>' \
-H 'Accept: application/json'
- { result : Blog }
GET /MEDIA/{ ID }
Get the binary of the specified media from your account.
A blog post written within sapphire CMS.
- author : Object Author , Author of this blog.
- category : Array [String] , Group IDs of this blog.
- content : String, HTML content of blog.
- desc : String, Description of blog.
- headerimage : String, URI to blog cover image.
- id : String, ID of blog.
- name : String, Title of blog.
- tags : Array [String], Keyword tags of this blog
- publ : Bool, published status of blog
A content producer of a Sapphire account.
- name : String, name of author.
- image : String , URI to image of author.
- gname : String, URI to Google+ profile.
- tname : String, URI to Twitter profile.
- fname : String, URI to Facebook profile.
- lname : String, URL to LinkedIn profile.
A blog group.
- name : String, name of group.
- id : String, id of group.