kuva 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.coveralls.yml +1 -0
- data/.env.example +4 -0
- data/.gitignore +13 -0
- data/.rspec +1 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/.travis.yml +12 -0
- data/Gemfile +26 -0
- data/Gemfile.lock +187 -0
- data/MIT-LICENSE +20 -0
- data/README.md +129 -0
- data/Rakefile +14 -0
- data/app/assets/images/kuva/.keep +0 -0
- data/app/assets/javascripts/kuva/application.js +13 -0
- data/app/assets/javascripts/kuva/jquery-2.1.0.min.js +4 -0
- data/app/assets/javascripts/kuva/jquery.justified_gallery.min.js +7 -0
- data/app/assets/javascripts/kuva/kuva.js.coffee +2 -0
- data/app/assets/stylesheets/kuva/application.css +13 -0
- data/app/assets/stylesheets/kuva/justified_gallery.min.css +7 -0
- data/app/assets/stylesheets/kuva/kuva.css.sass +42 -0
- data/app/controllers/kuva/application_controller.rb +17 -0
- data/app/controllers/kuva/photos_controller.rb +10 -0
- data/app/controllers/kuva/sets_controller.rb +24 -0
- data/app/helpers/kuva/application_helper.rb +31 -0
- data/app/views/kuva/photos/show.html.haml +6 -0
- data/app/views/kuva/sets/index.html.haml +8 -0
- data/app/views/kuva/sets/show.html.haml +8 -0
- data/app/views/layouts/kuva/application.html.haml +10 -0
- data/config/locales/cli.yml +8 -0
- data/config/locales/frontend.yml +4 -0
- data/config/routes.rb +9 -0
- data/kuva.gemspec +25 -0
- data/lib/generators/kuva/install_generator.rb +20 -0
- data/lib/generators/kuva/templates/kuva.rb +34 -0
- data/lib/generators/kuva/views_generator.rb +23 -0
- data/lib/kuva.rb +23 -0
- data/lib/kuva/authorizer.rb +50 -0
- data/lib/kuva/elements/photo.rb +41 -0
- data/lib/kuva/elements/photoset.rb +49 -0
- data/lib/kuva/elements/photoset_collection.rb +25 -0
- data/lib/kuva/elements/url_info.rb +6 -0
- data/lib/kuva/engine.rb +9 -0
- data/lib/kuva/version.rb +3 -0
- data/lib/tasks/kuva_task.rake +6 -0
- data/spec/controllers/kuva/application_controller_spec.rb +42 -0
- data/spec/controllers/kuva/photos_controller_spec.rb +22 -0
- data/spec/controllers/kuva/sets_controller_spec.rb +51 -0
- data/spec/dummy/README.md +1 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/images/.keep +0 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/controllers/concerns/.keep +0 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/mailers/.keep +0 -0
- data/spec/dummy/app/models/.keep +0 -0
- data/spec/dummy/app/models/concerns/.keep +0 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +30 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +29 -0
- data/spec/dummy/config/environments/production.rb +80 -0
- data/spec/dummy/config/environments/test.rb +39 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/kuva.rb +29 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +12 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +4 -0
- data/spec/dummy/lib/assets/.keep +0 -0
- data/spec/dummy/log/.keep +0 -0
- data/spec/dummy/public/404.html +58 -0
- data/spec/dummy/public/422.html +58 -0
- data/spec/dummy/public/500.html +57 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/features/photo_spec.rb +40 -0
- data/spec/features/photoset_collection_spec.rb +25 -0
- data/spec/features/photoset_spec.rb +42 -0
- data/spec/generators/kuva/install_generator_spec.rb +30 -0
- data/spec/generators/kuva/views_generator_spec.rb +37 -0
- data/spec/helpers/kuva/application_helper_spec.rb +26 -0
- data/spec/kuva/authorizer_spec.rb +83 -0
- data/spec/kuva/elements/photo_spec.rb +76 -0
- data/spec/kuva/elements/photoset_collection_spec.rb +42 -0
- data/spec/kuva/elements/photoset_spec.rb +106 -0
- data/spec/kuva/elements/url_info_spec.rb +25 -0
- data/spec/kuva_spec.rb +81 -0
- data/spec/spec_helper.rb +68 -0
- data/spec/support/vcr/cassettes/Kuva_ApplicationController/configuring_Kuva/sets_the_API_key.yml +160 -0
- data/spec/support/vcr/cassettes/Kuva_ApplicationController/configuring_Kuva/sets_the_access_secret.yml +160 -0
- data/spec/support/vcr/cassettes/Kuva_ApplicationController/configuring_Kuva/sets_the_access_token.yml +160 -0
- data/spec/support/vcr/cassettes/Kuva_ApplicationHelper/_breadcrumbs_for/when_the_current_page_is_NOT_the_set_page/creates_a_breadcrumb_with_the_set_URL.yml +65 -0
- data/spec/support/vcr/cassettes/Kuva_ApplicationHelper/_breadcrumbs_for/when_the_current_page_is_the_set_page/creates_a_breadcrumb_without_the_set_URL.yml +222 -0
- data/spec/support/vcr/cassettes/Kuva_Elements_Photo/_find/fetches_the_photo_from_Flickr_specified_by_id.yml +95 -0
- data/spec/support/vcr/cassettes/Kuva_Elements_Photo/_find/instantiates_a_new_Kuva_Elements_Photo_object.yml +252 -0
- data/spec/support/vcr/cassettes/Kuva_Elements_Photo/_initialize/does_NOT_set_the_is_primary_boolean.yml +252 -0
- data/spec/support/vcr/cassettes/Kuva_Elements_Photo/_initialize/returns_itself.yml +95 -0
- data/spec/support/vcr/cassettes/Kuva_Elements_Photo/_initialize/saves_a_reference_to_the_description.yml +95 -0
- data/spec/support/vcr/cassettes/Kuva_Elements_Photo/_initialize/saves_a_reference_to_the_farm.yml +95 -0
- data/spec/support/vcr/cassettes/Kuva_Elements_Photo/_initialize/saves_a_reference_to_the_id.yml +95 -0
- data/spec/support/vcr/cassettes/Kuva_Elements_Photo/_initialize/saves_a_reference_to_the_secret.yml +95 -0
- data/spec/support/vcr/cassettes/Kuva_Elements_Photo/_initialize/saves_a_reference_to_the_server.yml +252 -0
- data/spec/support/vcr/cassettes/Kuva_Elements_Photo/_initialize/saves_a_reference_to_the_title.yml +95 -0
- data/spec/support/vcr/cassettes/Kuva_Elements_Photo/image_URLs/generates_an_image_URL_for_a_default_sized_medium_image.yml +95 -0
- data/spec/support/vcr/cassettes/Kuva_Elements_Photo/image_URLs/generates_an_image_URL_for_a_n-sized_small_320_image.yml +252 -0
- data/spec/support/vcr/cassettes/Kuva_Elements_Photo/image_URLs/instantiates_a_new_URL_info_object_to_create_image_URLs.yml +95 -0
- data/spec/support/vcr/cassettes/Kuva_Elements_Photoset/_find/fetches_the_photoset_from_Flickr_specified_by_id.yml +65 -0
- data/spec/support/vcr/cassettes/Kuva_Elements_Photoset/_find/instantiates_a_new_Kuva_Elements_Photoset_object.yml +65 -0
- data/spec/support/vcr/cassettes/Kuva_Elements_Photoset/_image_url/generates_an_image_URL_for_a_large_square_image.yml +65 -0
- data/spec/support/vcr/cassettes/Kuva_Elements_Photoset/_image_url/instantiates_a_new_URL_info_object_to_create_an_image_URL.yml +222 -0
- data/spec/support/vcr/cassettes/Kuva_Elements_Photoset/_initialize/returns_itself.yml +65 -0
- data/spec/support/vcr/cassettes/Kuva_Elements_Photoset/_initialize/saves_a_reference_to_the_created_at_date.yml +65 -0
- data/spec/support/vcr/cassettes/Kuva_Elements_Photoset/_initialize/saves_a_reference_to_the_description.yml +65 -0
- data/spec/support/vcr/cassettes/Kuva_Elements_Photoset/_initialize/saves_a_reference_to_the_farm.yml +65 -0
- data/spec/support/vcr/cassettes/Kuva_Elements_Photoset/_initialize/saves_a_reference_to_the_id.yml +65 -0
- data/spec/support/vcr/cassettes/Kuva_Elements_Photoset/_initialize/saves_a_reference_to_the_number_of_photos.yml +65 -0
- data/spec/support/vcr/cassettes/Kuva_Elements_Photoset/_initialize/saves_a_reference_to_the_number_of_views.yml +65 -0
- data/spec/support/vcr/cassettes/Kuva_Elements_Photoset/_initialize/saves_a_reference_to_the_primary_id.yml +222 -0
- data/spec/support/vcr/cassettes/Kuva_Elements_Photoset/_initialize/saves_a_reference_to_the_secret.yml +65 -0
- data/spec/support/vcr/cassettes/Kuva_Elements_Photoset/_initialize/saves_a_reference_to_the_server.yml +65 -0
- data/spec/support/vcr/cassettes/Kuva_Elements_Photoset/_initialize/saves_a_reference_to_the_title.yml +222 -0
- data/spec/support/vcr/cassettes/Kuva_Elements_Photoset/_initialize/saves_a_reference_to_the_updated_at_date.yml +65 -0
- data/spec/support/vcr/cassettes/Kuva_Elements_Photoset/_with_photos/returns_an_array.yml +162 -0
- data/spec/support/vcr/cassettes/Kuva_Elements_Photoset/_with_photos/returns_an_array_with_the_size_specified_by_number_of_photos.yml +162 -0
- data/spec/support/vcr/cassettes/Kuva_Elements_Photoset/_with_photos/wraps_the_photos_into_a_Kuva_Elements_Photo_element.yml +319 -0
- data/spec/support/vcr/cassettes/Kuva_Elements_PhotosetCollection/_photosets/retrieves_all_photosets.yml +2761 -0
- data/spec/support/vcr/cassettes/Kuva_Elements_PhotosetCollection/_photosets/returns_an_array.yml +2918 -0
- data/spec/support/vcr/cassettes/Kuva_Elements_PhotosetCollection/_photosets/wraps_the_photosets_into_a_Kuva_Elements_Photoset_element.yml +2761 -0
- data/spec/support/vcr/cassettes/Kuva_Elements_PhotosetCollection/_retrieve/fetches_all_photosets_from_Flickr.yml +2918 -0
- data/spec/support/vcr/cassettes/Kuva_Elements_PhotosetCollection/_retrieve/instantiates_a_new_Kuva_Elements_PhotosetCollection_object.yml +2761 -0
- data/spec/support/vcr/cassettes/Kuva_PhotosController/_show/assigns_the_photo.yml +314 -0
- data/spec/support/vcr/cassettes/Kuva_PhotosController/_show/finds_the_photo.yml +157 -0
- data/spec/support/vcr/cassettes/Kuva_SetsController/_index/assigns_the_photoset_collection_with_photosets.yml +2761 -0
- data/spec/support/vcr/cassettes/Kuva_SetsController/_index/knows_its_type.yml +2918 -0
- data/spec/support/vcr/cassettes/Kuva_SetsController/_index/retrieves_the_entire_photoset_collection.yml +160 -0
- data/spec/support/vcr/cassettes/Kuva_SetsController/_show/assigns_the_photos_of_the_specified_photoset.yml +2858 -0
- data/spec/support/vcr/cassettes/Kuva_SetsController/_show/finds_the_specified_photoset_within_the_entire_photoset_collection.yml +2858 -0
- data/spec/support/vcr/cassettes/Kuva_SetsController/_show/knows_its_type.yml +2858 -0
- data/spec/support/vcr/cassettes/photo/navigating_back_to_the_photoset_page.yml +3169 -0
- data/spec/support/vcr/cassettes/photo/viewing_the_first_photo_of_the_photoset.yml +157 -0
- data/spec/support/vcr/cassettes/photoset/navigating_back_to_the_photoset_collection_page.yml +5616 -0
- data/spec/support/vcr/cassettes/photoset/navigating_to_the_page_with_details_of_the_first_photo.yml +3012 -0
- data/spec/support/vcr/cassettes/photoset/viewing_the_first_photo_of_the_photoset.yml +314 -0
- data/spec/support/vcr/cassettes/photoset/viewing_the_first_photoset_of_the_photoset_collection.yml +3015 -0
- data/spec/support/vcr/cassettes/photoset_collection/navigating_to_the_page_with_photos_of_the_first_photoset.yml +5616 -0
- data/spec/support/vcr/cassettes/photoset_collection/viewing_the_photoset_collection.yml +2761 -0
- data/spec/support/vcr/vcr.rb +17 -0
- metadata +398 -0
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
require "simplecov"
|
2
|
+
require "coveralls"
|
3
|
+
|
4
|
+
SimpleCov.formatter = Coveralls::SimpleCov::Formatter
|
5
|
+
SimpleCov.start do
|
6
|
+
add_filter "/spec"
|
7
|
+
end
|
8
|
+
|
9
|
+
# This file is copied to spec/ when you run "rails generate rspec:install"
|
10
|
+
ENV["RAILS_ENV"] ||= "test"
|
11
|
+
require File.expand_path("../dummy/config/environment", __FILE__) if Dir.exists?("spec/dummy")
|
12
|
+
require "rspec/rails"
|
13
|
+
require "rspec/autorun"
|
14
|
+
require "capybara/rails"
|
15
|
+
|
16
|
+
# Requires supporting ruby files with custom matchers and macros, etc,
|
17
|
+
# in spec/support/ and its subdirectories.
|
18
|
+
ENGINE_RAILS_ROOT = File.join File.dirname(__FILE__), "../"
|
19
|
+
Dir[File.join(ENGINE_RAILS_ROOT, "spec/support/**/*.rb")].each { |file| require file }
|
20
|
+
|
21
|
+
# Checks for pending migrations before tests are run.
|
22
|
+
# If you are not using ActiveRecord, you can remove this line.
|
23
|
+
ActiveRecord::Migration.check_pending! if defined?(ActiveRecord::Migration)
|
24
|
+
|
25
|
+
RSpec.configure do |config|
|
26
|
+
|
27
|
+
# setup the flickr configuration for the specs
|
28
|
+
config.before do
|
29
|
+
FlickRaw.api_key = Kuva.api_key = ENV["KUVA_API_KEY"]
|
30
|
+
FlickRaw.shared_secret = Kuva.shared_secret = ENV["KUVA_SHARED_SECRET"]
|
31
|
+
flickr.access_token = Kuva.access_token = ENV["KUVA_ACCESS_TOKEN"]
|
32
|
+
flickr.access_secret = Kuva.access_secret = ENV["KUVA_ACCESS_SECRET"]
|
33
|
+
end
|
34
|
+
|
35
|
+
# instead of specifying ":vcr => true", we can specify just ":vcr"
|
36
|
+
config.treat_symbols_as_metadata_keys_with_true_values = true
|
37
|
+
|
38
|
+
# ## Mock Framework
|
39
|
+
#
|
40
|
+
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
|
41
|
+
#
|
42
|
+
# config.mock_with :mocha
|
43
|
+
# config.mock_with :flexmock
|
44
|
+
# config.mock_with :rr
|
45
|
+
|
46
|
+
config.expect_with :rspec do |config|
|
47
|
+
config.syntax = :expect
|
48
|
+
end
|
49
|
+
|
50
|
+
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
51
|
+
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
52
|
+
|
53
|
+
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
54
|
+
# examples within a transaction, remove the following line or assign false
|
55
|
+
# instead of true.
|
56
|
+
config.use_transactional_fixtures = true
|
57
|
+
|
58
|
+
# If true, the base class of anonymous controllers will be inferred
|
59
|
+
# automatically. This will be the default behavior in future versions of
|
60
|
+
# rspec-rails.
|
61
|
+
config.infer_base_class_for_anonymous_controllers = false
|
62
|
+
|
63
|
+
# Run specs in random order to surface order dependencies. If you find an
|
64
|
+
# order dependency and want to debug it, you can fix the order by providing
|
65
|
+
# the seed, which is printed after each run.
|
66
|
+
# --seed 1234
|
67
|
+
config.order = "random"
|
68
|
+
end
|
data/spec/support/vcr/cassettes/Kuva_ApplicationController/configuring_Kuva/sets_the_API_key.yml
ADDED
@@ -0,0 +1,160 @@
|
|
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="<KUVA_API_KEY>",
|
18
|
+
oauth_nonce="z0BwXVs9qegd7x1tGIOekNSTVqcpnU7Z9n571%2FSFKpw%3D", oauth_signature="<KUVA_SHARED_SECRET>%26",
|
19
|
+
oauth_signature_method="PLAINTEXT", oauth_timestamp="1397347652", 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, 13 Apr 2014 00:07:32 GMT
|
30
|
+
P3p:
|
31
|
+
- policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV
|
32
|
+
TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY
|
33
|
+
ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
|
34
|
+
Cache-Control:
|
35
|
+
- private
|
36
|
+
X-Served-By:
|
37
|
+
- www81.flickr.bf1.yahoo.com
|
38
|
+
Vary:
|
39
|
+
- Accept-Encoding
|
40
|
+
Content-Length:
|
41
|
+
- '1432'
|
42
|
+
Content-Type:
|
43
|
+
- application/json
|
44
|
+
Age:
|
45
|
+
- '3'
|
46
|
+
Via:
|
47
|
+
- http/1.1 fts120.flickr.bf1.yahoo.com (ApacheTrafficServer/4.0.2 [cMsSf ]),
|
48
|
+
http/1.1 r18.ycpi.ir2.yahoo.net (ApacheTrafficServer/4.0.2 [cMsSf ])
|
49
|
+
Server:
|
50
|
+
- ATS
|
51
|
+
Connection:
|
52
|
+
- keep-alive
|
53
|
+
body:
|
54
|
+
encoding: UTF-8
|
55
|
+
string: '{"methods":{"method":[{"_content":"flickr.activity.userComments"},
|
56
|
+
{"_content":"flickr.activity.userPhotos"}, {"_content":"flickr.auth.checkToken"},
|
57
|
+
{"_content":"flickr.auth.getFrob"}, {"_content":"flickr.auth.getFullToken"},
|
58
|
+
{"_content":"flickr.auth.getToken"}, {"_content":"flickr.auth.oauth.checkToken"},
|
59
|
+
{"_content":"flickr.auth.oauth.getAccessToken"}, {"_content":"flickr.blogs.getList"},
|
60
|
+
{"_content":"flickr.blogs.getServices"}, {"_content":"flickr.blogs.postPhoto"},
|
61
|
+
{"_content":"flickr.cameras.getBrandModels"}, {"_content":"flickr.cameras.getBrands"},
|
62
|
+
{"_content":"flickr.collections.getInfo"}, {"_content":"flickr.collections.getTree"},
|
63
|
+
{"_content":"flickr.commons.getInstitutions"}, {"_content":"flickr.contacts.getList"},
|
64
|
+
{"_content":"flickr.contacts.getListRecentlyUploaded"}, {"_content":"flickr.contacts.getPublicList"},
|
65
|
+
{"_content":"flickr.contacts.getTaggingSuggestions"}, {"_content":"flickr.favorites.add"},
|
66
|
+
{"_content":"flickr.favorites.getContext"}, {"_content":"flickr.favorites.getList"},
|
67
|
+
{"_content":"flickr.favorites.getPublicList"}, {"_content":"flickr.favorites.remove"},
|
68
|
+
{"_content":"flickr.galleries.addPhoto"}, {"_content":"flickr.galleries.create"},
|
69
|
+
{"_content":"flickr.galleries.editMeta"}, {"_content":"flickr.galleries.editPhoto"},
|
70
|
+
{"_content":"flickr.galleries.editPhotos"}, {"_content":"flickr.galleries.getInfo"},
|
71
|
+
{"_content":"flickr.galleries.getList"}, {"_content":"flickr.galleries.getListForPhoto"},
|
72
|
+
{"_content":"flickr.galleries.getPhotos"}, {"_content":"flickr.groups.browse"},
|
73
|
+
{"_content":"flickr.groups.discuss.replies.add"}, {"_content":"flickr.groups.discuss.replies.delete"},
|
74
|
+
{"_content":"flickr.groups.discuss.replies.edit"}, {"_content":"flickr.groups.discuss.replies.getInfo"},
|
75
|
+
{"_content":"flickr.groups.discuss.replies.getList"}, {"_content":"flickr.groups.discuss.topics.add"},
|
76
|
+
{"_content":"flickr.groups.discuss.topics.getInfo"}, {"_content":"flickr.groups.discuss.topics.getList"},
|
77
|
+
{"_content":"flickr.groups.getInfo"}, {"_content":"flickr.groups.join"}, {"_content":"flickr.groups.joinRequest"},
|
78
|
+
{"_content":"flickr.groups.leave"}, {"_content":"flickr.groups.members.getList"},
|
79
|
+
{"_content":"flickr.groups.pools.add"}, {"_content":"flickr.groups.pools.getContext"},
|
80
|
+
{"_content":"flickr.groups.pools.getGroups"}, {"_content":"flickr.groups.pools.getPhotos"},
|
81
|
+
{"_content":"flickr.groups.pools.remove"}, {"_content":"flickr.groups.search"},
|
82
|
+
{"_content":"flickr.interestingness.getList"}, {"_content":"flickr.machinetags.getNamespaces"},
|
83
|
+
{"_content":"flickr.machinetags.getPairs"}, {"_content":"flickr.machinetags.getPredicates"},
|
84
|
+
{"_content":"flickr.machinetags.getRecentValues"}, {"_content":"flickr.machinetags.getValues"},
|
85
|
+
{"_content":"flickr.panda.getList"}, {"_content":"flickr.panda.getPhotos"},
|
86
|
+
{"_content":"flickr.people.findByEmail"}, {"_content":"flickr.people.findByUsername"},
|
87
|
+
{"_content":"flickr.people.getGroups"}, {"_content":"flickr.people.getInfo"},
|
88
|
+
{"_content":"flickr.people.getLimits"}, {"_content":"flickr.people.getPhotos"},
|
89
|
+
{"_content":"flickr.people.getPhotosOf"}, {"_content":"flickr.people.getPublicGroups"},
|
90
|
+
{"_content":"flickr.people.getPublicPhotos"}, {"_content":"flickr.people.getUploadStatus"},
|
91
|
+
{"_content":"flickr.photos.addTags"}, {"_content":"flickr.photos.comments.addComment"},
|
92
|
+
{"_content":"flickr.photos.comments.deleteComment"}, {"_content":"flickr.photos.comments.editComment"},
|
93
|
+
{"_content":"flickr.photos.comments.getList"}, {"_content":"flickr.photos.comments.getRecentForContacts"},
|
94
|
+
{"_content":"flickr.photos.delete"}, {"_content":"flickr.photos.geo.batchCorrectLocation"},
|
95
|
+
{"_content":"flickr.photos.geo.correctLocation"}, {"_content":"flickr.photos.geo.getLocation"},
|
96
|
+
{"_content":"flickr.photos.geo.getPerms"}, {"_content":"flickr.photos.geo.photosForLocation"},
|
97
|
+
{"_content":"flickr.photos.geo.removeLocation"}, {"_content":"flickr.photos.geo.setContext"},
|
98
|
+
{"_content":"flickr.photos.geo.setLocation"}, {"_content":"flickr.photos.geo.setPerms"},
|
99
|
+
{"_content":"flickr.photos.getAllContexts"}, {"_content":"flickr.photos.getContactsPhotos"},
|
100
|
+
{"_content":"flickr.photos.getContactsPublicPhotos"}, {"_content":"flickr.photos.getContext"},
|
101
|
+
{"_content":"flickr.photos.getCounts"}, {"_content":"flickr.photos.getExif"},
|
102
|
+
{"_content":"flickr.photos.getFavorites"}, {"_content":"flickr.photos.getInfo"},
|
103
|
+
{"_content":"flickr.photos.getNotInSet"}, {"_content":"flickr.photos.getPerms"},
|
104
|
+
{"_content":"flickr.photos.getRecent"}, {"_content":"flickr.photos.getSizes"},
|
105
|
+
{"_content":"flickr.photos.getUntagged"}, {"_content":"flickr.photos.getWithGeoData"},
|
106
|
+
{"_content":"flickr.photos.getWithoutGeoData"}, {"_content":"flickr.photos.licenses.getInfo"},
|
107
|
+
{"_content":"flickr.photos.licenses.setLicense"}, {"_content":"flickr.photos.notes.add"},
|
108
|
+
{"_content":"flickr.photos.notes.delete"}, {"_content":"flickr.photos.notes.edit"},
|
109
|
+
{"_content":"flickr.photos.people.add"}, {"_content":"flickr.photos.people.delete"},
|
110
|
+
{"_content":"flickr.photos.people.deleteCoords"}, {"_content":"flickr.photos.people.editCoords"},
|
111
|
+
{"_content":"flickr.photos.people.getList"}, {"_content":"flickr.photos.recentlyUpdated"},
|
112
|
+
{"_content":"flickr.photos.removeTag"}, {"_content":"flickr.photos.search"},
|
113
|
+
{"_content":"flickr.photos.setContentType"}, {"_content":"flickr.photos.setDates"},
|
114
|
+
{"_content":"flickr.photos.setMeta"}, {"_content":"flickr.photos.setPerms"},
|
115
|
+
{"_content":"flickr.photos.setSafetyLevel"}, {"_content":"flickr.photos.setTags"},
|
116
|
+
{"_content":"flickr.photos.suggestions.approveSuggestion"}, {"_content":"flickr.photos.suggestions.getList"},
|
117
|
+
{"_content":"flickr.photos.suggestions.rejectSuggestion"}, {"_content":"flickr.photos.suggestions.removeSuggestion"},
|
118
|
+
{"_content":"flickr.photos.suggestions.suggestLocation"}, {"_content":"flickr.photos.transform.rotate"},
|
119
|
+
{"_content":"flickr.photos.upload.checkTickets"}, {"_content":"flickr.photosets.addPhoto"},
|
120
|
+
{"_content":"flickr.photosets.comments.addComment"}, {"_content":"flickr.photosets.comments.deleteComment"},
|
121
|
+
{"_content":"flickr.photosets.comments.editComment"}, {"_content":"flickr.photosets.comments.getList"},
|
122
|
+
{"_content":"flickr.photosets.create"}, {"_content":"flickr.photosets.delete"},
|
123
|
+
{"_content":"flickr.photosets.editMeta"}, {"_content":"flickr.photosets.editPhotos"},
|
124
|
+
{"_content":"flickr.photosets.getContext"}, {"_content":"flickr.photosets.getInfo"},
|
125
|
+
{"_content":"flickr.photosets.getList"}, {"_content":"flickr.photosets.getPhotos"},
|
126
|
+
{"_content":"flickr.photosets.orderSets"}, {"_content":"flickr.photosets.removePhoto"},
|
127
|
+
{"_content":"flickr.photosets.removePhotos"}, {"_content":"flickr.photosets.reorderPhotos"},
|
128
|
+
{"_content":"flickr.photosets.setPrimaryPhoto"}, {"_content":"flickr.places.find"},
|
129
|
+
{"_content":"flickr.places.findByLatLon"}, {"_content":"flickr.places.getChildrenWithPhotosPublic"},
|
130
|
+
{"_content":"flickr.places.getInfo"}, {"_content":"flickr.places.getInfoByUrl"},
|
131
|
+
{"_content":"flickr.places.getPlaceTypes"}, {"_content":"flickr.places.getShapeHistory"},
|
132
|
+
{"_content":"flickr.places.getTopPlacesList"}, {"_content":"flickr.places.placesForBoundingBox"},
|
133
|
+
{"_content":"flickr.places.placesForContacts"}, {"_content":"flickr.places.placesForTags"},
|
134
|
+
{"_content":"flickr.places.placesForUser"}, {"_content":"flickr.places.resolvePlaceId"},
|
135
|
+
{"_content":"flickr.places.resolvePlaceURL"}, {"_content":"flickr.places.tagsForPlace"},
|
136
|
+
{"_content":"flickr.prefs.getContentType"}, {"_content":"flickr.prefs.getGeoPerms"},
|
137
|
+
{"_content":"flickr.prefs.getHidden"}, {"_content":"flickr.prefs.getPrivacy"},
|
138
|
+
{"_content":"flickr.prefs.getSafetyLevel"}, {"_content":"flickr.push.getSubscriptions"},
|
139
|
+
{"_content":"flickr.push.getTopics"}, {"_content":"flickr.push.subscribe"},
|
140
|
+
{"_content":"flickr.push.unsubscribe"}, {"_content":"flickr.reflection.getMethodInfo"},
|
141
|
+
{"_content":"flickr.reflection.getMethods"}, {"_content":"flickr.stats.getCollectionDomains"},
|
142
|
+
{"_content":"flickr.stats.getCollectionReferrers"}, {"_content":"flickr.stats.getCollectionStats"},
|
143
|
+
{"_content":"flickr.stats.getCSVFiles"}, {"_content":"flickr.stats.getPhotoDomains"},
|
144
|
+
{"_content":"flickr.stats.getPhotoReferrers"}, {"_content":"flickr.stats.getPhotosetDomains"},
|
145
|
+
{"_content":"flickr.stats.getPhotosetReferrers"}, {"_content":"flickr.stats.getPhotosetStats"},
|
146
|
+
{"_content":"flickr.stats.getPhotoStats"}, {"_content":"flickr.stats.getPhotostreamDomains"},
|
147
|
+
{"_content":"flickr.stats.getPhotostreamReferrers"}, {"_content":"flickr.stats.getPhotostreamStats"},
|
148
|
+
{"_content":"flickr.stats.getPopularPhotos"}, {"_content":"flickr.stats.getTotalViews"},
|
149
|
+
{"_content":"flickr.tags.getClusterPhotos"}, {"_content":"flickr.tags.getClusters"},
|
150
|
+
{"_content":"flickr.tags.getHotList"}, {"_content":"flickr.tags.getListPhoto"},
|
151
|
+
{"_content":"flickr.tags.getListUser"}, {"_content":"flickr.tags.getListUserPopular"},
|
152
|
+
{"_content":"flickr.tags.getListUserRaw"}, {"_content":"flickr.tags.getMostFrequentlyUsed"},
|
153
|
+
{"_content":"flickr.tags.getRelated"}, {"_content":"flickr.test.echo"}, {"_content":"flickr.test.login"},
|
154
|
+
{"_content":"flickr.test.null"}, {"_content":"flickr.urls.getGroup"}, {"_content":"flickr.urls.getUserPhotos"},
|
155
|
+
{"_content":"flickr.urls.getUserProfile"}, {"_content":"flickr.urls.lookupGallery"},
|
156
|
+
{"_content":"flickr.urls.lookupGroup"}, {"_content":"flickr.urls.lookupUser"}]},
|
157
|
+
"stat":"ok"}'
|
158
|
+
http_version:
|
159
|
+
recorded_at: Sun, 13 Apr 2014 00:07:33 GMT
|
160
|
+
recorded_with: VCR 2.9.0
|
@@ -0,0 +1,160 @@
|
|
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="<KUVA_API_KEY>",
|
18
|
+
oauth_nonce="41qF5%2BATZ7UxFmAb%2F%2FTZbb6UA8nK2T%2BrOokcsCZy1m8%3D", oauth_signature="<KUVA_SHARED_SECRET>%26",
|
19
|
+
oauth_signature_method="PLAINTEXT", oauth_timestamp="1397349588", 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, 13 Apr 2014 00:39:47 GMT
|
30
|
+
P3p:
|
31
|
+
- policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV
|
32
|
+
TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY
|
33
|
+
ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
|
34
|
+
Cache-Control:
|
35
|
+
- private
|
36
|
+
X-Served-By:
|
37
|
+
- www313.flickr.bf1.yahoo.com
|
38
|
+
Vary:
|
39
|
+
- Accept-Encoding
|
40
|
+
Content-Length:
|
41
|
+
- '1432'
|
42
|
+
Content-Type:
|
43
|
+
- application/json
|
44
|
+
Age:
|
45
|
+
- '3'
|
46
|
+
Via:
|
47
|
+
- http/1.1 fts124.flickr.bf1.yahoo.com (ApacheTrafficServer/4.0.2 [cMsSf ]),
|
48
|
+
http/1.1 r15.ycpi.ams.yahoo.net (ApacheTrafficServer/4.0.2 [cMsSf ])
|
49
|
+
Server:
|
50
|
+
- ATS
|
51
|
+
Connection:
|
52
|
+
- keep-alive
|
53
|
+
body:
|
54
|
+
encoding: UTF-8
|
55
|
+
string: '{"methods":{"method":[{"_content":"flickr.activity.userComments"},
|
56
|
+
{"_content":"flickr.activity.userPhotos"}, {"_content":"flickr.auth.checkToken"},
|
57
|
+
{"_content":"flickr.auth.getFrob"}, {"_content":"flickr.auth.getFullToken"},
|
58
|
+
{"_content":"flickr.auth.getToken"}, {"_content":"flickr.auth.oauth.checkToken"},
|
59
|
+
{"_content":"flickr.auth.oauth.getAccessToken"}, {"_content":"flickr.blogs.getList"},
|
60
|
+
{"_content":"flickr.blogs.getServices"}, {"_content":"flickr.blogs.postPhoto"},
|
61
|
+
{"_content":"flickr.cameras.getBrandModels"}, {"_content":"flickr.cameras.getBrands"},
|
62
|
+
{"_content":"flickr.collections.getInfo"}, {"_content":"flickr.collections.getTree"},
|
63
|
+
{"_content":"flickr.commons.getInstitutions"}, {"_content":"flickr.contacts.getList"},
|
64
|
+
{"_content":"flickr.contacts.getListRecentlyUploaded"}, {"_content":"flickr.contacts.getPublicList"},
|
65
|
+
{"_content":"flickr.contacts.getTaggingSuggestions"}, {"_content":"flickr.favorites.add"},
|
66
|
+
{"_content":"flickr.favorites.getContext"}, {"_content":"flickr.favorites.getList"},
|
67
|
+
{"_content":"flickr.favorites.getPublicList"}, {"_content":"flickr.favorites.remove"},
|
68
|
+
{"_content":"flickr.galleries.addPhoto"}, {"_content":"flickr.galleries.create"},
|
69
|
+
{"_content":"flickr.galleries.editMeta"}, {"_content":"flickr.galleries.editPhoto"},
|
70
|
+
{"_content":"flickr.galleries.editPhotos"}, {"_content":"flickr.galleries.getInfo"},
|
71
|
+
{"_content":"flickr.galleries.getList"}, {"_content":"flickr.galleries.getListForPhoto"},
|
72
|
+
{"_content":"flickr.galleries.getPhotos"}, {"_content":"flickr.groups.browse"},
|
73
|
+
{"_content":"flickr.groups.discuss.replies.add"}, {"_content":"flickr.groups.discuss.replies.delete"},
|
74
|
+
{"_content":"flickr.groups.discuss.replies.edit"}, {"_content":"flickr.groups.discuss.replies.getInfo"},
|
75
|
+
{"_content":"flickr.groups.discuss.replies.getList"}, {"_content":"flickr.groups.discuss.topics.add"},
|
76
|
+
{"_content":"flickr.groups.discuss.topics.getInfo"}, {"_content":"flickr.groups.discuss.topics.getList"},
|
77
|
+
{"_content":"flickr.groups.getInfo"}, {"_content":"flickr.groups.join"}, {"_content":"flickr.groups.joinRequest"},
|
78
|
+
{"_content":"flickr.groups.leave"}, {"_content":"flickr.groups.members.getList"},
|
79
|
+
{"_content":"flickr.groups.pools.add"}, {"_content":"flickr.groups.pools.getContext"},
|
80
|
+
{"_content":"flickr.groups.pools.getGroups"}, {"_content":"flickr.groups.pools.getPhotos"},
|
81
|
+
{"_content":"flickr.groups.pools.remove"}, {"_content":"flickr.groups.search"},
|
82
|
+
{"_content":"flickr.interestingness.getList"}, {"_content":"flickr.machinetags.getNamespaces"},
|
83
|
+
{"_content":"flickr.machinetags.getPairs"}, {"_content":"flickr.machinetags.getPredicates"},
|
84
|
+
{"_content":"flickr.machinetags.getRecentValues"}, {"_content":"flickr.machinetags.getValues"},
|
85
|
+
{"_content":"flickr.panda.getList"}, {"_content":"flickr.panda.getPhotos"},
|
86
|
+
{"_content":"flickr.people.findByEmail"}, {"_content":"flickr.people.findByUsername"},
|
87
|
+
{"_content":"flickr.people.getGroups"}, {"_content":"flickr.people.getInfo"},
|
88
|
+
{"_content":"flickr.people.getLimits"}, {"_content":"flickr.people.getPhotos"},
|
89
|
+
{"_content":"flickr.people.getPhotosOf"}, {"_content":"flickr.people.getPublicGroups"},
|
90
|
+
{"_content":"flickr.people.getPublicPhotos"}, {"_content":"flickr.people.getUploadStatus"},
|
91
|
+
{"_content":"flickr.photos.addTags"}, {"_content":"flickr.photos.comments.addComment"},
|
92
|
+
{"_content":"flickr.photos.comments.deleteComment"}, {"_content":"flickr.photos.comments.editComment"},
|
93
|
+
{"_content":"flickr.photos.comments.getList"}, {"_content":"flickr.photos.comments.getRecentForContacts"},
|
94
|
+
{"_content":"flickr.photos.delete"}, {"_content":"flickr.photos.geo.batchCorrectLocation"},
|
95
|
+
{"_content":"flickr.photos.geo.correctLocation"}, {"_content":"flickr.photos.geo.getLocation"},
|
96
|
+
{"_content":"flickr.photos.geo.getPerms"}, {"_content":"flickr.photos.geo.photosForLocation"},
|
97
|
+
{"_content":"flickr.photos.geo.removeLocation"}, {"_content":"flickr.photos.geo.setContext"},
|
98
|
+
{"_content":"flickr.photos.geo.setLocation"}, {"_content":"flickr.photos.geo.setPerms"},
|
99
|
+
{"_content":"flickr.photos.getAllContexts"}, {"_content":"flickr.photos.getContactsPhotos"},
|
100
|
+
{"_content":"flickr.photos.getContactsPublicPhotos"}, {"_content":"flickr.photos.getContext"},
|
101
|
+
{"_content":"flickr.photos.getCounts"}, {"_content":"flickr.photos.getExif"},
|
102
|
+
{"_content":"flickr.photos.getFavorites"}, {"_content":"flickr.photos.getInfo"},
|
103
|
+
{"_content":"flickr.photos.getNotInSet"}, {"_content":"flickr.photos.getPerms"},
|
104
|
+
{"_content":"flickr.photos.getRecent"}, {"_content":"flickr.photos.getSizes"},
|
105
|
+
{"_content":"flickr.photos.getUntagged"}, {"_content":"flickr.photos.getWithGeoData"},
|
106
|
+
{"_content":"flickr.photos.getWithoutGeoData"}, {"_content":"flickr.photos.licenses.getInfo"},
|
107
|
+
{"_content":"flickr.photos.licenses.setLicense"}, {"_content":"flickr.photos.notes.add"},
|
108
|
+
{"_content":"flickr.photos.notes.delete"}, {"_content":"flickr.photos.notes.edit"},
|
109
|
+
{"_content":"flickr.photos.people.add"}, {"_content":"flickr.photos.people.delete"},
|
110
|
+
{"_content":"flickr.photos.people.deleteCoords"}, {"_content":"flickr.photos.people.editCoords"},
|
111
|
+
{"_content":"flickr.photos.people.getList"}, {"_content":"flickr.photos.recentlyUpdated"},
|
112
|
+
{"_content":"flickr.photos.removeTag"}, {"_content":"flickr.photos.search"},
|
113
|
+
{"_content":"flickr.photos.setContentType"}, {"_content":"flickr.photos.setDates"},
|
114
|
+
{"_content":"flickr.photos.setMeta"}, {"_content":"flickr.photos.setPerms"},
|
115
|
+
{"_content":"flickr.photos.setSafetyLevel"}, {"_content":"flickr.photos.setTags"},
|
116
|
+
{"_content":"flickr.photos.suggestions.approveSuggestion"}, {"_content":"flickr.photos.suggestions.getList"},
|
117
|
+
{"_content":"flickr.photos.suggestions.rejectSuggestion"}, {"_content":"flickr.photos.suggestions.removeSuggestion"},
|
118
|
+
{"_content":"flickr.photos.suggestions.suggestLocation"}, {"_content":"flickr.photos.transform.rotate"},
|
119
|
+
{"_content":"flickr.photos.upload.checkTickets"}, {"_content":"flickr.photosets.addPhoto"},
|
120
|
+
{"_content":"flickr.photosets.comments.addComment"}, {"_content":"flickr.photosets.comments.deleteComment"},
|
121
|
+
{"_content":"flickr.photosets.comments.editComment"}, {"_content":"flickr.photosets.comments.getList"},
|
122
|
+
{"_content":"flickr.photosets.create"}, {"_content":"flickr.photosets.delete"},
|
123
|
+
{"_content":"flickr.photosets.editMeta"}, {"_content":"flickr.photosets.editPhotos"},
|
124
|
+
{"_content":"flickr.photosets.getContext"}, {"_content":"flickr.photosets.getInfo"},
|
125
|
+
{"_content":"flickr.photosets.getList"}, {"_content":"flickr.photosets.getPhotos"},
|
126
|
+
{"_content":"flickr.photosets.orderSets"}, {"_content":"flickr.photosets.removePhoto"},
|
127
|
+
{"_content":"flickr.photosets.removePhotos"}, {"_content":"flickr.photosets.reorderPhotos"},
|
128
|
+
{"_content":"flickr.photosets.setPrimaryPhoto"}, {"_content":"flickr.places.find"},
|
129
|
+
{"_content":"flickr.places.findByLatLon"}, {"_content":"flickr.places.getChildrenWithPhotosPublic"},
|
130
|
+
{"_content":"flickr.places.getInfo"}, {"_content":"flickr.places.getInfoByUrl"},
|
131
|
+
{"_content":"flickr.places.getPlaceTypes"}, {"_content":"flickr.places.getShapeHistory"},
|
132
|
+
{"_content":"flickr.places.getTopPlacesList"}, {"_content":"flickr.places.placesForBoundingBox"},
|
133
|
+
{"_content":"flickr.places.placesForContacts"}, {"_content":"flickr.places.placesForTags"},
|
134
|
+
{"_content":"flickr.places.placesForUser"}, {"_content":"flickr.places.resolvePlaceId"},
|
135
|
+
{"_content":"flickr.places.resolvePlaceURL"}, {"_content":"flickr.places.tagsForPlace"},
|
136
|
+
{"_content":"flickr.prefs.getContentType"}, {"_content":"flickr.prefs.getGeoPerms"},
|
137
|
+
{"_content":"flickr.prefs.getHidden"}, {"_content":"flickr.prefs.getPrivacy"},
|
138
|
+
{"_content":"flickr.prefs.getSafetyLevel"}, {"_content":"flickr.push.getSubscriptions"},
|
139
|
+
{"_content":"flickr.push.getTopics"}, {"_content":"flickr.push.subscribe"},
|
140
|
+
{"_content":"flickr.push.unsubscribe"}, {"_content":"flickr.reflection.getMethodInfo"},
|
141
|
+
{"_content":"flickr.reflection.getMethods"}, {"_content":"flickr.stats.getCollectionDomains"},
|
142
|
+
{"_content":"flickr.stats.getCollectionReferrers"}, {"_content":"flickr.stats.getCollectionStats"},
|
143
|
+
{"_content":"flickr.stats.getCSVFiles"}, {"_content":"flickr.stats.getPhotoDomains"},
|
144
|
+
{"_content":"flickr.stats.getPhotoReferrers"}, {"_content":"flickr.stats.getPhotosetDomains"},
|
145
|
+
{"_content":"flickr.stats.getPhotosetReferrers"}, {"_content":"flickr.stats.getPhotosetStats"},
|
146
|
+
{"_content":"flickr.stats.getPhotoStats"}, {"_content":"flickr.stats.getPhotostreamDomains"},
|
147
|
+
{"_content":"flickr.stats.getPhotostreamReferrers"}, {"_content":"flickr.stats.getPhotostreamStats"},
|
148
|
+
{"_content":"flickr.stats.getPopularPhotos"}, {"_content":"flickr.stats.getTotalViews"},
|
149
|
+
{"_content":"flickr.tags.getClusterPhotos"}, {"_content":"flickr.tags.getClusters"},
|
150
|
+
{"_content":"flickr.tags.getHotList"}, {"_content":"flickr.tags.getListPhoto"},
|
151
|
+
{"_content":"flickr.tags.getListUser"}, {"_content":"flickr.tags.getListUserPopular"},
|
152
|
+
{"_content":"flickr.tags.getListUserRaw"}, {"_content":"flickr.tags.getMostFrequentlyUsed"},
|
153
|
+
{"_content":"flickr.tags.getRelated"}, {"_content":"flickr.test.echo"}, {"_content":"flickr.test.login"},
|
154
|
+
{"_content":"flickr.test.null"}, {"_content":"flickr.urls.getGroup"}, {"_content":"flickr.urls.getUserPhotos"},
|
155
|
+
{"_content":"flickr.urls.getUserProfile"}, {"_content":"flickr.urls.lookupGallery"},
|
156
|
+
{"_content":"flickr.urls.lookupGroup"}, {"_content":"flickr.urls.lookupUser"}]},
|
157
|
+
"stat":"ok"}'
|
158
|
+
http_version:
|
159
|
+
recorded_at: Sun, 13 Apr 2014 00:39:48 GMT
|
160
|
+
recorded_with: VCR 2.9.0
|
@@ -0,0 +1,160 @@
|
|
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="<KUVA_API_KEY>",
|
18
|
+
oauth_nonce="IetRBCJK0nHOMy4H5OZAWu8nz8mfgTIOKmS%2F0JMncoI%3D", oauth_signature="<KUVA_SHARED_SECRET>%26",
|
19
|
+
oauth_signature_method="PLAINTEXT", oauth_timestamp="1397349964", 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, 13 Apr 2014 00:46:03 GMT
|
30
|
+
P3p:
|
31
|
+
- policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV
|
32
|
+
TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY
|
33
|
+
ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
|
34
|
+
Cache-Control:
|
35
|
+
- private
|
36
|
+
X-Served-By:
|
37
|
+
- www248.flickr.bf1.yahoo.com
|
38
|
+
Vary:
|
39
|
+
- Accept-Encoding
|
40
|
+
Content-Length:
|
41
|
+
- '1432'
|
42
|
+
Content-Type:
|
43
|
+
- application/json
|
44
|
+
Age:
|
45
|
+
- '3'
|
46
|
+
Via:
|
47
|
+
- http/1.1 fts124.flickr.bf1.yahoo.com (ApacheTrafficServer/4.0.2 [cMsSf ]),
|
48
|
+
http/1.1 r09.ycpi.ir2.yahoo.net (ApacheTrafficServer/4.0.2 [cMsSf ])
|
49
|
+
Server:
|
50
|
+
- ATS
|
51
|
+
Connection:
|
52
|
+
- keep-alive
|
53
|
+
body:
|
54
|
+
encoding: UTF-8
|
55
|
+
string: '{"methods":{"method":[{"_content":"flickr.activity.userComments"},
|
56
|
+
{"_content":"flickr.activity.userPhotos"}, {"_content":"flickr.auth.checkToken"},
|
57
|
+
{"_content":"flickr.auth.getFrob"}, {"_content":"flickr.auth.getFullToken"},
|
58
|
+
{"_content":"flickr.auth.getToken"}, {"_content":"flickr.auth.oauth.checkToken"},
|
59
|
+
{"_content":"flickr.auth.oauth.getAccessToken"}, {"_content":"flickr.blogs.getList"},
|
60
|
+
{"_content":"flickr.blogs.getServices"}, {"_content":"flickr.blogs.postPhoto"},
|
61
|
+
{"_content":"flickr.cameras.getBrandModels"}, {"_content":"flickr.cameras.getBrands"},
|
62
|
+
{"_content":"flickr.collections.getInfo"}, {"_content":"flickr.collections.getTree"},
|
63
|
+
{"_content":"flickr.commons.getInstitutions"}, {"_content":"flickr.contacts.getList"},
|
64
|
+
{"_content":"flickr.contacts.getListRecentlyUploaded"}, {"_content":"flickr.contacts.getPublicList"},
|
65
|
+
{"_content":"flickr.contacts.getTaggingSuggestions"}, {"_content":"flickr.favorites.add"},
|
66
|
+
{"_content":"flickr.favorites.getContext"}, {"_content":"flickr.favorites.getList"},
|
67
|
+
{"_content":"flickr.favorites.getPublicList"}, {"_content":"flickr.favorites.remove"},
|
68
|
+
{"_content":"flickr.galleries.addPhoto"}, {"_content":"flickr.galleries.create"},
|
69
|
+
{"_content":"flickr.galleries.editMeta"}, {"_content":"flickr.galleries.editPhoto"},
|
70
|
+
{"_content":"flickr.galleries.editPhotos"}, {"_content":"flickr.galleries.getInfo"},
|
71
|
+
{"_content":"flickr.galleries.getList"}, {"_content":"flickr.galleries.getListForPhoto"},
|
72
|
+
{"_content":"flickr.galleries.getPhotos"}, {"_content":"flickr.groups.browse"},
|
73
|
+
{"_content":"flickr.groups.discuss.replies.add"}, {"_content":"flickr.groups.discuss.replies.delete"},
|
74
|
+
{"_content":"flickr.groups.discuss.replies.edit"}, {"_content":"flickr.groups.discuss.replies.getInfo"},
|
75
|
+
{"_content":"flickr.groups.discuss.replies.getList"}, {"_content":"flickr.groups.discuss.topics.add"},
|
76
|
+
{"_content":"flickr.groups.discuss.topics.getInfo"}, {"_content":"flickr.groups.discuss.topics.getList"},
|
77
|
+
{"_content":"flickr.groups.getInfo"}, {"_content":"flickr.groups.join"}, {"_content":"flickr.groups.joinRequest"},
|
78
|
+
{"_content":"flickr.groups.leave"}, {"_content":"flickr.groups.members.getList"},
|
79
|
+
{"_content":"flickr.groups.pools.add"}, {"_content":"flickr.groups.pools.getContext"},
|
80
|
+
{"_content":"flickr.groups.pools.getGroups"}, {"_content":"flickr.groups.pools.getPhotos"},
|
81
|
+
{"_content":"flickr.groups.pools.remove"}, {"_content":"flickr.groups.search"},
|
82
|
+
{"_content":"flickr.interestingness.getList"}, {"_content":"flickr.machinetags.getNamespaces"},
|
83
|
+
{"_content":"flickr.machinetags.getPairs"}, {"_content":"flickr.machinetags.getPredicates"},
|
84
|
+
{"_content":"flickr.machinetags.getRecentValues"}, {"_content":"flickr.machinetags.getValues"},
|
85
|
+
{"_content":"flickr.panda.getList"}, {"_content":"flickr.panda.getPhotos"},
|
86
|
+
{"_content":"flickr.people.findByEmail"}, {"_content":"flickr.people.findByUsername"},
|
87
|
+
{"_content":"flickr.people.getGroups"}, {"_content":"flickr.people.getInfo"},
|
88
|
+
{"_content":"flickr.people.getLimits"}, {"_content":"flickr.people.getPhotos"},
|
89
|
+
{"_content":"flickr.people.getPhotosOf"}, {"_content":"flickr.people.getPublicGroups"},
|
90
|
+
{"_content":"flickr.people.getPublicPhotos"}, {"_content":"flickr.people.getUploadStatus"},
|
91
|
+
{"_content":"flickr.photos.addTags"}, {"_content":"flickr.photos.comments.addComment"},
|
92
|
+
{"_content":"flickr.photos.comments.deleteComment"}, {"_content":"flickr.photos.comments.editComment"},
|
93
|
+
{"_content":"flickr.photos.comments.getList"}, {"_content":"flickr.photos.comments.getRecentForContacts"},
|
94
|
+
{"_content":"flickr.photos.delete"}, {"_content":"flickr.photos.geo.batchCorrectLocation"},
|
95
|
+
{"_content":"flickr.photos.geo.correctLocation"}, {"_content":"flickr.photos.geo.getLocation"},
|
96
|
+
{"_content":"flickr.photos.geo.getPerms"}, {"_content":"flickr.photos.geo.photosForLocation"},
|
97
|
+
{"_content":"flickr.photos.geo.removeLocation"}, {"_content":"flickr.photos.geo.setContext"},
|
98
|
+
{"_content":"flickr.photos.geo.setLocation"}, {"_content":"flickr.photos.geo.setPerms"},
|
99
|
+
{"_content":"flickr.photos.getAllContexts"}, {"_content":"flickr.photos.getContactsPhotos"},
|
100
|
+
{"_content":"flickr.photos.getContactsPublicPhotos"}, {"_content":"flickr.photos.getContext"},
|
101
|
+
{"_content":"flickr.photos.getCounts"}, {"_content":"flickr.photos.getExif"},
|
102
|
+
{"_content":"flickr.photos.getFavorites"}, {"_content":"flickr.photos.getInfo"},
|
103
|
+
{"_content":"flickr.photos.getNotInSet"}, {"_content":"flickr.photos.getPerms"},
|
104
|
+
{"_content":"flickr.photos.getRecent"}, {"_content":"flickr.photos.getSizes"},
|
105
|
+
{"_content":"flickr.photos.getUntagged"}, {"_content":"flickr.photos.getWithGeoData"},
|
106
|
+
{"_content":"flickr.photos.getWithoutGeoData"}, {"_content":"flickr.photos.licenses.getInfo"},
|
107
|
+
{"_content":"flickr.photos.licenses.setLicense"}, {"_content":"flickr.photos.notes.add"},
|
108
|
+
{"_content":"flickr.photos.notes.delete"}, {"_content":"flickr.photos.notes.edit"},
|
109
|
+
{"_content":"flickr.photos.people.add"}, {"_content":"flickr.photos.people.delete"},
|
110
|
+
{"_content":"flickr.photos.people.deleteCoords"}, {"_content":"flickr.photos.people.editCoords"},
|
111
|
+
{"_content":"flickr.photos.people.getList"}, {"_content":"flickr.photos.recentlyUpdated"},
|
112
|
+
{"_content":"flickr.photos.removeTag"}, {"_content":"flickr.photos.search"},
|
113
|
+
{"_content":"flickr.photos.setContentType"}, {"_content":"flickr.photos.setDates"},
|
114
|
+
{"_content":"flickr.photos.setMeta"}, {"_content":"flickr.photos.setPerms"},
|
115
|
+
{"_content":"flickr.photos.setSafetyLevel"}, {"_content":"flickr.photos.setTags"},
|
116
|
+
{"_content":"flickr.photos.suggestions.approveSuggestion"}, {"_content":"flickr.photos.suggestions.getList"},
|
117
|
+
{"_content":"flickr.photos.suggestions.rejectSuggestion"}, {"_content":"flickr.photos.suggestions.removeSuggestion"},
|
118
|
+
{"_content":"flickr.photos.suggestions.suggestLocation"}, {"_content":"flickr.photos.transform.rotate"},
|
119
|
+
{"_content":"flickr.photos.upload.checkTickets"}, {"_content":"flickr.photosets.addPhoto"},
|
120
|
+
{"_content":"flickr.photosets.comments.addComment"}, {"_content":"flickr.photosets.comments.deleteComment"},
|
121
|
+
{"_content":"flickr.photosets.comments.editComment"}, {"_content":"flickr.photosets.comments.getList"},
|
122
|
+
{"_content":"flickr.photosets.create"}, {"_content":"flickr.photosets.delete"},
|
123
|
+
{"_content":"flickr.photosets.editMeta"}, {"_content":"flickr.photosets.editPhotos"},
|
124
|
+
{"_content":"flickr.photosets.getContext"}, {"_content":"flickr.photosets.getInfo"},
|
125
|
+
{"_content":"flickr.photosets.getList"}, {"_content":"flickr.photosets.getPhotos"},
|
126
|
+
{"_content":"flickr.photosets.orderSets"}, {"_content":"flickr.photosets.removePhoto"},
|
127
|
+
{"_content":"flickr.photosets.removePhotos"}, {"_content":"flickr.photosets.reorderPhotos"},
|
128
|
+
{"_content":"flickr.photosets.setPrimaryPhoto"}, {"_content":"flickr.places.find"},
|
129
|
+
{"_content":"flickr.places.findByLatLon"}, {"_content":"flickr.places.getChildrenWithPhotosPublic"},
|
130
|
+
{"_content":"flickr.places.getInfo"}, {"_content":"flickr.places.getInfoByUrl"},
|
131
|
+
{"_content":"flickr.places.getPlaceTypes"}, {"_content":"flickr.places.getShapeHistory"},
|
132
|
+
{"_content":"flickr.places.getTopPlacesList"}, {"_content":"flickr.places.placesForBoundingBox"},
|
133
|
+
{"_content":"flickr.places.placesForContacts"}, {"_content":"flickr.places.placesForTags"},
|
134
|
+
{"_content":"flickr.places.placesForUser"}, {"_content":"flickr.places.resolvePlaceId"},
|
135
|
+
{"_content":"flickr.places.resolvePlaceURL"}, {"_content":"flickr.places.tagsForPlace"},
|
136
|
+
{"_content":"flickr.prefs.getContentType"}, {"_content":"flickr.prefs.getGeoPerms"},
|
137
|
+
{"_content":"flickr.prefs.getHidden"}, {"_content":"flickr.prefs.getPrivacy"},
|
138
|
+
{"_content":"flickr.prefs.getSafetyLevel"}, {"_content":"flickr.push.getSubscriptions"},
|
139
|
+
{"_content":"flickr.push.getTopics"}, {"_content":"flickr.push.subscribe"},
|
140
|
+
{"_content":"flickr.push.unsubscribe"}, {"_content":"flickr.reflection.getMethodInfo"},
|
141
|
+
{"_content":"flickr.reflection.getMethods"}, {"_content":"flickr.stats.getCollectionDomains"},
|
142
|
+
{"_content":"flickr.stats.getCollectionReferrers"}, {"_content":"flickr.stats.getCollectionStats"},
|
143
|
+
{"_content":"flickr.stats.getCSVFiles"}, {"_content":"flickr.stats.getPhotoDomains"},
|
144
|
+
{"_content":"flickr.stats.getPhotoReferrers"}, {"_content":"flickr.stats.getPhotosetDomains"},
|
145
|
+
{"_content":"flickr.stats.getPhotosetReferrers"}, {"_content":"flickr.stats.getPhotosetStats"},
|
146
|
+
{"_content":"flickr.stats.getPhotoStats"}, {"_content":"flickr.stats.getPhotostreamDomains"},
|
147
|
+
{"_content":"flickr.stats.getPhotostreamReferrers"}, {"_content":"flickr.stats.getPhotostreamStats"},
|
148
|
+
{"_content":"flickr.stats.getPopularPhotos"}, {"_content":"flickr.stats.getTotalViews"},
|
149
|
+
{"_content":"flickr.tags.getClusterPhotos"}, {"_content":"flickr.tags.getClusters"},
|
150
|
+
{"_content":"flickr.tags.getHotList"}, {"_content":"flickr.tags.getListPhoto"},
|
151
|
+
{"_content":"flickr.tags.getListUser"}, {"_content":"flickr.tags.getListUserPopular"},
|
152
|
+
{"_content":"flickr.tags.getListUserRaw"}, {"_content":"flickr.tags.getMostFrequentlyUsed"},
|
153
|
+
{"_content":"flickr.tags.getRelated"}, {"_content":"flickr.test.echo"}, {"_content":"flickr.test.login"},
|
154
|
+
{"_content":"flickr.test.null"}, {"_content":"flickr.urls.getGroup"}, {"_content":"flickr.urls.getUserPhotos"},
|
155
|
+
{"_content":"flickr.urls.getUserProfile"}, {"_content":"flickr.urls.lookupGallery"},
|
156
|
+
{"_content":"flickr.urls.lookupGroup"}, {"_content":"flickr.urls.lookupUser"}]},
|
157
|
+
"stat":"ok"}'
|
158
|
+
http_version:
|
159
|
+
recorded_at: Sun, 13 Apr 2014 00:46:04 GMT
|
160
|
+
recorded_with: VCR 2.9.0
|