purdie 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/.travis.yml +3 -0
- data/config/defaults.yaml +4 -0
- data/features/flickr.feature +20 -0
- data/features/purdie.feature +38 -0
- data/features/soundcloud.feature +10 -10
- data/features/step_definitions/purdie_steps.rb +0 -0
- data/features/support/env.rb +1 -4
- data/features/support/fixtures/vcr/Flickr/Generate_Flickr_YAML.yml +180 -0
- data/features/support/fixtures/vcr/Purdie/Generate_several_YAML.yml +351 -0
- data/features/support/fixtures/vcr/Soundcloud/Generate_SoundCloud_YAML.yml +229 -0
- data/features/support/fixtures/vcr/Soundcloud/Generate_SoundCloud_YAML_for_multiple_tracks.yml +229 -0
- data/features/support/vcr.rb +35 -1
- data/lib/purdie/bernard.rb +12 -2
- data/lib/purdie/cli.rb +1 -2
- data/lib/purdie/services/flickr.rb +53 -0
- data/lib/purdie/services/soundcloud.rb +1 -1
- data/lib/purdie/version.rb +1 -1
- data/lib/purdie.rb +1 -0
- data/purdie.gemspec +2 -0
- data/spec/flickr_spec.rb +44 -0
- data/spec/purdie_spec.rb +3 -3
- data/spec/spec_helper.rb +1 -2
- data/spec/support/vcr_setup.rb +3 -1
- data/spec/vcr/Purdie_Services_Flickr/gets_data_for_a_photo.yml +62 -0
- data/spec/vcr/Purdie_Services_Flickr/refines_data_for_a_photo.yml +180 -0
- metadata +51 -6
- data/features/fixtures/sources/sounds.csv +0 -1
- data/fixtures/config/purdie +0 -2
- data/fixtures/sources/sounds.csv +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 662a5097bf140f416fe206dde2f521f0cc5f6ab3
|
4
|
+
data.tar.gz: e6632d06b4d0589f1ed7c9a38b5c5ee28e407fab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00c492301644b2f65f778049dc75915c28d441a1ee31af58009b764698902bd411807bf3772dd3c627f5ad08d012dd7ed5d2ce9150bb2d8f93f2af4461425d92
|
7
|
+
data.tar.gz: d2569167dbdc6425bdc57409d38a9e289fe99687f1b4647279f71a97016bdf620d760590c79a1be4b0f438304bdaf8cd4d9053e0299d1d9cc3fc2509f6c4f029
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -5,3 +5,6 @@ rvm:
|
|
5
5
|
env:
|
6
6
|
global:
|
7
7
|
- secure: mVOTPzF5AOokBVUmC8rqGb1ZSQc8RnWfarni5fEBzmdoQ1zz++X3V3WSWfB1YebK5UEGOppngu7dgAn5okkcQI+ohBk9yvWv2WMSWGwE3/ZHq2tKxo2TAvHbfS1vPCLFilzaF3D3csf9l89Z0Kyv+wY78un+ZFcS2UwCjL/7uwk=
|
8
|
+
- secure: bXVE1tnIITCwFWvfM/4DiiCzO94dSQTN0IkD+Nul4abqH3FMvWIwiNwBUdePK3NL4LbeIp0LfNeNthQm3kaHAd3WhpYuBWtvwhpF3vcghRoJw9+MzNMDQySC4nYoje0T1wstAl9AYRNz9C1qFBp9Ba9sb2hCnVBFot+fDzLJssc=
|
9
|
+
- secure: I75fAJ21m9c/u+wt9GEjrERg7IKuDQG7JcQAEhN98lIuOY1soxGAoT1UUEB8zDxTvWy25g7JiDKs9zAWRgWT0OmMGvxmNh9z1NMAQ1vG9mqFZ5z/lhShYtC5qlLc/Jh49033BkyvJLKSOO7S1xI4EVTLIobCGtbYd1tsFch+qRA=
|
10
|
+
- secure: NNvc7i398oLi1J2OZQLGd6mW23zWXhBqVZm0HeTnfALpKkpz4n5/Oau9D/NWDQB5nHVhAIliqZBuU1m77p7lKlKq7d/JfdDisRw47z+lf13FZG59cmJhtpTyECuL+W0w2TQAIE/Wgrli348xh88nsNfI6CxgwBCcG6SHhLgtSAY=
|
data/config/defaults.yaml
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
source-dir: _sources
|
2
2
|
output-dir: _data
|
3
|
+
default-title: Raw Funk Maharishi
|
3
4
|
|
4
5
|
soundcloud:
|
5
6
|
host: https://api.soundcloud.com
|
@@ -9,3 +10,6 @@ license-lookups:
|
|
9
10
|
short-name: BY-NC-SA
|
10
11
|
full-name: Attribution-NonCommercial-ShareAlike
|
11
12
|
url: http://creativecommons.org/licenses/by-nc-sa/4.0/
|
13
|
+
|
14
|
+
photographer-lookups:
|
15
|
+
cluttercup: jane
|
@@ -0,0 +1,20 @@
|
|
1
|
+
@vcr
|
2
|
+
Feature: Flickr
|
3
|
+
|
4
|
+
Scenario: Generate Flickr YAML
|
5
|
+
Given a file named "_sources/flickr.csv" with:
|
6
|
+
"""
|
7
|
+
https://www.flickr.com/photos/rawfunkmaharishi/15631479625/,kim
|
8
|
+
"""
|
9
|
+
When I successfully run `purdie fetch`
|
10
|
+
Then a file named "_data/flickr.yaml" should exist
|
11
|
+
And the file "_data/flickr.yaml" should contain:
|
12
|
+
"""
|
13
|
+
- title: The Comedy, October 2014
|
14
|
+
date: '2014-10-22'
|
15
|
+
photo_page: https://www.flickr.com/photos/rawfunkmaharishi/15631479625/
|
16
|
+
photo_url: https://farm4.staticflickr.com/3933/15631479625_b6168ee903_m.jpg
|
17
|
+
license: Attribution-NonCommercial-ShareAlike
|
18
|
+
license_url: https://creativecommons.org/licenses/by-nc-sa/2.0/
|
19
|
+
photographer: kim
|
20
|
+
"""
|
@@ -0,0 +1,38 @@
|
|
1
|
+
@vcr
|
2
|
+
Feature: Purdie
|
3
|
+
|
4
|
+
Scenario: Generate several YAML
|
5
|
+
Given a file named "_sources/sources.csv" with:
|
6
|
+
"""
|
7
|
+
https://soundcloud.com/rawfunkmaharishi/hexaflexagon-1
|
8
|
+
https://www.flickr.com/photos/rawfunkmaharishi/15631479625/,kim
|
9
|
+
https://soundcloud.com/rawfunkmaharishi/junalbandi-3
|
10
|
+
"""
|
11
|
+
When I successfully run `purdie fetch`
|
12
|
+
Then a file named "_data/soundcloud.yaml" should exist
|
13
|
+
And the file "_data/soundcloud.yaml" should contain:
|
14
|
+
"""
|
15
|
+
- title: Hexaflexagon
|
16
|
+
id: 193008299
|
17
|
+
location: Islington Academy
|
18
|
+
date: '2015-02-18'
|
19
|
+
license: Attribution-NonCommercial-ShareAlike
|
20
|
+
license_url: http://creativecommons.org/licenses/by-nc-sa/4.0/
|
21
|
+
- title: Junalbandi
|
22
|
+
id: 193005357
|
23
|
+
location: Islington Academy
|
24
|
+
date: '2015-02-18'
|
25
|
+
license: Attribution-NonCommercial-ShareAlike
|
26
|
+
license_url: http://creativecommons.org/licenses/by-nc-sa/4.0/
|
27
|
+
"""
|
28
|
+
And a file named "_data/flickr.yaml" should exist
|
29
|
+
And the file "_data/flickr.yaml" should contain:
|
30
|
+
"""
|
31
|
+
- title: The Comedy, October 2014
|
32
|
+
date: '2014-10-22'
|
33
|
+
photo_page: https://www.flickr.com/photos/rawfunkmaharishi/15631479625/
|
34
|
+
photo_url: https://farm4.staticflickr.com/3933/15631479625_b6168ee903_m.jpg
|
35
|
+
license: Attribution-NonCommercial-ShareAlike
|
36
|
+
license_url: https://creativecommons.org/licenses/by-nc-sa/2.0/
|
37
|
+
photographer: kim
|
38
|
+
"""
|
data/features/soundcloud.feature
CHANGED
@@ -2,13 +2,13 @@
|
|
2
2
|
Feature: Soundcloud
|
3
3
|
|
4
4
|
Scenario: Generate SoundCloud YAML
|
5
|
-
Given a file named "_sources/
|
5
|
+
Given a file named "_sources/soundcloud.csv" with:
|
6
6
|
"""
|
7
7
|
https://soundcloud.com/rawfunkmaharishi/hexaflexagon-1
|
8
8
|
"""
|
9
|
-
When I successfully run `purdie fetch
|
10
|
-
Then a file named "_data/
|
11
|
-
And the file "_data/
|
9
|
+
When I successfully run `purdie fetch`
|
10
|
+
Then a file named "_data/soundcloud.yaml" should exist
|
11
|
+
And the file "_data/soundcloud.yaml" should contain:
|
12
12
|
"""
|
13
13
|
- title: Hexaflexagon
|
14
14
|
id: 193008299
|
@@ -20,14 +20,14 @@ Feature: Soundcloud
|
|
20
20
|
|
21
21
|
|
22
22
|
Scenario: Generate SoundCloud YAML for multiple tracks
|
23
|
-
Given a file named "_sources/
|
23
|
+
Given a file named "_sources/soundcloud.csv" with:
|
24
24
|
"""
|
25
25
|
https://soundcloud.com/rawfunkmaharishi/hexaflexagon-1
|
26
26
|
https://soundcloud.com/rawfunkmaharishi/junalbandi-3
|
27
27
|
"""
|
28
|
-
When I successfully run `purdie fetch
|
29
|
-
Then a file named "_data/
|
30
|
-
And the file "_data/
|
28
|
+
When I successfully run `purdie fetch`
|
29
|
+
Then a file named "_data/soundcloud.yaml" should exist
|
30
|
+
And the file "_data/soundcloud.yaml" should contain:
|
31
31
|
"""
|
32
32
|
- title: Hexaflexagon
|
33
33
|
id: 193008299
|
@@ -35,8 +35,8 @@ Feature: Soundcloud
|
|
35
35
|
date: '2015-02-18'
|
36
36
|
license: Attribution-NonCommercial-ShareAlike
|
37
37
|
license_url: http://creativecommons.org/licenses/by-nc-sa/4.0/
|
38
|
-
- title:
|
39
|
-
id:
|
38
|
+
- title: Junalbandi
|
39
|
+
id: 193005357
|
40
40
|
location: Islington Academy
|
41
41
|
date: '2015-02-18'
|
42
42
|
license: Attribution-NonCommercial-ShareAlike
|
File without changes
|
data/features/support/env.rb
CHANGED
@@ -1,11 +1,8 @@
|
|
1
1
|
ENV['RACK_ENV'] = 'test'
|
2
2
|
|
3
|
-
require File.join(File.dirname(__FILE__), '..', '..', 'lib/purdie.rb')
|
4
|
-
|
5
3
|
require 'aruba/cucumber'
|
4
|
+
require 'aruba/in_process'
|
6
5
|
require 'rspec'
|
7
6
|
|
8
7
|
require 'coveralls'
|
9
8
|
Coveralls.wear_merged!
|
10
|
-
|
11
|
-
$fixtures = File.join(File.dirname(__FILE__), 'fixtures/')
|
@@ -0,0 +1,180 @@
|
|
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.8
|
16
|
+
Authorization:
|
17
|
+
- OAuth realm="https://api.flickr.com/services/rest/", oauth_consumer_key="<FLICKR_API_KEY>",
|
18
|
+
oauth_nonce="HCu21xn8%2BsCAskIFRx8H6A13e1UpuB8WJ00miJLz6xo%3D", oauth_signature="<FLICKR_SECRET>%26",
|
19
|
+
oauth_signature_method="PLAINTEXT", oauth_timestamp="1425234244", 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 Mar 2015 18:24:05 GMT
|
30
|
+
Content-Type:
|
31
|
+
- application/json
|
32
|
+
Content-Length:
|
33
|
+
- '1428'
|
34
|
+
P3p:
|
35
|
+
- policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV
|
36
|
+
TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY
|
37
|
+
ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
|
38
|
+
Cache-Control:
|
39
|
+
- private
|
40
|
+
X-Served-By:
|
41
|
+
- www249.flickr.bf1.yahoo.com
|
42
|
+
Vary:
|
43
|
+
- Accept-Encoding
|
44
|
+
Age:
|
45
|
+
- '0'
|
46
|
+
Via:
|
47
|
+
- http/1.1 fts124.flickr.bf1.yahoo.com (ApacheTrafficServer/4.0.2 [cMsSf ]),
|
48
|
+
http/1.1 r06.ycpi.ir2.yahoo.net (ApacheTrafficServer [cMsSf ])
|
49
|
+
Server:
|
50
|
+
- ATS
|
51
|
+
Connection:
|
52
|
+
- keep-alive
|
53
|
+
body:
|
54
|
+
encoding: ASCII-8BIT
|
55
|
+
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"}'
|
56
|
+
http_version:
|
57
|
+
recorded_at: Sun, 01 Mar 2015 18:24:05 GMT
|
58
|
+
- request:
|
59
|
+
method: post
|
60
|
+
uri: https://api.flickr.com/services/rest/
|
61
|
+
body:
|
62
|
+
encoding: US-ASCII
|
63
|
+
string: photo_id=15631479625&method=flickr.photos.getInfo&format=json&nojsoncallback=1
|
64
|
+
headers:
|
65
|
+
Accept-Encoding:
|
66
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
67
|
+
Accept:
|
68
|
+
- "*/*"
|
69
|
+
User-Agent:
|
70
|
+
- FlickRaw/0.9.8
|
71
|
+
Authorization:
|
72
|
+
- OAuth realm="https://api.flickr.com/services/rest/", oauth_consumer_key="<FLICKR_API_KEY>",
|
73
|
+
oauth_nonce="da6MQIiP24XCreiBl6csI4rSSdKA%2FKM5ylZaSdFhdy8%3D", oauth_signature="<FLICKR_SECRET>%26",
|
74
|
+
oauth_signature_method="PLAINTEXT", oauth_timestamp="1425234245", oauth_token="",
|
75
|
+
oauth_version="1.0"
|
76
|
+
Content-Type:
|
77
|
+
- application/x-www-form-urlencoded
|
78
|
+
response:
|
79
|
+
status:
|
80
|
+
code: 200
|
81
|
+
message: OK
|
82
|
+
headers:
|
83
|
+
Date:
|
84
|
+
- Sun, 01 Mar 2015 18:24:05 GMT
|
85
|
+
Content-Type:
|
86
|
+
- application/json
|
87
|
+
Content-Length:
|
88
|
+
- '665'
|
89
|
+
P3p:
|
90
|
+
- policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV
|
91
|
+
TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY
|
92
|
+
ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
|
93
|
+
Cache-Control:
|
94
|
+
- private
|
95
|
+
X-Served-By:
|
96
|
+
- www266.flickr.bf1.yahoo.com
|
97
|
+
Vary:
|
98
|
+
- Accept-Encoding
|
99
|
+
Age:
|
100
|
+
- '2'
|
101
|
+
Via:
|
102
|
+
- http/1.1 fts107.flickr.bf1.yahoo.com (ApacheTrafficServer/4.0.2 [cMsSf ]),
|
103
|
+
http/1.1 r18.ycpi.ams.yahoo.net (ApacheTrafficServer [cMsSf ])
|
104
|
+
Server:
|
105
|
+
- ATS
|
106
|
+
Connection:
|
107
|
+
- keep-alive
|
108
|
+
body:
|
109
|
+
encoding: ASCII-8BIT
|
110
|
+
string: '{"photo":{"id":"15631479625","secret":"b6168ee903","server":"3933","farm":4,"dateuploaded":"1414326010","isfavorite":0,"license":"1","safety_level":"0","rotation":0,"originalsecret":"3191340cdb","originalformat":"jpg","owner":{"nsid":"128943844@N06","username":"rawfunkmaharishi","realname":"Raw
|
111
|
+
Funk Maharishi","location":"","iconserver":"3933","iconfarm":4,"path_alias":"rawfunkmaharishi"},"title":{"_content":"The
|
112
|
+
Comedy, October 2014"},"description":{"_content":""},"visibility":{"ispublic":1,"isfriend":0,"isfamily":0},"dates":{"posted":"1414326010","taken":"2014-10-22
|
113
|
+
15:54:24","takengranularity":"0","takenunknown":"0","lastupdate":"1416111853"},"views":"91","editability":{"cancomment":0,"canaddmeta":0},"publiceditability":{"cancomment":1,"canaddmeta":0},"usage":{"candownload":1,"canblog":0,"canprint":0,"canshare":1},"comments":{"_content":"0"},"notes":{"note":[]},"people":{"haspeople":0},"tags":{"tag":[{"id":"128898522-15631479625-1422028","author":"128943844@N06","authorname":"rawfunkmaharishi","raw":"the
|
114
|
+
comedy","_content":"thecomedy","machine_tag":0},{"id":"128898522-15631479625-17975","author":"128943844@N06","authorname":"rawfunkmaharishi","raw":"gigs","_content":"gigs","machine_tag":0},{"id":"128898522-15631479625-228989594","author":"128943844@N06","authorname":"rawfunkmaharishi","raw":"photographer:kim","_content":"photographerkim","machine_tag":0}]},"urls":{"url":[{"type":"photopage","_content":"https:\/\/www.flickr.com\/photos\/rawfunkmaharishi\/15631479625\/"}]},"media":"photo"},"stat":"ok"}'
|
115
|
+
http_version:
|
116
|
+
recorded_at: Sun, 01 Mar 2015 18:24:06 GMT
|
117
|
+
- request:
|
118
|
+
method: post
|
119
|
+
uri: https://api.flickr.com/services/rest/
|
120
|
+
body:
|
121
|
+
encoding: US-ASCII
|
122
|
+
string: method=flickr.photos.licenses.getInfo&format=json&nojsoncallback=1
|
123
|
+
headers:
|
124
|
+
Accept-Encoding:
|
125
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
126
|
+
Accept:
|
127
|
+
- "*/*"
|
128
|
+
User-Agent:
|
129
|
+
- FlickRaw/0.9.8
|
130
|
+
Authorization:
|
131
|
+
- OAuth realm="https://api.flickr.com/services/rest/", oauth_consumer_key="<FLICKR_API_KEY>",
|
132
|
+
oauth_nonce="guc8ZKLo7l42%2F3XktiD2FyinsH6hOzQHv%2FgXQtUg8dM%3D", oauth_signature="<FLICKR_SECRET>%26",
|
133
|
+
oauth_signature_method="PLAINTEXT", oauth_timestamp="1425234246", oauth_token="",
|
134
|
+
oauth_version="1.0"
|
135
|
+
Content-Type:
|
136
|
+
- application/x-www-form-urlencoded
|
137
|
+
response:
|
138
|
+
status:
|
139
|
+
code: 200
|
140
|
+
message: OK
|
141
|
+
headers:
|
142
|
+
Date:
|
143
|
+
- Sun, 01 Mar 2015 18:24:06 GMT
|
144
|
+
Content-Type:
|
145
|
+
- application/json
|
146
|
+
Content-Length:
|
147
|
+
- '314'
|
148
|
+
P3p:
|
149
|
+
- policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV
|
150
|
+
TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY
|
151
|
+
ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
|
152
|
+
Cache-Control:
|
153
|
+
- private
|
154
|
+
X-Served-By:
|
155
|
+
- www19.flickr.bf1.yahoo.com
|
156
|
+
Vary:
|
157
|
+
- Accept-Encoding
|
158
|
+
Age:
|
159
|
+
- '0'
|
160
|
+
Via:
|
161
|
+
- http/1.1 fts111.flickr.bf1.yahoo.com (ApacheTrafficServer/4.0.2 [cMsSf ]),
|
162
|
+
http/1.1 r05.ycpi.ams.yahoo.net (ApacheTrafficServer [cMsSf ])
|
163
|
+
Server:
|
164
|
+
- ATS
|
165
|
+
Connection:
|
166
|
+
- keep-alive
|
167
|
+
body:
|
168
|
+
encoding: ASCII-8BIT
|
169
|
+
string: '{"licenses":{"license":[{"id":"0","name":"All Rights Reserved","url":""},{"id":"4","name":"Attribution
|
170
|
+
License","url":"https:\/\/creativecommons.org\/licenses\/by\/2.0\/"},{"id":"6","name":"Attribution-NoDerivs
|
171
|
+
License","url":"https:\/\/creativecommons.org\/licenses\/by-nd\/2.0\/"},{"id":"3","name":"Attribution-NonCommercial-NoDerivs
|
172
|
+
License","url":"https:\/\/creativecommons.org\/licenses\/by-nc-nd\/2.0\/"},{"id":"2","name":"Attribution-NonCommercial
|
173
|
+
License","url":"https:\/\/creativecommons.org\/licenses\/by-nc\/2.0\/"},{"id":"1","name":"Attribution-NonCommercial-ShareAlike
|
174
|
+
License","url":"https:\/\/creativecommons.org\/licenses\/by-nc-sa\/2.0\/"},{"id":"5","name":"Attribution-ShareAlike
|
175
|
+
License","url":"https:\/\/creativecommons.org\/licenses\/by-sa\/2.0\/"},{"id":"7","name":"No
|
176
|
+
known copyright restrictions","url":"https:\/\/www.flickr.com\/commons\/usage\/"},{"id":"8","name":"United
|
177
|
+
States Government Work","url":"http:\/\/www.usa.gov\/copyright.shtml"}]},"stat":"ok"}'
|
178
|
+
http_version:
|
179
|
+
recorded_at: Sun, 01 Mar 2015 18:24:06 GMT
|
180
|
+
recorded_with: VCR 2.9.3
|