Skip to content

italotech/hoodie-plugin-chat

Repository files navigation

hoodie-plugin-chat

Build Status Dependencies devDependency Status Code Climate

Dependencies

  hoodie install hoodie-plugin-chat

for cordova/phonegap users

  bower install hoodie-plugin-chat

Setup client

 <script src="/_api/_files/hoodie.js"></script>

for cordova/phonegap users

  <script src="<bowerdir>/hoodie/dist/hoodie.js"></script>
  <script src="<bowerdir>/hoodie-plugin-chat/hoodie.chat.js"></script>

API (Dream Code)

  • hoodie.chat.follow(login)
  • hoodie.chat.unfollow(login)
  • hoodie.chat.post({text: 'text'}, /opitional/ {type: [mediaplugin.enum]})
  • hoodie.chat.getPost({id: 'postId')
  • hoodie.chat.updatePost({id: 'postId',text: 'text'}, /opitional/ {type: [mediaplugin.enum]})
  • hoodie.chat.deletePost({id: 'postId'}, /opitional/ {type: [mediaplugin.enum]})
  • hoodie.chat.comment(postId, {text:'text'})
  • hoodie.chat.updateComment({ id: 'postId'}, {id: 'commentId'})
  • hoodie.chat.deleteComment({ id: 'postId'}, {id: 'commentId'})
  • hoodie.chat.count(postId, [type.enum])
  • hoodie.chat.uncount(postId, [type.enum])
  • hoodie.chat.like(postId)
  • hoodie.chat.unlike(postId)
  • hoodie.chat.feed(postId)
  • hoodie.chat.share(postId)
  • hoodie.chat.abuse(postId)
  • hoodie.chat.following(/opitional/ login)
  • hoodie.chat.followers(/opitional/ login)
  • hoodie.chat.getProfile(/opitional/ login)
  • hoodie.chat.updateProfile(/opitional/ login, profileObject)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages