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.

103 lines
2.5 KiB

  1. ---
  2. http_interactions:
  3. - request:
  4. method: post
  5. uri: https://slack.com/api/auth.test
  6. body:
  7. encoding: UTF-8
  8. string: token=token
  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. - Tue, 28 Apr 2015 12:55:23 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. - identify
  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. - '128'
  51. Connection:
  52. - keep-alive
  53. body:
  54. encoding: UTF-8
  55. string: '{"ok":true,"url":"https:\/\/math.slack.com\/","team":"calcteam","user":"calcuser","team_id":"TDEADBEEF","user_id":"UBAADFOOD"}'
  56. http_version:
  57. recorded_at: Tue, 28 Apr 2015 12:55:22 GMT
  58. - request:
  59. method: post
  60. uri: https://slack.com/api/rtm.start
  61. body:
  62. encoding: UTF-8
  63. string: token=token
  64. headers:
  65. Accept:
  66. - application/json; charset=utf-8
  67. User-Agent:
  68. - Slack Ruby Gem 1.1.1
  69. Content-Type:
  70. - application/x-www-form-urlencoded
  71. Accept-Encoding:
  72. - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
  73. response:
  74. status:
  75. code: 200
  76. message: OK
  77. headers:
  78. Access-Control-Allow-Origin:
  79. - '*'
  80. Content-Type:
  81. - application/json; charset=utf-8
  82. Date:
  83. - Tue, 28 Apr 2015 21:41:33 GMT
  84. Server:
  85. - Apache
  86. Strict-Transport-Security:
  87. - max-age=31536000; includeSubDomains; preload
  88. Vary:
  89. - Accept-Encoding
  90. X-Content-Type-Options:
  91. - nosniff
  92. X-Xss-Protection:
  93. - '0'
  94. Content-Length:
  95. - '55'
  96. Connection:
  97. - keep-alive
  98. body:
  99. encoding: UTF-8
  100. string: '{"ok":false,"error":"invalid_auth"}'
  101. http_version:
  102. recorded_at: Tue, 28 Apr 2015 21:41:33 GMT
  103. recorded_with: VCR 2.9.3