A Slack Bot that pulls Pixiv information and posts the full image(s) into Slack, with iOS shortcuts.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
2.6 KiB

  1. ---
  2. http_interactions:
  3. - request:
  4. method: post
  5. uri: https://slack.com/api/users.info
  6. body:
  7. encoding: UTF-8
  8. string: token=token&user=user
  9. headers:
  10. Accept:
  11. - application/json; charset=utf-8
  12. User-Agent:
  13. - Slack Ruby Gem 1.1.1
  14. Content-Type:
  15. - application/x-www-form-urlencoded
  16. Accept-Encoding:
  17. - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
  18. response:
  19. status:
  20. code: 200
  21. message: OK
  22. headers:
  23. Access-Control-Allow-Origin:
  24. - '*'
  25. Cache-Control:
  26. - private, no-cache, no-store, must-revalidate
  27. Content-Type:
  28. - application/json; charset=utf-8
  29. Date:
  30. - Wed, 29 Apr 2015 16:10:34 GMT
  31. Expires:
  32. - Mon, 26 Jul 1997 05:00:00 GMT
  33. Pragma:
  34. - no-cache
  35. Server:
  36. - Apache
  37. Strict-Transport-Security:
  38. - max-age=31536000; includeSubDomains; preload
  39. Vary:
  40. - Accept-Encoding
  41. X-Accepted-Oauth-Scopes:
  42. - read
  43. X-Content-Type-Options:
  44. - nosniff
  45. X-Oauth-Scopes:
  46. - identify,read,post,client
  47. X-Xss-Protection:
  48. - '0'
  49. Content-Length:
  50. - '448'
  51. Connection:
  52. - keep-alive
  53. body:
  54. encoding: UTF-8
  55. string: '{"ok":true,"user":{"id":"U007","name":"username","deleted":false,"status":null,"color":"9f69e7","real_name":"","tz":"America\/Indiana\/Indianapolis","tz_label":"Eastern
  56. Daylight Time","tz_offset":-14400,"profile":{"real_name":"","real_name_normalized":"","email":"dblock@dblock.org","image_24":"https:\/\/secure.gravatar.com\/avatar\/3d925b45ac07ec0ae5bd04888f6c5b61.jpg?s=24&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F3654%2Fimg%2Favatars%2Fava_0015-24.png","image_32":"https:\/\/secure.gravatar.com\/avatar\/3d925b45ac07ec0ae5bd04888f6c5b61.jpg?s=32&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F3654%2Fimg%2Favatars%2Fava_0015-32.png","image_48":"https:\/\/secure.gravatar.com\/avatar\/3d925b45ac07ec0ae5bd04888f6c5b61.jpg?s=48&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F3654%2Fimg%2Favatars%2Fava_0015-48.png","image_72":"https:\/\/secure.gravatar.com\/avatar\/3d925b45ac07ec0ae5bd04888f6c5b61.jpg?s=72&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F3654%2Fimg%2Favatars%2Fava_0015-72.png","image_192":"https:\/\/secure.gravatar.com\/avatar\/3d925b45ac07ec0ae5bd04888f6c5b61.jpg?s=192&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F272a%2Fimg%2Favatars%2Fava_0015.png"},"is_admin":true,"is_owner":true,"is_primary_owner":true,"is_restricted":false,"is_ultra_restricted":false,"is_bot":false,"has_files":false}}'
  57. http_version:
  58. recorded_at: Wed, 29 Apr 2015 16:10:34 GMT