Create. API

Blog Comments

Access Levels
Group: blogs
Resource: blog_comments

List all blog comments

GET 	https://api.create.net/blog_comments

Input

GET 	https://api.create.net/blog_comments?post_id=2554
Param Type Required Description
post_id INT Optional Get all blog comments from a single blog post
datetime_from datetime Optional Comments after a certain date
yyyy-mm-dd hh:mm:ss
datetime_to datetime Optional Comments up to a certain date
yyyy-mm-dd hh:mm:ss
approved INT Optional Get comments by approved status
TRUE = Approved, FALSE = Awaiting Approval

Response

Status: 200 OK
{ "blog_comments":[
	{
		"ID" : 464533,
		"post_id" : 3524,
		"name" : "Adam Strawson",
		"email" : "adam@create.net",
		"website" : "http://create.net",
		"message" : "A great article, thanks for helping me solve my problem.",
		"datetime" : "2012-05-16 15:17:04",
		"approved" : TRUE
	}
]}

Get a single blog comment

GET 	https://api.create.net/blog_comments/:id

Response

Status: 200 OK
{ "blog_comment" :
	{
		"ID" : 464533,
		"post_id" : 3524,
		"name" : "Adam Strawson",
		"email" : "adam@create.net",
		"website" : "http://create.net",
		"message" : "A great article, thanks for helping me solve my problem.",
		"datetime" : "2012-05-16 15:17:04",
		"approved" : TRUE
	}
}

Delete a blog comment

DELETE 	https://api.create.net/blog_comments/:id

Response

Status: 200 OK