Access Levels
Group: blogs
Resource: blogs
GET https://api.create.net/blogs
GET https://api.create.net/blogs?author=adam
Param | Type | Required | Description |
---|---|---|---|
author | string | Optional | The name of the author. |
datetime_from | datetime | Optional | Posts after a certain date yyyy-mm-dd hh:mm:ss |
datetime_to | datetime | Optional | Posts up to a certain date yyyy-mm-dd hh:mm:ss |
category | array | Optional | Array of category IDs |
Status: 200 OK
{ "blogs":[
{
"ID" : 3408,
"category_id" : [2352],
"title" : "Memorable Walks",
"post" : "This coastal path goes from Sennen to <a title="walk to Lands End and Nanjizal Bay - The Times " href="http://www.timesonline.co.uk/tol/travel/holiday_type/active/article6107981.ece" target="_blank">Lands End and then Nanjizal Bay</a>, or seal cove as we always seem to see seals here. There are some beautiful cliffs, and stunning views out towards the Scily Isles on a clear day. The walk back across the fields has great views of Lands End; a&nbsp;strategically placed cafe is reopening half way back to reward hearty&nbsp;walkers with a cream tea!",
"author" : "Adam",
"datetime" : "2011-04-16 14:28:18",
"title_tag" : "Cliff top walks in West Penwith",
"meta_keywords" : "Cliff top walks Lands End Nanjizal Bay St Just Cap Cornwall Sennen Cove",
"meta_description" : "cliff top walks in West Penwith and around Sennen Cove"
}
]}
GET https://api.create.net/blogs/:id
Status: 200 OK
{ "blog_post" :
{
"ID" : 3528,
"category_id" : [2352, 1248],
"title" : "Great Pubs",
"post" : "The Gurnards Head in Treen is a favorite. Sunday lunch is particularly good but you do need to book. We walked-up Cairn Galver after lunch and the views from Zennor across the peninsular to Penzance are just amazing. We love the fact this stretch of coastline is so wild. ",
"author" : "Adam",
"datetime" : "2011-08-06 10:42:12",
"title_tag" : "Great Pubs in West Penwith",
"meta_keywords" : "Great Pubs Cornwall Sennen Cove",
"meta_description" : "Great Pubs in West Penwith and around Sennen Cove"
}
}
POST https://api.create.net/blogs
Param | Type | Required | Description |
---|---|---|---|
category_id | array | Optional | Array of category IDs |
title | string | Required | Title of the blog post |
post | string | Required | Content of the blog post Plain text and HTML accepted |
author | string | Optional | The name of the author. |
title_tag | string | Optional | Title meta tag of the blog post. Used for SEO |
meta_keywords | string | Optional | Keywords meta of the blog post. Used for SEO |
meta_description | string | Optional | Description meta tag of the blog post. Used for SEO |
Status: 201 Created
{
"ID": 101775,
"_links": {
"self": "/blogs/101775"
}
}
PUT https://api.create.net/blogs/:id
Param | Type | Required | Description |
---|---|---|---|
category_id | array | Optional | Array of category IDs |
title | string | Optional | Title of the blog post |
post | string | Optional | Content of the blog post Plain text and HTML accepted |
author | string | Optional | The name of the author. |
title_tag | string | Optional | Title meta tag of the blog post. Used for SEO |
meta_keywords | string | Optional | Keywords meta of the blog post. Used for SEO |
meta_description | string | Optional | Description meta tag of the blog post. Used for SEO |
Status: 200 OK
DELETE https://api.create.net/blogs/:id
Status: 200 OK