refactor source pixiv test
refactor pixiv download tests refactor upload test refactor nico seiga test refactor twitter tests
This commit is contained in:
447
test/fixtures/vcr_cassettes/upload-controller-test/twitter-batch.yml
vendored
Normal file
447
test/fixtures/vcr_cassettes/upload-controller-test/twitter-batch.yml
vendored
Normal file
@@ -0,0 +1,447 @@
|
||||
---
|
||||
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:42 GMT
|
||||
Expires:
|
||||
- Tue, 31 Mar 1981 05:00:00 GMT
|
||||
Last-Modified:
|
||||
- Wed, 28 Sep 2016 17:29:42 GMT
|
||||
Ml:
|
||||
- S
|
||||
Pragma:
|
||||
- no-cache
|
||||
Server:
|
||||
- tsa_a
|
||||
Set-Cookie:
|
||||
- guest_id=v1%3A147508378234064286; Domain=.twitter.com; Path=/; Expires=Fri,
|
||||
28-Sep-2018 17:29:42 UTC
|
||||
Status:
|
||||
- 200 OK
|
||||
Strict-Transport-Security:
|
||||
- max-age=631138519
|
||||
X-Connection-Hash:
|
||||
- 4b4b9107ac56cd4f1edaabca09441d9a
|
||||
X-Content-Type-Options:
|
||||
- nosniff
|
||||
X-Frame-Options:
|
||||
- DENY
|
||||
X-Response-Time:
|
||||
- '43'
|
||||
X-Transaction:
|
||||
- 0028c16d005ad4ed
|
||||
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:42 GMT
|
||||
- request:
|
||||
method: get
|
||||
uri: https://api.twitter.com/1.1/statuses/show/567054278486151168.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:
|
||||
- '1350'
|
||||
Content-Type:
|
||||
- application/json;charset=utf-8
|
||||
Date:
|
||||
- Wed, 28 Sep 2016 17:29:42 GMT
|
||||
Expires:
|
||||
- Tue, 31 Mar 1981 05:00:00 GMT
|
||||
Last-Modified:
|
||||
- Wed, 28 Sep 2016 17:29:42 GMT
|
||||
Pragma:
|
||||
- no-cache
|
||||
Server:
|
||||
- tsa_a
|
||||
Set-Cookie:
|
||||
- guest_id=v1%3A147508378245019493; Domain=.twitter.com; Path=/; Expires=Fri,
|
||||
28-Sep-2018 17:29:42 UTC
|
||||
Status:
|
||||
- 200 OK
|
||||
Strict-Transport-Security:
|
||||
- max-age=631138519
|
||||
X-Access-Level:
|
||||
- read
|
||||
X-Connection-Hash:
|
||||
- df27e610e12e10ea42ed31ab8737b783
|
||||
X-Content-Type-Options:
|
||||
- nosniff
|
||||
X-Frame-Options:
|
||||
- SAMEORIGIN
|
||||
X-Rate-Limit-Limit:
|
||||
- '180'
|
||||
X-Rate-Limit-Remaining:
|
||||
- '179'
|
||||
X-Rate-Limit-Reset:
|
||||
- '1475084682'
|
||||
X-Response-Time:
|
||||
- '23'
|
||||
X-Transaction:
|
||||
- 004f9603009cb432
|
||||
X-Twitter-Response-Tags:
|
||||
- BouncerCompliant
|
||||
X-Xss-Protection:
|
||||
- 1; mode=block
|
||||
body:
|
||||
encoding: UTF-8
|
||||
string: '{"created_at":"Sun Feb 15 20:14:10 +0000 2015","id":567054278486151168,"id_str":"567054278486151168","text":"Those
|
||||
are the same person. #CrossAnge http:\/\/t.co\/zX5p4AOUoA","truncated":false,"entities":{"hashtags":[{"text":"CrossAnge","indices":[27,37]}],"symbols":[],"user_mentions":[],"urls":[],"media":[{"id":567054271943016448,"id_str":"567054271943016448","indices":[38,60],"media_url":"http:\/\/pbs.twimg.com\/media\/B96U2x-IAAAR-ih.jpg","media_url_https":"https:\/\/pbs.twimg.com\/media\/B96U2x-IAAAR-ih.jpg","url":"http:\/\/t.co\/zX5p4AOUoA","display_url":"pic.twitter.com\/zX5p4AOUoA","expanded_url":"http:\/\/twitter.com\/lvlln\/status\/567054278486151168\/photo\/1","type":"photo","sizes":{"thumb":{"w":150,"h":150,"resize":"crop"},"small":{"w":340,"h":191,"resize":"fit"},"medium":{"w":600,"h":338,"resize":"fit"},"large":{"w":1024,"h":576,"resize":"fit"}}}]},"extended_entities":{"media":[{"id":567054271943016448,"id_str":"567054271943016448","indices":[38,60],"media_url":"http:\/\/pbs.twimg.com\/media\/B96U2x-IAAAR-ih.jpg","media_url_https":"https:\/\/pbs.twimg.com\/media\/B96U2x-IAAAR-ih.jpg","url":"http:\/\/t.co\/zX5p4AOUoA","display_url":"pic.twitter.com\/zX5p4AOUoA","expanded_url":"http:\/\/twitter.com\/lvlln\/status\/567054278486151168\/photo\/1","type":"photo","sizes":{"thumb":{"w":150,"h":150,"resize":"crop"},"small":{"w":340,"h":191,"resize":"fit"},"medium":{"w":600,"h":338,"resize":"fit"},"large":{"w":1024,"h":576,"resize":"fit"}}},{"id":567054271989182465,"id_str":"567054271989182465","indices":[38,60],"media_url":"http:\/\/pbs.twimg.com\/media\/B96U2yJIcAEKsHw.jpg","media_url_https":"https:\/\/pbs.twimg.com\/media\/B96U2yJIcAEKsHw.jpg","url":"http:\/\/t.co\/zX5p4AOUoA","display_url":"pic.twitter.com\/zX5p4AOUoA","expanded_url":"http:\/\/twitter.com\/lvlln\/status\/567054278486151168\/photo\/1","type":"photo","sizes":{"large":{"w":1024,"h":576,"resize":"fit"},"small":{"w":340,"h":191,"resize":"fit"},"medium":{"w":600,"h":338,"resize":"fit"},"thumb":{"w":150,"h":150,"resize":"crop"}}}]},"source":"\u003ca
|
||||
href=\"http:\/\/twitter.com\" rel=\"nofollow\"\u003eTwitter Web Client\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":68692042,"id_str":"68692042","name":"lvlln","screen_name":"lvlln","location":"Arlington,
|
||||
MA","description":"Just a quant who enjoys anime and video games and ultimate.
|
||||
Blogs on Metanorn. I help to run http:\/\/t.co\/ilgVSv62tc","url":"http:\/\/t.co\/NXLDfpT1OT","entities":{"url":{"urls":[{"url":"http:\/\/t.co\/NXLDfpT1OT","expanded_url":"http:\/\/metanorn.net","display_url":"metanorn.net","indices":[0,22]}]},"description":{"urls":[{"url":"http:\/\/t.co\/ilgVSv62tc","expanded_url":"http:\/\/mirroredanimescreenshots.tumblr.com","display_url":"mirroredanimescreenshots.tumblr.com","indices":[93,115]}]}},"protected":false,"followers_count":1096,"friends_count":1116,"listed_count":70,"created_at":"Tue
|
||||
Aug 25 13:28:39 +0000 2009","favourites_count":15734,"utc_offset":-14400,"time_zone":"Eastern
|
||||
Time (US & Canada)","geo_enabled":true,"verified":false,"statuses_count":83920,"lang":"en","contributors_enabled":false,"is_translator":false,"is_translation_enabled":false,"profile_background_color":"C0DEED","profile_background_image_url":"http:\/\/pbs.twimg.com\/profile_background_images\/537958726\/540597.jpg","profile_background_image_url_https":"https:\/\/pbs.twimg.com\/profile_background_images\/537958726\/540597.jpg","profile_background_tile":true,"profile_image_url":"http:\/\/pbs.twimg.com\/profile_images\/2631613491\/3b689e982e21419870a31c4cd4205a03_normal.jpeg","profile_image_url_https":"https:\/\/pbs.twimg.com\/profile_images\/2631613491\/3b689e982e21419870a31c4cd4205a03_normal.jpeg","profile_banner_url":"https:\/\/pbs.twimg.com\/profile_banners\/68692042\/1399737095","profile_link_color":"0084B4","profile_sidebar_border_color":"C0DEED","profile_sidebar_fill_color":"DDEEF6","profile_text_color":"333333","profile_use_background_image":true,"has_extended_profile":false,"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":28,"favorite_count":23,"favorited":false,"retweeted":false,"possibly_sensitive":false,"possibly_sensitive_appealable":false,"lang":"en"}'
|
||||
http_version:
|
||||
recorded_at: Wed, 28 Sep 2016 17:29:42 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:42 GMT
|
||||
Expires:
|
||||
- Tue, 31 Mar 1981 05:00:00 GMT
|
||||
Last-Modified:
|
||||
- Wed, 28 Sep 2016 17:29:42 GMT
|
||||
Ml:
|
||||
- S
|
||||
Pragma:
|
||||
- no-cache
|
||||
Server:
|
||||
- tsa_a
|
||||
Set-Cookie:
|
||||
- guest_id=v1%3A147508378252941134; Domain=.twitter.com; Path=/; Expires=Fri,
|
||||
28-Sep-2018 17:29:42 UTC
|
||||
Status:
|
||||
- 200 OK
|
||||
Strict-Transport-Security:
|
||||
- max-age=631138519
|
||||
X-Connection-Hash:
|
||||
- fabe2c960e4e5ac94da7c7987a36f437
|
||||
X-Content-Type-Options:
|
||||
- nosniff
|
||||
X-Frame-Options:
|
||||
- DENY
|
||||
X-Response-Time:
|
||||
- '14'
|
||||
X-Transaction:
|
||||
- 003539a100cbbe31
|
||||
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:42 GMT
|
||||
- request:
|
||||
method: get
|
||||
uri: https://api.twitter.com/1.1/statuses/show/567054278486151168.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:
|
||||
- '1350'
|
||||
Content-Type:
|
||||
- application/json;charset=utf-8
|
||||
Date:
|
||||
- Wed, 28 Sep 2016 17:29:42 GMT
|
||||
Expires:
|
||||
- Tue, 31 Mar 1981 05:00:00 GMT
|
||||
Last-Modified:
|
||||
- Wed, 28 Sep 2016 17:29:42 GMT
|
||||
Pragma:
|
||||
- no-cache
|
||||
Server:
|
||||
- tsa_a
|
||||
Set-Cookie:
|
||||
- guest_id=v1%3A147508378265750590; Domain=.twitter.com; Path=/; Expires=Fri,
|
||||
28-Sep-2018 17:29:42 UTC
|
||||
Status:
|
||||
- 200 OK
|
||||
Strict-Transport-Security:
|
||||
- max-age=631138519
|
||||
X-Access-Level:
|
||||
- read
|
||||
X-Connection-Hash:
|
||||
- 974a8d92c7dfce0840008a77193c544c
|
||||
X-Content-Type-Options:
|
||||
- nosniff
|
||||
X-Frame-Options:
|
||||
- SAMEORIGIN
|
||||
X-Rate-Limit-Limit:
|
||||
- '180'
|
||||
X-Rate-Limit-Remaining:
|
||||
- '178'
|
||||
X-Rate-Limit-Reset:
|
||||
- '1475084682'
|
||||
X-Response-Time:
|
||||
- '27'
|
||||
X-Transaction:
|
||||
- 00f67b42003191d2
|
||||
X-Twitter-Response-Tags:
|
||||
- BouncerCompliant
|
||||
X-Xss-Protection:
|
||||
- 1; mode=block
|
||||
body:
|
||||
encoding: UTF-8
|
||||
string: '{"created_at":"Sun Feb 15 20:14:10 +0000 2015","id":567054278486151168,"id_str":"567054278486151168","text":"Those
|
||||
are the same person. #CrossAnge http:\/\/t.co\/zX5p4AOUoA","truncated":false,"entities":{"hashtags":[{"text":"CrossAnge","indices":[27,37]}],"symbols":[],"user_mentions":[],"urls":[],"media":[{"id":567054271943016448,"id_str":"567054271943016448","indices":[38,60],"media_url":"http:\/\/pbs.twimg.com\/media\/B96U2x-IAAAR-ih.jpg","media_url_https":"https:\/\/pbs.twimg.com\/media\/B96U2x-IAAAR-ih.jpg","url":"http:\/\/t.co\/zX5p4AOUoA","display_url":"pic.twitter.com\/zX5p4AOUoA","expanded_url":"http:\/\/twitter.com\/lvlln\/status\/567054278486151168\/photo\/1","type":"photo","sizes":{"thumb":{"w":150,"h":150,"resize":"crop"},"small":{"w":340,"h":191,"resize":"fit"},"medium":{"w":600,"h":338,"resize":"fit"},"large":{"w":1024,"h":576,"resize":"fit"}}}]},"extended_entities":{"media":[{"id":567054271943016448,"id_str":"567054271943016448","indices":[38,60],"media_url":"http:\/\/pbs.twimg.com\/media\/B96U2x-IAAAR-ih.jpg","media_url_https":"https:\/\/pbs.twimg.com\/media\/B96U2x-IAAAR-ih.jpg","url":"http:\/\/t.co\/zX5p4AOUoA","display_url":"pic.twitter.com\/zX5p4AOUoA","expanded_url":"http:\/\/twitter.com\/lvlln\/status\/567054278486151168\/photo\/1","type":"photo","sizes":{"thumb":{"w":150,"h":150,"resize":"crop"},"small":{"w":340,"h":191,"resize":"fit"},"medium":{"w":600,"h":338,"resize":"fit"},"large":{"w":1024,"h":576,"resize":"fit"}}},{"id":567054271989182465,"id_str":"567054271989182465","indices":[38,60],"media_url":"http:\/\/pbs.twimg.com\/media\/B96U2yJIcAEKsHw.jpg","media_url_https":"https:\/\/pbs.twimg.com\/media\/B96U2yJIcAEKsHw.jpg","url":"http:\/\/t.co\/zX5p4AOUoA","display_url":"pic.twitter.com\/zX5p4AOUoA","expanded_url":"http:\/\/twitter.com\/lvlln\/status\/567054278486151168\/photo\/1","type":"photo","sizes":{"large":{"w":1024,"h":576,"resize":"fit"},"small":{"w":340,"h":191,"resize":"fit"},"medium":{"w":600,"h":338,"resize":"fit"},"thumb":{"w":150,"h":150,"resize":"crop"}}}]},"source":"\u003ca
|
||||
href=\"http:\/\/twitter.com\" rel=\"nofollow\"\u003eTwitter Web Client\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":68692042,"id_str":"68692042","name":"lvlln","screen_name":"lvlln","location":"Arlington,
|
||||
MA","description":"Just a quant who enjoys anime and video games and ultimate.
|
||||
Blogs on Metanorn. I help to run http:\/\/t.co\/ilgVSv62tc","url":"http:\/\/t.co\/NXLDfpT1OT","entities":{"url":{"urls":[{"url":"http:\/\/t.co\/NXLDfpT1OT","expanded_url":"http:\/\/metanorn.net","display_url":"metanorn.net","indices":[0,22]}]},"description":{"urls":[{"url":"http:\/\/t.co\/ilgVSv62tc","expanded_url":"http:\/\/mirroredanimescreenshots.tumblr.com","display_url":"mirroredanimescreenshots.tumblr.com","indices":[93,115]}]}},"protected":false,"followers_count":1096,"friends_count":1116,"listed_count":70,"created_at":"Tue
|
||||
Aug 25 13:28:39 +0000 2009","favourites_count":15734,"utc_offset":-14400,"time_zone":"Eastern
|
||||
Time (US & Canada)","geo_enabled":true,"verified":false,"statuses_count":83920,"lang":"en","contributors_enabled":false,"is_translator":false,"is_translation_enabled":false,"profile_background_color":"C0DEED","profile_background_image_url":"http:\/\/pbs.twimg.com\/profile_background_images\/537958726\/540597.jpg","profile_background_image_url_https":"https:\/\/pbs.twimg.com\/profile_background_images\/537958726\/540597.jpg","profile_background_tile":true,"profile_image_url":"http:\/\/pbs.twimg.com\/profile_images\/2631613491\/3b689e982e21419870a31c4cd4205a03_normal.jpeg","profile_image_url_https":"https:\/\/pbs.twimg.com\/profile_images\/2631613491\/3b689e982e21419870a31c4cd4205a03_normal.jpeg","profile_banner_url":"https:\/\/pbs.twimg.com\/profile_banners\/68692042\/1399737095","profile_link_color":"0084B4","profile_sidebar_border_color":"C0DEED","profile_sidebar_fill_color":"DDEEF6","profile_text_color":"333333","profile_use_background_image":true,"has_extended_profile":false,"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":28,"favorite_count":23,"favorited":false,"retweeted":false,"possibly_sensitive":false,"possibly_sensitive_appealable":false,"lang":"en"}'
|
||||
http_version:
|
||||
recorded_at: Wed, 28 Sep 2016 17:29:42 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:42 GMT
|
||||
Expires:
|
||||
- Tue, 31 Mar 1981 05:00:00 GMT
|
||||
Last-Modified:
|
||||
- Wed, 28 Sep 2016 17:29:42 GMT
|
||||
Ml:
|
||||
- S
|
||||
Pragma:
|
||||
- no-cache
|
||||
Server:
|
||||
- tsa_a
|
||||
Set-Cookie:
|
||||
- guest_id=v1%3A147508378274498829; Domain=.twitter.com; Path=/; Expires=Fri,
|
||||
28-Sep-2018 17:29:42 UTC
|
||||
Status:
|
||||
- 200 OK
|
||||
Strict-Transport-Security:
|
||||
- max-age=631138519
|
||||
X-Connection-Hash:
|
||||
- 232e175caa2bf6f4d8552208217106a6
|
||||
X-Content-Type-Options:
|
||||
- nosniff
|
||||
X-Frame-Options:
|
||||
- DENY
|
||||
X-Response-Time:
|
||||
- '15'
|
||||
X-Transaction:
|
||||
- 00d15fbc00759da2
|
||||
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:42 GMT
|
||||
- request:
|
||||
method: get
|
||||
uri: https://api.twitter.com/1.1/statuses/show/567054278486151168.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:
|
||||
- '1350'
|
||||
Content-Type:
|
||||
- application/json;charset=utf-8
|
||||
Date:
|
||||
- Wed, 28 Sep 2016 17:29:42 GMT
|
||||
Expires:
|
||||
- Tue, 31 Mar 1981 05:00:00 GMT
|
||||
Last-Modified:
|
||||
- Wed, 28 Sep 2016 17:29:42 GMT
|
||||
Pragma:
|
||||
- no-cache
|
||||
Server:
|
||||
- tsa_a
|
||||
Set-Cookie:
|
||||
- guest_id=v1%3A147508378282256700; Domain=.twitter.com; Path=/; Expires=Fri,
|
||||
28-Sep-2018 17:29:42 UTC
|
||||
Status:
|
||||
- 200 OK
|
||||
Strict-Transport-Security:
|
||||
- max-age=631138519
|
||||
X-Access-Level:
|
||||
- read
|
||||
X-Connection-Hash:
|
||||
- 86be53dcf150b430489885dfd75a5938
|
||||
X-Content-Type-Options:
|
||||
- nosniff
|
||||
X-Frame-Options:
|
||||
- SAMEORIGIN
|
||||
X-Rate-Limit-Limit:
|
||||
- '180'
|
||||
X-Rate-Limit-Remaining:
|
||||
- '177'
|
||||
X-Rate-Limit-Reset:
|
||||
- '1475084682'
|
||||
X-Response-Time:
|
||||
- '24'
|
||||
X-Transaction:
|
||||
- 002ae90e009c7f9b
|
||||
X-Twitter-Response-Tags:
|
||||
- BouncerCompliant
|
||||
X-Xss-Protection:
|
||||
- 1; mode=block
|
||||
body:
|
||||
encoding: UTF-8
|
||||
string: '{"created_at":"Sun Feb 15 20:14:10 +0000 2015","id":567054278486151168,"id_str":"567054278486151168","text":"Those
|
||||
are the same person. #CrossAnge http:\/\/t.co\/zX5p4AOUoA","truncated":false,"entities":{"hashtags":[{"text":"CrossAnge","indices":[27,37]}],"symbols":[],"user_mentions":[],"urls":[],"media":[{"id":567054271943016448,"id_str":"567054271943016448","indices":[38,60],"media_url":"http:\/\/pbs.twimg.com\/media\/B96U2x-IAAAR-ih.jpg","media_url_https":"https:\/\/pbs.twimg.com\/media\/B96U2x-IAAAR-ih.jpg","url":"http:\/\/t.co\/zX5p4AOUoA","display_url":"pic.twitter.com\/zX5p4AOUoA","expanded_url":"http:\/\/twitter.com\/lvlln\/status\/567054278486151168\/photo\/1","type":"photo","sizes":{"thumb":{"w":150,"h":150,"resize":"crop"},"small":{"w":340,"h":191,"resize":"fit"},"medium":{"w":600,"h":338,"resize":"fit"},"large":{"w":1024,"h":576,"resize":"fit"}}}]},"extended_entities":{"media":[{"id":567054271943016448,"id_str":"567054271943016448","indices":[38,60],"media_url":"http:\/\/pbs.twimg.com\/media\/B96U2x-IAAAR-ih.jpg","media_url_https":"https:\/\/pbs.twimg.com\/media\/B96U2x-IAAAR-ih.jpg","url":"http:\/\/t.co\/zX5p4AOUoA","display_url":"pic.twitter.com\/zX5p4AOUoA","expanded_url":"http:\/\/twitter.com\/lvlln\/status\/567054278486151168\/photo\/1","type":"photo","sizes":{"thumb":{"w":150,"h":150,"resize":"crop"},"small":{"w":340,"h":191,"resize":"fit"},"medium":{"w":600,"h":338,"resize":"fit"},"large":{"w":1024,"h":576,"resize":"fit"}}},{"id":567054271989182465,"id_str":"567054271989182465","indices":[38,60],"media_url":"http:\/\/pbs.twimg.com\/media\/B96U2yJIcAEKsHw.jpg","media_url_https":"https:\/\/pbs.twimg.com\/media\/B96U2yJIcAEKsHw.jpg","url":"http:\/\/t.co\/zX5p4AOUoA","display_url":"pic.twitter.com\/zX5p4AOUoA","expanded_url":"http:\/\/twitter.com\/lvlln\/status\/567054278486151168\/photo\/1","type":"photo","sizes":{"large":{"w":1024,"h":576,"resize":"fit"},"small":{"w":340,"h":191,"resize":"fit"},"medium":{"w":600,"h":338,"resize":"fit"},"thumb":{"w":150,"h":150,"resize":"crop"}}}]},"source":"\u003ca
|
||||
href=\"http:\/\/twitter.com\" rel=\"nofollow\"\u003eTwitter Web Client\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":68692042,"id_str":"68692042","name":"lvlln","screen_name":"lvlln","location":"Arlington,
|
||||
MA","description":"Just a quant who enjoys anime and video games and ultimate.
|
||||
Blogs on Metanorn. I help to run http:\/\/t.co\/ilgVSv62tc","url":"http:\/\/t.co\/NXLDfpT1OT","entities":{"url":{"urls":[{"url":"http:\/\/t.co\/NXLDfpT1OT","expanded_url":"http:\/\/metanorn.net","display_url":"metanorn.net","indices":[0,22]}]},"description":{"urls":[{"url":"http:\/\/t.co\/ilgVSv62tc","expanded_url":"http:\/\/mirroredanimescreenshots.tumblr.com","display_url":"mirroredanimescreenshots.tumblr.com","indices":[93,115]}]}},"protected":false,"followers_count":1096,"friends_count":1116,"listed_count":70,"created_at":"Tue
|
||||
Aug 25 13:28:39 +0000 2009","favourites_count":15734,"utc_offset":-14400,"time_zone":"Eastern
|
||||
Time (US & Canada)","geo_enabled":true,"verified":false,"statuses_count":83920,"lang":"en","contributors_enabled":false,"is_translator":false,"is_translation_enabled":false,"profile_background_color":"C0DEED","profile_background_image_url":"http:\/\/pbs.twimg.com\/profile_background_images\/537958726\/540597.jpg","profile_background_image_url_https":"https:\/\/pbs.twimg.com\/profile_background_images\/537958726\/540597.jpg","profile_background_tile":true,"profile_image_url":"http:\/\/pbs.twimg.com\/profile_images\/2631613491\/3b689e982e21419870a31c4cd4205a03_normal.jpeg","profile_image_url_https":"https:\/\/pbs.twimg.com\/profile_images\/2631613491\/3b689e982e21419870a31c4cd4205a03_normal.jpeg","profile_banner_url":"https:\/\/pbs.twimg.com\/profile_banners\/68692042\/1399737095","profile_link_color":"0084B4","profile_sidebar_border_color":"C0DEED","profile_sidebar_fill_color":"DDEEF6","profile_text_color":"333333","profile_use_background_image":true,"has_extended_profile":false,"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":28,"favorite_count":23,"favorited":false,"retweeted":false,"possibly_sensitive":false,"possibly_sensitive_appealable":false,"lang":"en"}'
|
||||
http_version:
|
||||
recorded_at: Wed, 28 Sep 2016 17:29:42 GMT
|
||||
recorded_with: VCR 2.9.3
|
||||
350
test/fixtures/vcr_cassettes/upload-controller-test/twitter.yml
vendored
Normal file
350
test/fixtures/vcr_cassettes/upload-controller-test/twitter.yml
vendored
Normal file
@@ -0,0 +1,350 @@
|
||||
---
|
||||
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
|
||||
Reference in New Issue
Block a user