Guest User

Untitled

a guest
Mar 19th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. /command laugh
  2. /command repeat
  3. /command read
  4.  
  5. [
  6. {
  7. "title": "Project 1",
  8. "description": "Projects for x",
  9. "members": [
  10. {
  11. "minutes_last_week": 0,
  12. "latest_activity": "1514",
  13. "id": 7,
  14. "minutes_today": 0,
  15. "minutes_total": 300,
  16. "last_name": "OLAJS",
  17. "first_name": "XXXX"
  18. },
  19. {
  20. "minutes_last_week": 0,
  21. "latest_activity": "1516645564",
  22. "id": 23,
  23. "minutes_today": 0,
  24. "minutes_total": 1620,
  25. "last_name": "XJKD",
  26. "first_name": "SKDJND"
  27. },
  28. ]
  29.  
  30. class NewCommand(CommandMixin, slack.Command):
  31.  
  32. def execute(self, request):
  33. response = requests.get('http://project.herokuapp.com/api/v1/activities/?format=json', auth=('xxxx','xxxx'))
  34. apiresponse = response.json()
  35. self.send_response('newcommand')
Add Comment
Please, Sign In to add comment