refactor pixiv download tests refactor upload test refactor nico seiga test refactor twitter tests
351 lines
16 KiB
YAML
351 lines
16 KiB
YAML
---
|
|
http_interactions:
|
|
- request:
|
|
method: post
|
|
uri: https://SENSITIVE:SENSITIVE@api.twitter.com/oauth2/token
|
|
body:
|
|
encoding: UTF-8
|
|
string: grant_type=client_credentials
|
|
headers:
|
|
Accept:
|
|
- "*/*"
|
|
User-Agent:
|
|
- TwitterRubyGem/5.14.0
|
|
Content-Type:
|
|
- application/x-www-form-urlencoded; charset=UTF-8
|
|
Accept-Encoding:
|
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
response:
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
headers:
|
|
Cache-Control:
|
|
- no-cache, no-store, must-revalidate, pre-check=0, post-check=0
|
|
Content-Disposition:
|
|
- attachment; filename=json.json
|
|
Content-Length:
|
|
- '151'
|
|
Content-Type:
|
|
- application/json;charset=utf-8
|
|
Date:
|
|
- Wed, 28 Sep 2016 17:29:43 GMT
|
|
Expires:
|
|
- Tue, 31 Mar 1981 05:00:00 GMT
|
|
Last-Modified:
|
|
- Wed, 28 Sep 2016 17:29:43 GMT
|
|
Ml:
|
|
- S
|
|
Pragma:
|
|
- no-cache
|
|
Server:
|
|
- tsa_a
|
|
Set-Cookie:
|
|
- guest_id=v1%3A147508378333990281; Domain=.twitter.com; Path=/; Expires=Fri,
|
|
28-Sep-2018 17:29:43 UTC
|
|
Status:
|
|
- 200 OK
|
|
Strict-Transport-Security:
|
|
- max-age=631138519
|
|
X-Connection-Hash:
|
|
- 455518c5f0dbed9c6cb45613e8d48378
|
|
X-Content-Type-Options:
|
|
- nosniff
|
|
X-Frame-Options:
|
|
- DENY
|
|
X-Response-Time:
|
|
- '14'
|
|
X-Transaction:
|
|
- 00774e3800c7aa28
|
|
X-Tsa-Request-Body-Time:
|
|
- '1'
|
|
X-Twitter-Response-Tags:
|
|
- BouncerCompliant
|
|
X-Ua-Compatible:
|
|
- IE=edge,chrome=1
|
|
X-Xss-Protection:
|
|
- 1; mode=block
|
|
body:
|
|
encoding: UTF-8
|
|
string: '{"token_type":"bearer","access_token":"AAAAAAAAAAAAAAAAAAAAAPV7eAAAAAAAN7q56yJ8wNHhsagDn06qiJ0Io00%3DfdvXQaVKHFS3q1hd3y8fVQdIbntIHN2iTsBTk0f6jQK7lxcDo5"}'
|
|
http_version:
|
|
recorded_at: Wed, 28 Sep 2016 17:29:43 GMT
|
|
- request:
|
|
method: get
|
|
uri: https://api.twitter.com/1.1/statuses/show/566030116182949888.json
|
|
body:
|
|
encoding: US-ASCII
|
|
string: ''
|
|
headers:
|
|
Accept:
|
|
- application/json
|
|
User-Agent:
|
|
- TwitterRubyGem/5.14.0
|
|
Authorization:
|
|
- Bearer AAAAAAAAAAAAAAAAAAAAAPV7eAAAAAAAN7q56yJ8wNHhsagDn06qiJ0Io00%3DfdvXQaVKHFS3q1hd3y8fVQdIbntIHN2iTsBTk0f6jQK7lxcDo5
|
|
Accept-Encoding:
|
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
response:
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
headers:
|
|
Cache-Control:
|
|
- no-cache, no-store, must-revalidate, pre-check=0, post-check=0
|
|
Content-Disposition:
|
|
- attachment; filename=json.json
|
|
Content-Length:
|
|
- '1304'
|
|
Content-Type:
|
|
- application/json;charset=utf-8
|
|
Date:
|
|
- Wed, 28 Sep 2016 17:29:43 GMT
|
|
Expires:
|
|
- Tue, 31 Mar 1981 05:00:00 GMT
|
|
Last-Modified:
|
|
- Wed, 28 Sep 2016 17:29:43 GMT
|
|
Pragma:
|
|
- no-cache
|
|
Server:
|
|
- tsa_a
|
|
Set-Cookie:
|
|
- guest_id=v1%3A147508378341530599; Domain=.twitter.com; Path=/; Expires=Fri,
|
|
28-Sep-2018 17:29:43 UTC
|
|
Status:
|
|
- 200 OK
|
|
Strict-Transport-Security:
|
|
- max-age=631138519
|
|
X-Access-Level:
|
|
- read
|
|
X-Connection-Hash:
|
|
- 0e9630c560c82dba579459cf6879bc22
|
|
X-Content-Type-Options:
|
|
- nosniff
|
|
X-Frame-Options:
|
|
- SAMEORIGIN
|
|
X-Rate-Limit-Limit:
|
|
- '180'
|
|
X-Rate-Limit-Remaining:
|
|
- '176'
|
|
X-Rate-Limit-Reset:
|
|
- '1475084682'
|
|
X-Response-Time:
|
|
- '22'
|
|
X-Transaction:
|
|
- 00d4acba007125dc
|
|
X-Twitter-Response-Tags:
|
|
- BouncerCompliant
|
|
X-Xss-Protection:
|
|
- 1; mode=block
|
|
body:
|
|
encoding: UTF-8
|
|
string: '{"created_at":"Fri Feb 13 00:24:30 +0000 2015","id":566030116182949888,"id_str":"566030116182949888","text":"What
|
|
do you give the Caramel Frappuccino that already has everything? The gift
|
|
of mocha drizzle. http:\/\/t.co\/2MWtXbYhf0","truncated":false,"entities":{"hashtags":[],"symbols":[],"user_mentions":[],"urls":[],"media":[{"id":566030112210972672,"id_str":"566030112210972672","indices":[97,119],"media_url":"http:\/\/pbs.twimg.com\/media\/B9rxY1qCcAAbeo0.jpg","media_url_https":"https:\/\/pbs.twimg.com\/media\/B9rxY1qCcAAbeo0.jpg","url":"http:\/\/t.co\/2MWtXbYhf0","display_url":"pic.twitter.com\/2MWtXbYhf0","expanded_url":"http:\/\/twitter.com\/frappuccino\/status\/566030116182949888\/photo\/1","type":"photo","sizes":{"medium":{"w":600,"h":338,"resize":"fit"},"thumb":{"w":150,"h":150,"resize":"crop"},"large":{"w":1024,"h":576,"resize":"fit"},"small":{"w":340,"h":191,"resize":"fit"}}}]},"extended_entities":{"media":[{"id":566030112210972672,"id_str":"566030112210972672","indices":[97,119],"media_url":"http:\/\/pbs.twimg.com\/media\/B9rxY1qCcAAbeo0.jpg","media_url_https":"https:\/\/pbs.twimg.com\/media\/B9rxY1qCcAAbeo0.jpg","url":"http:\/\/t.co\/2MWtXbYhf0","display_url":"pic.twitter.com\/2MWtXbYhf0","expanded_url":"http:\/\/twitter.com\/frappuccino\/status\/566030116182949888\/photo\/1","type":"photo","sizes":{"medium":{"w":600,"h":338,"resize":"fit"},"thumb":{"w":150,"h":150,"resize":"crop"},"large":{"w":1024,"h":576,"resize":"fit"},"small":{"w":340,"h":191,"resize":"fit"}}}]},"source":"\u003ca
|
|
href=\"http:\/\/twitter.com\/download\/iphone\" rel=\"nofollow\"\u003eTwitter
|
|
for iPhone\u003c\/a\u003e","in_reply_to_status_id":null,"in_reply_to_status_id_str":null,"in_reply_to_user_id":null,"in_reply_to_user_id_str":null,"in_reply_to_screen_name":null,"user":{"id":127566622,"id_str":"127566622","name":"Frappuccino","screen_name":"frappuccino","location":"Seattle,
|
|
WA","description":"Welcome to the world of Frappuccino, where clouds are made
|
|
of whipped cream and the unicorns are also made of whipped cream.","url":"http:\/\/t.co\/IMpYYlzhTQ","entities":{"url":{"urls":[{"url":"http:\/\/t.co\/IMpYYlzhTQ","expanded_url":"http:\/\/frappuccino.com","display_url":"frappuccino.com","indices":[0,22]}]},"description":{"urls":[]}},"protected":false,"followers_count":211283,"friends_count":65562,"listed_count":755,"created_at":"Mon
|
|
Mar 29 16:30:39 +0000 2010","favourites_count":4748,"utc_offset":-25200,"time_zone":"Pacific
|
|
Time (US & Canada)","geo_enabled":true,"verified":true,"statuses_count":20906,"lang":"en","contributors_enabled":false,"is_translator":false,"is_translation_enabled":false,"profile_background_color":"9AE4E8","profile_background_image_url":"http:\/\/pbs.twimg.com\/profile_background_images\/486908690591535104\/roRpLqRU.jpeg","profile_background_image_url_https":"https:\/\/pbs.twimg.com\/profile_background_images\/486908690591535104\/roRpLqRU.jpeg","profile_background_tile":true,"profile_image_url":"http:\/\/pbs.twimg.com\/profile_images\/773539286843031552\/1XcEcAKR_normal.jpg","profile_image_url_https":"https:\/\/pbs.twimg.com\/profile_images\/773539286843031552\/1XcEcAKR_normal.jpg","profile_banner_url":"https:\/\/pbs.twimg.com\/profile_banners\/127566622\/1469718632","profile_link_color":"0084B4","profile_sidebar_border_color":"FFFFFF","profile_sidebar_fill_color":"DDFFCC","profile_text_color":"333333","profile_use_background_image":true,"has_extended_profile":true,"default_profile":false,"default_profile_image":false,"following":null,"follow_request_sent":null,"notifications":null},"geo":null,"coordinates":null,"place":null,"contributors":null,"is_quote_status":false,"retweet_count":596,"favorite_count":2271,"favorited":false,"retweeted":false,"possibly_sensitive":false,"possibly_sensitive_appealable":false,"lang":"en"}'
|
|
http_version:
|
|
recorded_at: Wed, 28 Sep 2016 17:29:43 GMT
|
|
- request:
|
|
method: post
|
|
uri: https://SENSITIVE:SENSITIVE@api.twitter.com/oauth2/token
|
|
body:
|
|
encoding: UTF-8
|
|
string: grant_type=client_credentials
|
|
headers:
|
|
Accept:
|
|
- "*/*"
|
|
User-Agent:
|
|
- TwitterRubyGem/5.14.0
|
|
Content-Type:
|
|
- application/x-www-form-urlencoded; charset=UTF-8
|
|
Accept-Encoding:
|
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
response:
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
headers:
|
|
Cache-Control:
|
|
- no-cache, no-store, must-revalidate, pre-check=0, post-check=0
|
|
Content-Disposition:
|
|
- attachment; filename=json.json
|
|
Content-Length:
|
|
- '151'
|
|
Content-Type:
|
|
- application/json;charset=utf-8
|
|
Date:
|
|
- Wed, 28 Sep 2016 17:29:43 GMT
|
|
Expires:
|
|
- Tue, 31 Mar 1981 05:00:00 GMT
|
|
Last-Modified:
|
|
- Wed, 28 Sep 2016 17:29:43 GMT
|
|
Ml:
|
|
- S
|
|
Pragma:
|
|
- no-cache
|
|
Server:
|
|
- tsa_a
|
|
Set-Cookie:
|
|
- guest_id=v1%3A147508378349226743; Domain=.twitter.com; Path=/; Expires=Fri,
|
|
28-Sep-2018 17:29:43 UTC
|
|
Status:
|
|
- 200 OK
|
|
Strict-Transport-Security:
|
|
- max-age=631138519
|
|
X-Connection-Hash:
|
|
- a4f6fe5410c10d24153d97a0a454aa0a
|
|
X-Content-Type-Options:
|
|
- nosniff
|
|
X-Frame-Options:
|
|
- DENY
|
|
X-Response-Time:
|
|
- '16'
|
|
X-Transaction:
|
|
- 00a53ce40008bb5e
|
|
X-Tsa-Request-Body-Time:
|
|
- '0'
|
|
X-Twitter-Response-Tags:
|
|
- BouncerCompliant
|
|
X-Ua-Compatible:
|
|
- IE=edge,chrome=1
|
|
X-Xss-Protection:
|
|
- 1; mode=block
|
|
body:
|
|
encoding: UTF-8
|
|
string: '{"token_type":"bearer","access_token":"AAAAAAAAAAAAAAAAAAAAAPV7eAAAAAAAN7q56yJ8wNHhsagDn06qiJ0Io00%3DfdvXQaVKHFS3q1hd3y8fVQdIbntIHN2iTsBTk0f6jQK7lxcDo5"}'
|
|
http_version:
|
|
recorded_at: Wed, 28 Sep 2016 17:29:43 GMT
|
|
- request:
|
|
method: get
|
|
uri: https://api.twitter.com/1.1/statuses/show/566030116182949888.json
|
|
body:
|
|
encoding: US-ASCII
|
|
string: ''
|
|
headers:
|
|
Accept:
|
|
- application/json
|
|
User-Agent:
|
|
- TwitterRubyGem/5.14.0
|
|
Authorization:
|
|
- Bearer AAAAAAAAAAAAAAAAAAAAAPV7eAAAAAAAN7q56yJ8wNHhsagDn06qiJ0Io00%3DfdvXQaVKHFS3q1hd3y8fVQdIbntIHN2iTsBTk0f6jQK7lxcDo5
|
|
Accept-Encoding:
|
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
response:
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
headers:
|
|
Cache-Control:
|
|
- no-cache, no-store, must-revalidate, pre-check=0, post-check=0
|
|
Content-Disposition:
|
|
- attachment; filename=json.json
|
|
Content-Length:
|
|
- '1304'
|
|
Content-Type:
|
|
- application/json;charset=utf-8
|
|
Date:
|
|
- Wed, 28 Sep 2016 17:29:43 GMT
|
|
Expires:
|
|
- Tue, 31 Mar 1981 05:00:00 GMT
|
|
Last-Modified:
|
|
- Wed, 28 Sep 2016 17:29:43 GMT
|
|
Pragma:
|
|
- no-cache
|
|
Server:
|
|
- tsa_a
|
|
Set-Cookie:
|
|
- guest_id=v1%3A147508378359316087; Domain=.twitter.com; Path=/; Expires=Fri,
|
|
28-Sep-2018 17:29:43 UTC
|
|
Status:
|
|
- 200 OK
|
|
Strict-Transport-Security:
|
|
- max-age=631138519
|
|
X-Access-Level:
|
|
- read
|
|
X-Connection-Hash:
|
|
- edb2e48b8fa1c6da8834785daa8074ab
|
|
X-Content-Type-Options:
|
|
- nosniff
|
|
X-Frame-Options:
|
|
- SAMEORIGIN
|
|
X-Rate-Limit-Limit:
|
|
- '180'
|
|
X-Rate-Limit-Remaining:
|
|
- '175'
|
|
X-Rate-Limit-Reset:
|
|
- '1475084682'
|
|
X-Response-Time:
|
|
- '18'
|
|
X-Transaction:
|
|
- 00d2f325004d7ad6
|
|
X-Twitter-Response-Tags:
|
|
- BouncerCompliant
|
|
X-Xss-Protection:
|
|
- 1; mode=block
|
|
body:
|
|
encoding: UTF-8
|
|
string: '{"created_at":"Fri Feb 13 00:24:30 +0000 2015","id":566030116182949888,"id_str":"566030116182949888","text":"What
|
|
do you give the Caramel Frappuccino that already has everything? The gift
|
|
of mocha drizzle. http:\/\/t.co\/2MWtXbYhf0","truncated":false,"entities":{"hashtags":[],"symbols":[],"user_mentions":[],"urls":[],"media":[{"id":566030112210972672,"id_str":"566030112210972672","indices":[97,119],"media_url":"http:\/\/pbs.twimg.com\/media\/B9rxY1qCcAAbeo0.jpg","media_url_https":"https:\/\/pbs.twimg.com\/media\/B9rxY1qCcAAbeo0.jpg","url":"http:\/\/t.co\/2MWtXbYhf0","display_url":"pic.twitter.com\/2MWtXbYhf0","expanded_url":"http:\/\/twitter.com\/frappuccino\/status\/566030116182949888\/photo\/1","type":"photo","sizes":{"medium":{"w":600,"h":338,"resize":"fit"},"thumb":{"w":150,"h":150,"resize":"crop"},"large":{"w":1024,"h":576,"resize":"fit"},"small":{"w":340,"h":191,"resize":"fit"}}}]},"extended_entities":{"media":[{"id":566030112210972672,"id_str":"566030112210972672","indices":[97,119],"media_url":"http:\/\/pbs.twimg.com\/media\/B9rxY1qCcAAbeo0.jpg","media_url_https":"https:\/\/pbs.twimg.com\/media\/B9rxY1qCcAAbeo0.jpg","url":"http:\/\/t.co\/2MWtXbYhf0","display_url":"pic.twitter.com\/2MWtXbYhf0","expanded_url":"http:\/\/twitter.com\/frappuccino\/status\/566030116182949888\/photo\/1","type":"photo","sizes":{"medium":{"w":600,"h":338,"resize":"fit"},"thumb":{"w":150,"h":150,"resize":"crop"},"large":{"w":1024,"h":576,"resize":"fit"},"small":{"w":340,"h":191,"resize":"fit"}}}]},"source":"\u003ca
|
|
href=\"http:\/\/twitter.com\/download\/iphone\" rel=\"nofollow\"\u003eTwitter
|
|
for iPhone\u003c\/a\u003e","in_reply_to_status_id":null,"in_reply_to_status_id_str":null,"in_reply_to_user_id":null,"in_reply_to_user_id_str":null,"in_reply_to_screen_name":null,"user":{"id":127566622,"id_str":"127566622","name":"Frappuccino","screen_name":"frappuccino","location":"Seattle,
|
|
WA","description":"Welcome to the world of Frappuccino, where clouds are made
|
|
of whipped cream and the unicorns are also made of whipped cream.","url":"http:\/\/t.co\/IMpYYlzhTQ","entities":{"url":{"urls":[{"url":"http:\/\/t.co\/IMpYYlzhTQ","expanded_url":"http:\/\/frappuccino.com","display_url":"frappuccino.com","indices":[0,22]}]},"description":{"urls":[]}},"protected":false,"followers_count":211283,"friends_count":65562,"listed_count":755,"created_at":"Mon
|
|
Mar 29 16:30:39 +0000 2010","favourites_count":4748,"utc_offset":-25200,"time_zone":"Pacific
|
|
Time (US & Canada)","geo_enabled":true,"verified":true,"statuses_count":20906,"lang":"en","contributors_enabled":false,"is_translator":false,"is_translation_enabled":false,"profile_background_color":"9AE4E8","profile_background_image_url":"http:\/\/pbs.twimg.com\/profile_background_images\/486908690591535104\/roRpLqRU.jpeg","profile_background_image_url_https":"https:\/\/pbs.twimg.com\/profile_background_images\/486908690591535104\/roRpLqRU.jpeg","profile_background_tile":true,"profile_image_url":"http:\/\/pbs.twimg.com\/profile_images\/773539286843031552\/1XcEcAKR_normal.jpg","profile_image_url_https":"https:\/\/pbs.twimg.com\/profile_images\/773539286843031552\/1XcEcAKR_normal.jpg","profile_banner_url":"https:\/\/pbs.twimg.com\/profile_banners\/127566622\/1469718632","profile_link_color":"0084B4","profile_sidebar_border_color":"FFFFFF","profile_sidebar_fill_color":"DDFFCC","profile_text_color":"333333","profile_use_background_image":true,"has_extended_profile":true,"default_profile":false,"default_profile_image":false,"following":null,"follow_request_sent":null,"notifications":null},"geo":null,"coordinates":null,"place":null,"contributors":null,"is_quote_status":false,"retweet_count":596,"favorite_count":2271,"favorited":false,"retweeted":false,"possibly_sensitive":false,"possibly_sensitive_appealable":false,"lang":"en"}'
|
|
http_version:
|
|
recorded_at: Wed, 28 Sep 2016 17:29:43 GMT
|
|
- request:
|
|
method: head
|
|
uri: http://pbs.twimg.com/media/B9rxY1qCcAAbeo0.jpg:orig
|
|
body:
|
|
encoding: US-ASCII
|
|
string: ''
|
|
headers:
|
|
User-Agent:
|
|
- dior/2.105.0
|
|
Accept:
|
|
- "*/*"
|
|
response:
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
headers:
|
|
Access-Control-Allow-Origin:
|
|
- "*"
|
|
Cache-Control:
|
|
- max-age=604800, must-revalidate
|
|
Content-Md5:
|
|
- owAkLGZeD7NZTChJ3z0/EA==
|
|
Content-Type:
|
|
- image/jpeg
|
|
Date:
|
|
- Wed, 28 Sep 2016 17:29:44 GMT
|
|
Last-Modified:
|
|
- Fri, 13 Feb 2015 00:24:29 GMT
|
|
Server:
|
|
- ECS (ord/4CB4)
|
|
Surrogate-Key:
|
|
- media media/bucket/8 media/566030112210972672
|
|
X-Cache:
|
|
- MISS
|
|
X-Connection-Hash:
|
|
- 712a8377d5a1a2c9e7adf979dde17035
|
|
X-Content-Type-Options:
|
|
- nosniff
|
|
X-Response-Time:
|
|
- '34'
|
|
Content-Length:
|
|
- '56808'
|
|
body:
|
|
encoding: UTF-8
|
|
string: ''
|
|
http_version:
|
|
recorded_at: Wed, 28 Sep 2016 17:29:44 GMT
|
|
recorded_with: VCR 2.9.3
|