class ItemsAPI
Gives access to all the things you can do with the items API of Echo.
Constructor
Constructor | Parameters | Returns |
---|---|---|
ItemsAPI(
parameters
)
|
Parameters:
|
Methods
Methods | Returns | Description |
---|---|---|
count(
query, callback
)
|
void
|
↑
Count how many answers match the query
Parameters:
|
flag(
target, flag, user, callback
)
|
void
|
↑
"flag" an item
Parameters:
|
flagArticle(
target, flag, user, callback
)
|
void
|
↑
Allow a user to "flag" an article
Parameters:
|
flagComment(
target, flag, user, callback
)
|
void
|
↑
Allow a user to "flag" an comment
Parameters:
|
flagNote(
target, flag, user, callback
)
|
void
|
↑
Allow a user to "flag" an note
Parameters:
|
flagStatus(
target, flag, user, callback
)
|
void
|
↑
Allow a user to "flag" an status
Parameters:
|
like(
target, like, user, callback
)
|
void
|
↑
Allow a user to "like" an item
Parameters:
|
likeArticle(
target, like, user, callback
)
|
void
|
↑
Allow a user to "like" an article
Parameters:
|
likeComment(
target, like, user, callback
)
|
void
|
↑
Allow a user to "like" an comment
Parameters:
|
likeNote(
target, like, user, callback
)
|
void
|
↑
Allow a user to "like" an note
Parameters:
|
likeStatus(
target, like, user, callback
)
|
void
|
↑
Allow a user to "like" an status
Parameters:
|
mux(
query, callback
)
|
void
|
↑
Perform multiple, parallel query
Parameters:
|
search(
query, callback
)
|
void
|
↑
Search for query
Parameters:
|
submitArticle(
article, user, callback
)
|
void
|
↑
Submit an article (typically : a blog entry)
Parameters:
|
submitComment(
comment, user, callback
)
|
void
|
↑
Submit a comment
Parameters:
|
submitNote(
note, user, callback
)
|
void
|
↑
Submit a note
Parameters:
|
submitStatus(
status, user, callback
)
|
void
|
↑
Submit a status
Parameters:
|
tag(
target, tag, user, callback
)
|
void
|
↑
Tag an item
Parameters:
|
tagArticle(
target, tag, user, callback
)
|
void
|
↑
Tag an article
Parameters:
|
tagComment(
target, tag, user, callback
)
|
void
|
↑
Tag an comment
Parameters:
|
tagNote(
target, tag, user, callback
)
|
void
|
↑
Tag an note
Parameters:
|
tagStatus(
target, tag, user, callback
)
|
void
|
↑
Tag an status
Parameters:
|
unflag(
target, flag, user, callback
)
|
void
|
↑
"unflag" an item
Parameters:
|
unflagArticle(
target, flag, user, callback
)
|
void
|
↑
"unflag" an article
Parameters:
|
unflagComment(
target, flag, user, callback
)
|
void
|
↑
"unflag" an comment
Parameters:
|
unflagNote(
target, flag, user, callback
)
|
void
|
↑
"unflag" an note
Parameters:
|
unflagStatus(
target, flag, user, callback
)
|
void
|
↑
"unflag" an status
Parameters:
|
unlikeArticle(
target, like, user, callback
)
|
void
|
↑
Allow a user to "like" an article
Parameters:
|
unlikeComment(
target, like, user, callback
)
|
void
|
↑
Allow a user to "like" an comment
Parameters:
|
unlikeNote(
target, like, user, callback
)
|
void
|
↑
Allow a user to "like" an note
Parameters:
|
unlikeStatus(
target, like, user, callback
)
|
void
|
↑
Allow a user to "like" an status
Parameters:
|
untag(
target, tag, user, callback
)
|
void
|
↑
unTag an item
Parameters:
|
untagArticle(
target, tag, user, callback
)
|
void
|
↑
remove a tag on an article
Parameters:
|
untagComment(
target, tag, user, callback
)
|
void
|
↑
remove a tag on an comment
Parameters:
|
untagNote(
target, tag, user, callback
)
|
void
|
↑
remove a tag on an note
Parameters:
|
untagStatus(
target, tag, user, callback
)
|
void
|
↑
remove a tag on an status
Parameters:
|