Skip to content

API Comment

Compatibility

  • EE2

Installation

  1. Copy the files to the system/expressionengine/third_party dir
  2. Enable the API from within the Webservice Module

Methods

create_comment

Short nameDescription
commentThe CommentRequired
member_idThe Member IDRequired
nameThe NameRequired (if no member_id is given)
emailThe email addressRequired (if no member_id is given)
locationThe member LocationOptional
urlA valid UrlOptional

Request

Array
(
  [comment] => a nice comment
  [member_id] => 1
)

read_comment

Short nameDescription
comment_idThe comment IDRequired

Request

Array
(
  [comment_id] => 43
)

create_comment

Short nameDescription
comment_idThe Comment IDRequired
commentThe CommentOptional
nameThe NameOptional
emailThe email addressOptional
locationThe member LocationOptional
urlA valid UrlOptional

Request

Array
(
  [comment_id] => 43
  [comment] => an update for the comment
)

Currently not available: Assign comment to another entry ID

delete_comment

Short nameDescription
comment_idThe comment IDRequired

Request

Array
(
  [comment_id] => 43
)