etfc 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +10 -0
- data/.rspec +2 -0
- data/.rubocop.yml +7 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +98 -0
- data/Rakefile +15 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/etfc.gemspec +36 -0
- data/exe/etfc +11 -0
- data/fixtures/images/1.jpg +0 -0
- data/fixtures/images/10.jpg +0 -0
- data/fixtures/images/2.jpg +0 -0
- data/fixtures/images/3.jpg +0 -0
- data/fixtures/images/4.jpg +0 -0
- data/fixtures/images/5.jpg +0 -0
- data/fixtures/images/6.jpg +0 -0
- data/fixtures/images/7.jpg +0 -0
- data/fixtures/images/8.jpg +0 -0
- data/fixtures/images/9.jpg +0 -0
- data/fixtures/vcr_cassettes/collage.yml +76395 -0
- data/fixtures/vcr_cassettes/download_blank_image.yml +83 -0
- data/fixtures/vcr_cassettes/flickr_search_match.yml +121 -0
- data/fixtures/vcr_cassettes/flickr_search_no_match.yml +62 -0
- data/fixtures/vcr_cassettes/ten_images.yml +1319 -0
- data/lib/etfc/cli.rb +32 -0
- data/lib/etfc/collage.rb +35 -0
- data/lib/etfc/dictionary.rb +59 -0
- data/lib/etfc/flickr.rb +38 -0
- data/lib/etfc/image.rb +45 -0
- data/lib/etfc/runner.rb +65 -0
- data/lib/etfc/version.rb +3 -0
- data/lib/etfc.rb +15 -0
- data/sample_collage.jpg +0 -0
- metadata +223 -0
@@ -0,0 +1,83 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://upload.wikimedia.org/wikipedia/en/4/48/Blank.JPG
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Sun, 01 Jan 2017 20:58:34 GMT
|
23
|
+
Content-Type:
|
24
|
+
- image/jpeg
|
25
|
+
Content-Length:
|
26
|
+
- '631'
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
X-Object-Meta-Sha1base36:
|
30
|
+
- e664xyyfn8e2d7h7u2e12n2aet75vhn
|
31
|
+
Last-Modified:
|
32
|
+
- Tue, 22 Apr 2014 12:48:11 GMT
|
33
|
+
Etag:
|
34
|
+
- d68e763c825dc0e388929ae1b375ce18
|
35
|
+
X-Timestamp:
|
36
|
+
- '1398170890.06451'
|
37
|
+
X-Trans-Id:
|
38
|
+
- txae36055ef88a4f35951a2-0058690890
|
39
|
+
X-Varnish:
|
40
|
+
- 135769834 130433678, 54230570 51477694, 6881533 991028222
|
41
|
+
Via:
|
42
|
+
- 1.1 varnish-v4, 1.1 varnish-v4, 1.1 varnish-v4
|
43
|
+
Age:
|
44
|
+
- '25833'
|
45
|
+
X-Cache:
|
46
|
+
- cp1063 hit/10, cp3048 hit/9, cp3037 hit/28
|
47
|
+
X-Cache-Status:
|
48
|
+
- hit
|
49
|
+
Strict-Transport-Security:
|
50
|
+
- max-age=31536000; includeSubDomains; preload
|
51
|
+
X-Analytics:
|
52
|
+
- https=1;nocookies=1
|
53
|
+
X-Client-Ip:
|
54
|
+
- 41.177.127.206
|
55
|
+
Access-Control-Allow-Origin:
|
56
|
+
- "*"
|
57
|
+
Access-Control-Expose-Headers:
|
58
|
+
- Age, Date, Content-Length, Content-Range, X-Content-Duration, X-Cache, X-Varnish
|
59
|
+
Timing-Allow-Origin:
|
60
|
+
- "*"
|
61
|
+
Accept-Ranges:
|
62
|
+
- bytes
|
63
|
+
body:
|
64
|
+
encoding: ASCII-8BIT
|
65
|
+
string: !binary |-
|
66
|
+
/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsL
|
67
|
+
DBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/
|
68
|
+
2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIy
|
69
|
+
MjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAABAAEDASIAAhEBAxEB/8QA
|
70
|
+
HwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUF
|
71
|
+
BAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkK
|
72
|
+
FhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1
|
73
|
+
dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXG
|
74
|
+
x8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEB
|
75
|
+
AQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAEC
|
76
|
+
AxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRom
|
77
|
+
JygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOE
|
78
|
+
hYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU
|
79
|
+
1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD3+iiigD//
|
80
|
+
2Q==
|
81
|
+
http_version:
|
82
|
+
recorded_at: Sun, 01 Jan 2017 20:58:34 GMT
|
83
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,121 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.flickr.com/services/rest/
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: method=flickr.reflection.getMethods&format=json&nojsoncallback=1
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- FlickRaw/0.9.9
|
16
|
+
Authorization:
|
17
|
+
- OAuth realm="https://api.flickr.com/services/rest/", oauth_consumer_key="4ac7f2e23e79a5a10962262187632ae5",
|
18
|
+
oauth_nonce="IH6Q%2FPmMl%2FdzpCIhuXdwzH6sPEKOUZc0EOQA4IEVlO4%3D", oauth_signature="ddf1383b8044b8cb%26",
|
19
|
+
oauth_signature_method="PLAINTEXT", oauth_timestamp="1483301088", oauth_token="",
|
20
|
+
oauth_version="1.0"
|
21
|
+
Content-Type:
|
22
|
+
- application/x-www-form-urlencoded
|
23
|
+
response:
|
24
|
+
status:
|
25
|
+
code: 200
|
26
|
+
message: OK
|
27
|
+
headers:
|
28
|
+
Date:
|
29
|
+
- Sun, 01 Jan 2017 20:04:49 GMT
|
30
|
+
Content-Type:
|
31
|
+
- application/json
|
32
|
+
Content-Length:
|
33
|
+
- '1428'
|
34
|
+
P3p:
|
35
|
+
- policyref="https://policies.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM
|
36
|
+
DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND
|
37
|
+
PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
|
38
|
+
X-Content-Type-Options:
|
39
|
+
- nosniff
|
40
|
+
Cache-Control:
|
41
|
+
- private
|
42
|
+
X-Served-By:
|
43
|
+
- www-bm023.flickr.bf1.yahoo.com
|
44
|
+
X-Frame-Options:
|
45
|
+
- SAMEORIGIN
|
46
|
+
Vary:
|
47
|
+
- Accept-Encoding
|
48
|
+
Age:
|
49
|
+
- '0'
|
50
|
+
Via:
|
51
|
+
- http/1.1 fts127.flickr.bf1.yahoo.com (ApacheTrafficServer [cMsSf ]), http/1.1
|
52
|
+
r04.ycpi.ir2.yahoo.net (ApacheTrafficServer [cMsSf ])
|
53
|
+
Server:
|
54
|
+
- ATS
|
55
|
+
Connection:
|
56
|
+
- keep-alive
|
57
|
+
body:
|
58
|
+
encoding: ASCII-8BIT
|
59
|
+
string: '{"methods":{"method":[{"_content":"flickr.activity.userComments"},{"_content":"flickr.activity.userPhotos"},{"_content":"flickr.auth.checkToken"},{"_content":"flickr.auth.getFrob"},{"_content":"flickr.auth.getFullToken"},{"_content":"flickr.auth.getToken"},{"_content":"flickr.auth.oauth.checkToken"},{"_content":"flickr.auth.oauth.getAccessToken"},{"_content":"flickr.blogs.getList"},{"_content":"flickr.blogs.getServices"},{"_content":"flickr.blogs.postPhoto"},{"_content":"flickr.cameras.getBrandModels"},{"_content":"flickr.cameras.getBrands"},{"_content":"flickr.collections.getInfo"},{"_content":"flickr.collections.getTree"},{"_content":"flickr.commons.getInstitutions"},{"_content":"flickr.contacts.getList"},{"_content":"flickr.contacts.getListRecentlyUploaded"},{"_content":"flickr.contacts.getPublicList"},{"_content":"flickr.contacts.getTaggingSuggestions"},{"_content":"flickr.favorites.add"},{"_content":"flickr.favorites.getContext"},{"_content":"flickr.favorites.getList"},{"_content":"flickr.favorites.getPublicList"},{"_content":"flickr.favorites.remove"},{"_content":"flickr.galleries.addPhoto"},{"_content":"flickr.galleries.create"},{"_content":"flickr.galleries.editMeta"},{"_content":"flickr.galleries.editPhoto"},{"_content":"flickr.galleries.editPhotos"},{"_content":"flickr.galleries.getInfo"},{"_content":"flickr.galleries.getList"},{"_content":"flickr.galleries.getListForPhoto"},{"_content":"flickr.galleries.getPhotos"},{"_content":"flickr.groups.browse"},{"_content":"flickr.groups.discuss.replies.add"},{"_content":"flickr.groups.discuss.replies.delete"},{"_content":"flickr.groups.discuss.replies.edit"},{"_content":"flickr.groups.discuss.replies.getInfo"},{"_content":"flickr.groups.discuss.replies.getList"},{"_content":"flickr.groups.discuss.topics.add"},{"_content":"flickr.groups.discuss.topics.getInfo"},{"_content":"flickr.groups.discuss.topics.getList"},{"_content":"flickr.groups.getInfo"},{"_content":"flickr.groups.join"},{"_content":"flickr.groups.joinRequest"},{"_content":"flickr.groups.leave"},{"_content":"flickr.groups.members.getList"},{"_content":"flickr.groups.pools.add"},{"_content":"flickr.groups.pools.getContext"},{"_content":"flickr.groups.pools.getGroups"},{"_content":"flickr.groups.pools.getPhotos"},{"_content":"flickr.groups.pools.remove"},{"_content":"flickr.groups.search"},{"_content":"flickr.interestingness.getList"},{"_content":"flickr.machinetags.getNamespaces"},{"_content":"flickr.machinetags.getPairs"},{"_content":"flickr.machinetags.getPredicates"},{"_content":"flickr.machinetags.getRecentValues"},{"_content":"flickr.machinetags.getValues"},{"_content":"flickr.panda.getList"},{"_content":"flickr.panda.getPhotos"},{"_content":"flickr.people.findByEmail"},{"_content":"flickr.people.findByUsername"},{"_content":"flickr.people.getGroups"},{"_content":"flickr.people.getInfo"},{"_content":"flickr.people.getLimits"},{"_content":"flickr.people.getPhotos"},{"_content":"flickr.people.getPhotosOf"},{"_content":"flickr.people.getPublicGroups"},{"_content":"flickr.people.getPublicPhotos"},{"_content":"flickr.people.getUploadStatus"},{"_content":"flickr.photos.addTags"},{"_content":"flickr.photos.comments.addComment"},{"_content":"flickr.photos.comments.deleteComment"},{"_content":"flickr.photos.comments.editComment"},{"_content":"flickr.photos.comments.getList"},{"_content":"flickr.photos.comments.getRecentForContacts"},{"_content":"flickr.photos.delete"},{"_content":"flickr.photos.geo.batchCorrectLocation"},{"_content":"flickr.photos.geo.correctLocation"},{"_content":"flickr.photos.geo.getLocation"},{"_content":"flickr.photos.geo.getPerms"},{"_content":"flickr.photos.geo.photosForLocation"},{"_content":"flickr.photos.geo.removeLocation"},{"_content":"flickr.photos.geo.setContext"},{"_content":"flickr.photos.geo.setLocation"},{"_content":"flickr.photos.geo.setPerms"},{"_content":"flickr.photos.getAllContexts"},{"_content":"flickr.photos.getContactsPhotos"},{"_content":"flickr.photos.getContactsPublicPhotos"},{"_content":"flickr.photos.getContext"},{"_content":"flickr.photos.getCounts"},{"_content":"flickr.photos.getExif"},{"_content":"flickr.photos.getFavorites"},{"_content":"flickr.photos.getInfo"},{"_content":"flickr.photos.getNotInSet"},{"_content":"flickr.photos.getPerms"},{"_content":"flickr.photos.getRecent"},{"_content":"flickr.photos.getSizes"},{"_content":"flickr.photos.getUntagged"},{"_content":"flickr.photos.getWithGeoData"},{"_content":"flickr.photos.getWithoutGeoData"},{"_content":"flickr.photos.licenses.getInfo"},{"_content":"flickr.photos.licenses.setLicense"},{"_content":"flickr.photos.notes.add"},{"_content":"flickr.photos.notes.delete"},{"_content":"flickr.photos.notes.edit"},{"_content":"flickr.photos.people.add"},{"_content":"flickr.photos.people.delete"},{"_content":"flickr.photos.people.deleteCoords"},{"_content":"flickr.photos.people.editCoords"},{"_content":"flickr.photos.people.getList"},{"_content":"flickr.photos.recentlyUpdated"},{"_content":"flickr.photos.removeTag"},{"_content":"flickr.photos.search"},{"_content":"flickr.photos.setContentType"},{"_content":"flickr.photos.setDates"},{"_content":"flickr.photos.setMeta"},{"_content":"flickr.photos.setPerms"},{"_content":"flickr.photos.setSafetyLevel"},{"_content":"flickr.photos.setTags"},{"_content":"flickr.photos.suggestions.approveSuggestion"},{"_content":"flickr.photos.suggestions.getList"},{"_content":"flickr.photos.suggestions.rejectSuggestion"},{"_content":"flickr.photos.suggestions.removeSuggestion"},{"_content":"flickr.photos.suggestions.suggestLocation"},{"_content":"flickr.photos.transform.rotate"},{"_content":"flickr.photos.upload.checkTickets"},{"_content":"flickr.photosets.addPhoto"},{"_content":"flickr.photosets.comments.addComment"},{"_content":"flickr.photosets.comments.deleteComment"},{"_content":"flickr.photosets.comments.editComment"},{"_content":"flickr.photosets.comments.getList"},{"_content":"flickr.photosets.create"},{"_content":"flickr.photosets.delete"},{"_content":"flickr.photosets.editMeta"},{"_content":"flickr.photosets.editPhotos"},{"_content":"flickr.photosets.getContext"},{"_content":"flickr.photosets.getInfo"},{"_content":"flickr.photosets.getList"},{"_content":"flickr.photosets.getPhotos"},{"_content":"flickr.photosets.orderSets"},{"_content":"flickr.photosets.removePhoto"},{"_content":"flickr.photosets.removePhotos"},{"_content":"flickr.photosets.reorderPhotos"},{"_content":"flickr.photosets.setPrimaryPhoto"},{"_content":"flickr.places.find"},{"_content":"flickr.places.findByLatLon"},{"_content":"flickr.places.getChildrenWithPhotosPublic"},{"_content":"flickr.places.getInfo"},{"_content":"flickr.places.getInfoByUrl"},{"_content":"flickr.places.getPlaceTypes"},{"_content":"flickr.places.getShapeHistory"},{"_content":"flickr.places.getTopPlacesList"},{"_content":"flickr.places.placesForBoundingBox"},{"_content":"flickr.places.placesForContacts"},{"_content":"flickr.places.placesForTags"},{"_content":"flickr.places.placesForUser"},{"_content":"flickr.places.resolvePlaceId"},{"_content":"flickr.places.resolvePlaceURL"},{"_content":"flickr.places.tagsForPlace"},{"_content":"flickr.prefs.getContentType"},{"_content":"flickr.prefs.getGeoPerms"},{"_content":"flickr.prefs.getHidden"},{"_content":"flickr.prefs.getPrivacy"},{"_content":"flickr.prefs.getSafetyLevel"},{"_content":"flickr.push.getSubscriptions"},{"_content":"flickr.push.getTopics"},{"_content":"flickr.push.subscribe"},{"_content":"flickr.push.unsubscribe"},{"_content":"flickr.reflection.getMethodInfo"},{"_content":"flickr.reflection.getMethods"},{"_content":"flickr.stats.getCollectionDomains"},{"_content":"flickr.stats.getCollectionReferrers"},{"_content":"flickr.stats.getCollectionStats"},{"_content":"flickr.stats.getCSVFiles"},{"_content":"flickr.stats.getPhotoDomains"},{"_content":"flickr.stats.getPhotoReferrers"},{"_content":"flickr.stats.getPhotosetDomains"},{"_content":"flickr.stats.getPhotosetReferrers"},{"_content":"flickr.stats.getPhotosetStats"},{"_content":"flickr.stats.getPhotoStats"},{"_content":"flickr.stats.getPhotostreamDomains"},{"_content":"flickr.stats.getPhotostreamReferrers"},{"_content":"flickr.stats.getPhotostreamStats"},{"_content":"flickr.stats.getPopularPhotos"},{"_content":"flickr.stats.getTotalViews"},{"_content":"flickr.tags.getClusterPhotos"},{"_content":"flickr.tags.getClusters"},{"_content":"flickr.tags.getHotList"},{"_content":"flickr.tags.getListPhoto"},{"_content":"flickr.tags.getListUser"},{"_content":"flickr.tags.getListUserPopular"},{"_content":"flickr.tags.getListUserRaw"},{"_content":"flickr.tags.getMostFrequentlyUsed"},{"_content":"flickr.tags.getRelated"},{"_content":"flickr.test.echo"},{"_content":"flickr.test.login"},{"_content":"flickr.test.null"},{"_content":"flickr.urls.getGroup"},{"_content":"flickr.urls.getUserPhotos"},{"_content":"flickr.urls.getUserProfile"},{"_content":"flickr.urls.lookupGallery"},{"_content":"flickr.urls.lookupGroup"},{"_content":"flickr.urls.lookupUser"}]},"stat":"ok"}'
|
60
|
+
http_version:
|
61
|
+
recorded_at: Sun, 01 Jan 2017 20:04:50 GMT
|
62
|
+
- request:
|
63
|
+
method: post
|
64
|
+
uri: https://api.flickr.com/services/rest/
|
65
|
+
body:
|
66
|
+
encoding: US-ASCII
|
67
|
+
string: sort=interestingness-desc&text=match&page=1&per_page=1&media=photos&content_type=1&extras=url_l&method=flickr.photos.search&format=json&nojsoncallback=1
|
68
|
+
headers:
|
69
|
+
Accept-Encoding:
|
70
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
71
|
+
Accept:
|
72
|
+
- "*/*"
|
73
|
+
User-Agent:
|
74
|
+
- FlickRaw/0.9.9
|
75
|
+
Authorization:
|
76
|
+
- OAuth realm="https://api.flickr.com/services/rest/", oauth_consumer_key="4ac7f2e23e79a5a10962262187632ae5",
|
77
|
+
oauth_nonce="eN2DAMnW9mP7miCjBa%2FB9dNEn%2BDg4Ag7UjfDZWKxQ64%3D", oauth_signature="ddf1383b8044b8cb%26",
|
78
|
+
oauth_signature_method="PLAINTEXT", oauth_timestamp="1483301090", oauth_token="",
|
79
|
+
oauth_version="1.0"
|
80
|
+
Content-Type:
|
81
|
+
- application/x-www-form-urlencoded
|
82
|
+
response:
|
83
|
+
status:
|
84
|
+
code: 200
|
85
|
+
message: OK
|
86
|
+
headers:
|
87
|
+
Date:
|
88
|
+
- Sun, 01 Jan 2017 20:04:52 GMT
|
89
|
+
Content-Type:
|
90
|
+
- application/json
|
91
|
+
Content-Length:
|
92
|
+
- '249'
|
93
|
+
P3p:
|
94
|
+
- policyref="https://policies.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM
|
95
|
+
DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND
|
96
|
+
PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
|
97
|
+
X-Content-Type-Options:
|
98
|
+
- nosniff
|
99
|
+
Cache-Control:
|
100
|
+
- private
|
101
|
+
X-Served-By:
|
102
|
+
- www321.flickr.bf1.yahoo.com
|
103
|
+
X-Frame-Options:
|
104
|
+
- SAMEORIGIN
|
105
|
+
Vary:
|
106
|
+
- Accept-Encoding
|
107
|
+
Age:
|
108
|
+
- '0'
|
109
|
+
Via:
|
110
|
+
- http/1.1 fts111.flickr.bf1.yahoo.com (ApacheTrafficServer [cMsSf ]), http/1.1
|
111
|
+
r04.ycpi.ir2.yahoo.net (ApacheTrafficServer [cMsSf ])
|
112
|
+
Server:
|
113
|
+
- ATS
|
114
|
+
Connection:
|
115
|
+
- keep-alive
|
116
|
+
body:
|
117
|
+
encoding: ASCII-8BIT
|
118
|
+
string: '{"photos":{"page":1,"pages":2709204,"perpage":1,"total":"2709204","photo":[{"id":"11602540176","owner":"42646241@N05","secret":"fe6a452ae8","server":"7324","farm":8,"title":"matches","ispublic":1,"isfriend":0,"isfamily":0,"url_l":"https:\/\/farm8.staticflickr.com\/7324\/11602540176_fe6a452ae8_b.jpg","height_l":"682","width_l":"1024"}]},"stat":"ok"}'
|
119
|
+
http_version:
|
120
|
+
recorded_at: Sun, 01 Jan 2017 20:04:52 GMT
|
121
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,62 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.flickr.com/services/rest/
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: sort=interestingness-desc&text=13371717171717171634517293&page=1&per_page=1&media=photos&content_type=1&extras=url_l&method=flickr.photos.search&format=json&nojsoncallback=1
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- FlickRaw/0.9.9
|
16
|
+
Authorization:
|
17
|
+
- OAuth realm="https://api.flickr.com/services/rest/", oauth_consumer_key="4ac7f2e23e79a5a10962262187632ae5",
|
18
|
+
oauth_nonce="MXE%2B2MeF%2FktivxC91PqLVlbPAhWZaEVEcgUHnZfBI5o%3D", oauth_signature="ddf1383b8044b8cb%26",
|
19
|
+
oauth_signature_method="PLAINTEXT", oauth_timestamp="1483301116", oauth_token="",
|
20
|
+
oauth_version="1.0"
|
21
|
+
Content-Type:
|
22
|
+
- application/x-www-form-urlencoded
|
23
|
+
response:
|
24
|
+
status:
|
25
|
+
code: 200
|
26
|
+
message: OK
|
27
|
+
headers:
|
28
|
+
Date:
|
29
|
+
- Sun, 01 Jan 2017 20:05:17 GMT
|
30
|
+
Content-Type:
|
31
|
+
- application/json
|
32
|
+
Content-Length:
|
33
|
+
- '80'
|
34
|
+
P3p:
|
35
|
+
- policyref="https://policies.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM
|
36
|
+
DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND
|
37
|
+
PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
|
38
|
+
X-Content-Type-Options:
|
39
|
+
- nosniff
|
40
|
+
Cache-Control:
|
41
|
+
- private
|
42
|
+
X-Served-By:
|
43
|
+
- www322.flickr.bf1.yahoo.com
|
44
|
+
X-Frame-Options:
|
45
|
+
- SAMEORIGIN
|
46
|
+
Vary:
|
47
|
+
- Accept-Encoding
|
48
|
+
Age:
|
49
|
+
- '0'
|
50
|
+
Via:
|
51
|
+
- http/1.1 fts115.flickr.bf1.yahoo.com (ApacheTrafficServer [cMsSf ]), http/1.1
|
52
|
+
r03.ycpi.ir2.yahoo.net (ApacheTrafficServer [cMsSf ])
|
53
|
+
Server:
|
54
|
+
- ATS
|
55
|
+
Connection:
|
56
|
+
- keep-alive
|
57
|
+
body:
|
58
|
+
encoding: ASCII-8BIT
|
59
|
+
string: '{"photos":{"page":1,"pages":0,"perpage":1,"total":"0","photo":[]},"stat":"ok"}'
|
60
|
+
http_version:
|
61
|
+
recorded_at: Sun, 01 Jan 2017 20:05:17 GMT
|
62
|
+
recorded_with: VCR 3.0.3
|