Guest User

Untitled

a guest
Dec 2nd, 2018
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. // Example Ideedock Requests
  2.  
  3. // - /topic/questions
  4. {
  5. id: Utils.generateGUID(),
  6. question: 'What the heck am I doing here?',
  7. user: authenticatedUser,
  8. created: date,
  9. time: date,
  10. end: new Date(new Date().setDate(date.getDate() + 2)),
  11. url: 'dev.ideedock.com',
  12. clientId: clientGUID,
  13. token: authenticatedUser.token
  14. };
  15.  
  16. // - /topic/answers
  17. {
  18. id: Utils.generateGUID(),
  19. questionId: 'b98ea39b-f44e-4f89-b32f-dc450bb84565',
  20. answer: 'I am an awesome answer!',
  21. time: new Date(),
  22. user: authenticatedUser,
  23. url: 'dev.ideedock.com',
  24. clientId: clientGUID,
  25. token: authenticatedUser.token
  26. };
  27.  
  28. // - /topic/login
  29. {
  30. email: 'sophie@example.com',
  31. password: 'password',
  32. url: 'dev.ideedock.com'
  33. };
  34.  
  35. // - /topic/signup
  36. {
  37. name: 'Sophie',
  38. email: 'sophie@example.com',
  39. password: 'password',
  40. url: 'dev.ideedock.com'
  41. };
  42.  
  43. // - /topic/clients (tells the server you are connected)
  44. {
  45. clientId: Utils.generateGUID(),
  46. url: 'dev.ideedock.com'
  47. };
Add Comment
Please, Sign In to add comment