Idea Opinion

An opinion is a vote for an Idea. Each opinion is accessed via /api/ideaopinion and has the following properties. Complete details in IdeaOpinionProperties.

id

The unique id for this opinion. It will never change.

object_type

ideaopinion.

date_created

A date when the opinion was created.

date_updated

A date when the opinion was last updated.

user_id

A User id. The unique id of a User that this opinion was submitted by.

opinion

Must be one of yes or skip.

currency

An integer indicating the number of crafter points attached to this opinion.

idea_id

An Idea id. The idea that this opinion is about.

Related Objects

user

The User that this opinion is owned by.

idea

This Idea this opinion is about.

Opinion Methods

The methods used to fetch and manipulate opinions.

Create Opinion

 POST /api/ideaopinion
session_id

Required. The unique session id provided by a Session method.

user_id

Required.

opinion

Returns:

 {
   "id" : "xxx",
   "opinion" : "yes",
   ...
 }

Update Opinion

 PUT /api/ideaopinion/xxx

See Create Opinion for details.

Delete Opinion

 DELETE /api/ideaopinion/xxx
session_id

Required. The unique session id provided by a Session method.

Returns:

 {
   "success" : 1
 }

Fetch Opinion

 GET /api/ideaopinion/xxx
session_id

Optional. The unique session id provided by a Session method.

_include_relationships

Optional. See "Relationships" in Intro and Opinion Relationships above for details.

Returns:

 {
   "id" : "xxx",
   "opinion" : "yes",
   ...
 }
^ Back to Top ^