Api doc


SDK's


Api Modules

messaging.wall



Supported Methods:

GET
Params
  • token (Required): valid token


CREATE
Params
  • token (Required): valid token
  • post (Required): varchar
  • id: integer
  • title: varchar
  • sticky: enum (0)


DELETE
Params
  • token (Required): valid token
  • id (Required): integer
  • delete (Required): enum (message, comment)


Documentation

GET
Get wall message and comments.
Level 5 is required (all users can fetch this module)

--

Parameters:

  1. "token": "xxxxxxx" //Valid token is required

Example Request:

  1. {
  2. "module":"messaging.wall",
  3. "method":"GET",
  4. "request":{
  5.  
  6. }
  7. }

Explame Response:

  1. {
  2. "status":1,
  3. "data":[
  4. {
  5. "id":"171",
  6. "user":{
  7. "id":"12",
  8. "name":"Alan Ford"
  9. },
  10. "date":"1337627278",
  11. "sticky":"0",
  12. "title":"Testing",
  13. "post":"Hello",
  14. "title_formatted":"Testing",
  15. "post_formatted":"Hello"
  16. },
  17. {
  18. "id":"168",
  19. "user":{
  20. "id":"5147",
  21. "name":"Bob Rock"
  22. },
  23. "date":"1337342896",
  24. "sticky":"0",
  25. "title":"Hi",
  26. "post":"Vihiiiiiiiiii :*",
  27. "title_formatted":"Hi",
  28. "post_formatted":"Vihiiiiiiiiii :*"
  29. },
  30. {
  31. "id":"167",
  32. "user":{
  33. "id":"4910",
  34. "name":"No 1"
  35. },
  36. "date":"1337341670",
  37. "sticky":"0",
  38. "title":"No avatar",
  39. "post":"test",
  40. "title_formatted":"No avatar",
  41. "post_formatted":"test",
  42. "comments":[
  43. {
  44. "id":"217",
  45. "user":{
  46. "id":"2",
  47. "name":"Alan Ford"
  48. },
  49. "date":"1337342655",
  50. "comment":"bla",
  51. "comment_formatted":"bla"
  52. },
  53. {
  54. "id":"218",
  55. "user":{
  56. "id":"5147",
  57. "name":"Bob Rock"
  58. },
  59. "date":"1337348928",
  60. "comment":"asdf",
  61. "comment_formatted":"asdf"
  62. }
  63. ]
  64. }
  65. ],
  66. "token":"xxxxxxx"
  67. }

---

CREATE
Creates new wall message or comment.
If message id is being specified, comment is added. Else, new message is being created. User can create new wall messages/comments, only if it is enabled in admin settings.
Level 5 is required (all users can fetch this module)

--

Parameters:

  1. "post": required //Post(varchar)
  2. "id": accepted //Message id (integer)
  3. "title": accepted //Message title (varchar)
  4. "sticky" accepted //Is wall message sticky? (enum)
  5. /* 0: Message is not sticky
  6.   * 1: Message is sticky */
  7. "token": "xxxxxxx" //Valid token is required

Example Request:

  1. {
  2. "module":"messaging.wall",
  3. "method":"CREATE",
  4. "request":{
  5. "title":"New Title"
  6. "post":"New message"
  7. }
  8. }

Example Response:

  1. {
  2. "status":1,
  3. "data":"",
  4. "token":"xxxxxxx"
  5. }

---

DELETE
Deletes wall message or comment.
Level 5 is required (all users can fetch this module)

--

Parameters:

  1. "id": required //Message id (integer)
  2. "delete": required //Delete (enum)
  3. /* 0 : Delete message
  4.   1 : Delete comment */
  5. "token": "xxxxxxx" //Valid token is required

Example Request:

  1. {
  2. "module":"messaging.wall",
  3. "method":"DELETE",
  4. "request":{
  5. "id":"934",
  6. "delete":"0"
  7. }
  8. }

Example Response:

  1. {
  2. "status":1,
  3. "data":"",
  4. "token":"xxxxxxx"
  5. }

GET STARTED NOW

Free Trial. No Credit Card Required.

close
(e.g.+14158675309 or +1415-8675-309)

By clicking "Create my ShiftPlanning Account" you agree to the Terms of Service and Privacy Policy.

Have a promotional code?Click Here


LIVE CHAT DEMO REQUEST!

Please provide information below.

close
INSTANT DEMOSCHEDULED DEMO
Connect with a ShiftPlanning Team Member for a live demo right now!
 

RESELLER REQUEST!

Please provide information below.

close