Class: Postly::Comment

Inherits:
Connection show all
Defined in:
lib/postly/comment.rb

Class Method Summary collapse

Methods inherited from Connection

array_or_hash, class_name, conform, defaults, #initialize, many, #singularized_class_name

Constructor Details

This class inherits a constructor from Postly::Connection

Class Method Details

.create(params = {}) ⇒ Object

URL postly.com/api/newcomment Fields “post_id” - The post id to comment on “comment” - The comment body “name” - Optional. The name to use “email” - Optional. The email address to use “date” - Optional. In GMT. Any parsable format. Cannot be in the future.



12
13
14
# File 'lib/postly/comment.rb', line 12

def self.create params={}
  conform post "/newcomment", defaults.merge( :query => params )
end