flickrie 0.4.1 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +5 -0
- data/README.md +6 -4
- data/Rakefile +9 -8
- data/api_methods.md +297 -0
- data/doc/Flickrie.html +364 -0
- data/doc/Flickrie/.DS_Store +0 -0
- data/doc/Flickrie/ApiMethods.html +1692 -0
- data/doc/Flickrie/Client.html +914 -0
- data/doc/Flickrie/Error.html +187 -0
- data/doc/Flickrie/Instance.html +344 -0
- data/doc/Flickrie/License.html +288 -0
- data/doc/Flickrie/Location.html +233 -0
- data/doc/Flickrie/Media.html +1689 -0
- data/doc/Flickrie/Media/ClassMethods.html +509 -0
- data/doc/Flickrie/Media/Count.html +314 -0
- data/doc/Flickrie/Media/Exif.html +276 -0
- data/doc/Flickrie/Media/Note.html +362 -0
- data/doc/Flickrie/Media/Tag.html +425 -0
- data/doc/Flickrie/Media/Ticket.html +425 -0
- data/doc/Flickrie/Media/Visibility.html +359 -0
- data/doc/Flickrie/MediaCount.html +314 -0
- data/doc/Flickrie/OAuth.html +334 -0
- data/doc/Flickrie/OAuth/AccessToken.html +187 -0
- data/doc/Flickrie/OAuth/Error.html +187 -0
- data/doc/Flickrie/OAuth/ParseResponseParams.html +187 -0
- data/doc/Flickrie/OAuth/RequestToken.html +241 -0
- data/doc/Flickrie/OAuth/StatusCheck.html +235 -0
- data/doc/Flickrie/OAuth/Token.html +227 -0
- data/doc/Flickrie/OAuthStatusCheck.html +236 -0
- data/doc/Flickrie/Photo.html +913 -0
- data/doc/Flickrie/Set.html +998 -0
- data/doc/Flickrie/StatusCheck.html +235 -0
- data/doc/Flickrie/UploadClient.html +284 -0
- data/doc/Flickrie/UploadStatusCheck.html +235 -0
- data/doc/Flickrie/User.html +875 -0
- data/doc/Flickrie/Video.html +601 -0
- data/doc/Gemfile.html +163 -0
- data/doc/LICENSE.html +165 -0
- data/doc/Rakefile.html +168 -0
- data/doc/created.rid +25 -0
- data/doc/images/add.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +140 -0
- data/doc/js/darkfish.js +153 -0
- data/doc/js/jquery.js +18 -0
- data/doc/js/navigation.js +142 -0
- data/doc/js/search.js +94 -0
- data/doc/js/search_index.js +1 -0
- data/doc/js/searcher.js +228 -0
- data/doc/rdoc.css +543 -0
- data/doc/table_of_contents.html +642 -0
- data/flickrie.gemspec +7 -6
- data/lib/flickrie/api_methods.rb +26 -1
- data/lib/flickrie/client.rb +8 -0
- data/lib/flickrie/media.rb +24 -0
- data/lib/flickrie/media/exif.rb +18 -0
- data/lib/flickrie/media_count.rb +28 -0
- data/lib/flickrie/version.rb +1 -1
- data/test/license_test.rb +0 -1
- data/test/location_test.rb +0 -1
- data/test/media_count_test.rb +17 -0
- data/test/media_test.rb +0 -1
- data/test/oauth_test.rb +1 -2
- data/test/photo_test.rb +13 -1
- data/test/set_test.rb +0 -1
- data/test/test.rb +1 -1
- data/test/user_test.rb +0 -1
- data/test/video_test.rb +12 -1
- metadata +87 -13
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Flickrie changelog
|
2
2
|
|
3
|
+
## Version 0.5.0
|
4
|
+
|
5
|
+
- covered `flickr.photos.getCounts`
|
6
|
+
- covered `flickr.photos.getExif`
|
7
|
+
|
3
8
|
## Version 0.4.1
|
4
9
|
|
5
10
|
- handle file uploads for Rails and Sinatra smarter (see [this wiki](https://github.com/janko-m/flickrie/wiki/Some-tips.md), tip #7)
|
data/README.md
CHANGED
@@ -162,7 +162,7 @@ Few notes:
|
|
162
162
|
- Photo uploads require authentication with "write" permissions.
|
163
163
|
- Path to the photo has to be absolute.
|
164
164
|
|
165
|
-
See [this wiki](https://github.com/janko-m/flickrie/wiki/
|
165
|
+
See [this wiki](https://github.com/janko-m/flickrie/wiki/Asynchronous-photo-upload) for an example
|
166
166
|
of an asynchronous photo upload.
|
167
167
|
|
168
168
|
## A few words
|
@@ -228,17 +228,19 @@ basis of this gem.
|
|
228
228
|
"flickr.photos.getContactsPhotos" -> Flickrie.photos_from_contacts
|
229
229
|
"flickr.photos.getContactsPublicPhotos" -> Flickrie.public_photos_from_user_contacts
|
230
230
|
"flickr.photos.getContext" -> Flickrie.get_photo_context
|
231
|
+
"flickr.photos.getCounts" -> Flickrie.get_photos_counts
|
232
|
+
"flickr.photos.getExif" -> Flickrie.get_photo_exif
|
231
233
|
"flickr.photos.getInfo" -> Flickrie.get_photo_info
|
232
234
|
"flickr.photos.getSizes" -> Flickrie.get_photo_sizes
|
233
235
|
"flickr.photos.removeTag" -> Flickrie.remove_photo_tag
|
234
236
|
"flickr.photos.search" -> Flickrie.search_photos
|
235
237
|
|
236
|
-
# photos.upload
|
237
|
-
"flickr.photos.upload.checkTickets" -> Flickrie.check_upload_tickets
|
238
|
-
|
239
238
|
# photos.licenses
|
240
239
|
"flickr.photos.licenses.getInfo" -> Flickrie.get_licenses
|
241
240
|
|
241
|
+
# photos.upload
|
242
|
+
"flickr.photos.upload.checkTickets" -> Flickrie.check_upload_tickets
|
243
|
+
|
242
244
|
# photosets
|
243
245
|
"flickr.photosets.getInfo" -> Flickrie.get_set_info
|
244
246
|
"flickr.photosets.getList" -> Flickrie.sets_from_user
|
data/Rakefile
CHANGED
@@ -4,16 +4,17 @@ Bundler::GemHelper.install_tasks
|
|
4
4
|
CURRENT_DIR = File.expand_path(File.dirname(__FILE__))
|
5
5
|
|
6
6
|
task :test do
|
7
|
-
Dir["#{CURRENT_DIR}/test/**/*_test.rb"].each do |
|
8
|
-
system "turn -
|
7
|
+
Dir["#{CURRENT_DIR}/test/**/*_test.rb"].each do |test_file|
|
8
|
+
system "bundle exec turn -Itest #{test_file}"
|
9
9
|
end
|
10
10
|
end
|
11
11
|
|
12
12
|
namespace :test do
|
13
|
-
test_rbs = Dir["#{CURRENT_DIR}/test/*_test.rb"]
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
13
|
+
test_rbs = Dir["#{CURRENT_DIR}/test/*_test.rb"].
|
14
|
+
map { |t| [File.basename(t).chomp('_test.rb').to_sym, t] }.
|
15
|
+
each do |test_name, test_file|
|
16
|
+
task(test_name) do
|
17
|
+
system "bundle exec turn -Itest #{test_file}"
|
18
|
+
end
|
19
|
+
end
|
19
20
|
end
|
data/api_methods.md
ADDED
@@ -0,0 +1,297 @@
|
|
1
|
+
# activity
|
2
|
+
|
3
|
+
- flickr.activity.userComments
|
4
|
+
- flickr.activity.userPhotos
|
5
|
+
|
6
|
+
# auth
|
7
|
+
|
8
|
+
- flickr.auth.checkToken
|
9
|
+
- flickr.auth.getFrob
|
10
|
+
- flickr.auth.getFullToken
|
11
|
+
- flickr.auth.getToken
|
12
|
+
|
13
|
+
# auth.oauth
|
14
|
+
|
15
|
+
- flickr.auth.oauth.checkToken
|
16
|
+
- flickr.auth.oauth.getAccessToken
|
17
|
+
|
18
|
+
# blogs
|
19
|
+
|
20
|
+
- flickr.blogs.getList
|
21
|
+
- flickr.blogs.getServices
|
22
|
+
- flickr.blogs.postPhoto
|
23
|
+
|
24
|
+
# collections
|
25
|
+
|
26
|
+
- flickr.collections.getInfo
|
27
|
+
- flickr.collections.getTree
|
28
|
+
|
29
|
+
# commons
|
30
|
+
|
31
|
+
- flickr.commons.getInstitutions
|
32
|
+
|
33
|
+
# contacts
|
34
|
+
|
35
|
+
- flickr.contacts.getList
|
36
|
+
- flickr.contacts.getListRecentlyUploaded
|
37
|
+
- flickr.contacts.getPublicList
|
38
|
+
- flickr.contacts.getTaggingSuggestions
|
39
|
+
|
40
|
+
# favorites
|
41
|
+
|
42
|
+
- flickr.favorites.add
|
43
|
+
- flickr.favorites.getContext
|
44
|
+
- flickr.favorites.getList
|
45
|
+
- flickr.favorites.getPublicList
|
46
|
+
- flickr.favorites.remove
|
47
|
+
|
48
|
+
# galleries
|
49
|
+
|
50
|
+
- flickr.galleries.addPhoto
|
51
|
+
- flickr.galleries.create
|
52
|
+
- flickr.galleries.editMeta
|
53
|
+
- flickr.galleries.editPhoto
|
54
|
+
- flickr.galleries.editPhotos
|
55
|
+
- flickr.galleries.getInfo
|
56
|
+
- flickr.galleries.getList
|
57
|
+
- flickr.galleries.getListForPhoto
|
58
|
+
- flickr.galleries.getPhotos
|
59
|
+
|
60
|
+
# groups
|
61
|
+
|
62
|
+
- flickr.groups.browse
|
63
|
+
- flickr.groups.getInfo
|
64
|
+
- flickr.groups.search
|
65
|
+
|
66
|
+
# groups.members
|
67
|
+
|
68
|
+
- flickr.groups.members.getList
|
69
|
+
|
70
|
+
# groups.pools
|
71
|
+
|
72
|
+
- flickr.groups.pools.add
|
73
|
+
- flickr.groups.pools.getContext
|
74
|
+
- flickr.groups.pools.getGroups
|
75
|
+
- flickr.groups.pools.getPhotos
|
76
|
+
- flickr.groups.pools.remove
|
77
|
+
|
78
|
+
# interestingness
|
79
|
+
|
80
|
+
- flickr.interestingness.getList
|
81
|
+
|
82
|
+
# machinetags
|
83
|
+
|
84
|
+
- flickr.machinetags.getNamespaces
|
85
|
+
- flickr.machinetags.getPairs
|
86
|
+
- flickr.machinetags.getPredicates
|
87
|
+
- flickr.machinetags.getRecentValues
|
88
|
+
- flickr.machinetags.getValues
|
89
|
+
|
90
|
+
# panda
|
91
|
+
|
92
|
+
- flickr.panda.getList
|
93
|
+
- flickr.panda.getPhotos
|
94
|
+
|
95
|
+
# people
|
96
|
+
|
97
|
+
- ~~flickr.people.findByEmail~~
|
98
|
+
- ~~flickr.people.findByUsername~~
|
99
|
+
- flickr.people.getGroups
|
100
|
+
- ~~flickr.people.getInfo~~
|
101
|
+
- flickr.people.getLimits
|
102
|
+
- flickr.people.getPhotos
|
103
|
+
- flickr.people.getPhotosOf
|
104
|
+
- flickr.people.getPublicGroups
|
105
|
+
- ~~flickr.people.getPublicPhotos~~
|
106
|
+
- flickr.people.getUploadStatus
|
107
|
+
|
108
|
+
# photos
|
109
|
+
|
110
|
+
- ~~flickr.photos.addTags~~
|
111
|
+
- ~~flickr.photos.delete~~
|
112
|
+
- flickr.photos.getAllContexts
|
113
|
+
- ~~flickr.photos.getContactsPhotos~~
|
114
|
+
- ~~flickr.photos.getContactsPublicPhotos~~
|
115
|
+
- ~~flickr.photos.getContext~~
|
116
|
+
- ~~flickr.photos.getCounts~~
|
117
|
+
- ~~flickr.photos.getExif~~
|
118
|
+
- flickr.photos.getFavorites
|
119
|
+
- ~~flickr.photos.getInfo~~
|
120
|
+
- flickr.photos.getNotInSet
|
121
|
+
- flickr.photos.getPerms
|
122
|
+
- flickr.photos.getRecent
|
123
|
+
- ~~flickr.photos.getSizes~~
|
124
|
+
- flickr.photos.getUntagged
|
125
|
+
- flickr.photos.getWithGeoData
|
126
|
+
- flickr.photos.getWithoutGeoData
|
127
|
+
- flickr.photos.recentlyUpdated
|
128
|
+
- ~~flickr.photos.removeTag~~
|
129
|
+
- ~~flickr.photos.search~~
|
130
|
+
- flickr.photos.setContentType
|
131
|
+
- flickr.photos.setDates
|
132
|
+
- flickr.photos.setMeta
|
133
|
+
- flickr.photos.setPerms
|
134
|
+
- flickr.photos.setSafetyLevel
|
135
|
+
- flickr.photos.setTags
|
136
|
+
|
137
|
+
# photos.comments
|
138
|
+
|
139
|
+
- flickr.photos.comments.addComment
|
140
|
+
- flickr.photos.comments.deleteComment
|
141
|
+
- flickr.photos.comments.editComment
|
142
|
+
- flickr.photos.comments.getList
|
143
|
+
- flickr.photos.comments.getRecentForContacts
|
144
|
+
|
145
|
+
# photos.geo
|
146
|
+
|
147
|
+
- flickr.photos.geo.batchCorrectLocation
|
148
|
+
- flickr.photos.geo.correctLocation
|
149
|
+
- flickr.photos.geo.getLocation
|
150
|
+
- flickr.photos.geo.getPerms
|
151
|
+
- flickr.photos.geo.photosForLocation
|
152
|
+
- flickr.photos.geo.removeLocation
|
153
|
+
- flickr.photos.geo.setContext
|
154
|
+
- flickr.photos.geo.setLocation
|
155
|
+
- flickr.photos.geo.setPerms
|
156
|
+
|
157
|
+
# photos.licenses
|
158
|
+
|
159
|
+
- ~~flickr.photos.licenses.getInfo~~
|
160
|
+
- flickr.photos.licenses.setLicense
|
161
|
+
|
162
|
+
# photos.notes
|
163
|
+
|
164
|
+
- flickr.photos.notes.add
|
165
|
+
- flickr.photos.notes.delete
|
166
|
+
- flickr.photos.notes.edit
|
167
|
+
|
168
|
+
# photos.people
|
169
|
+
|
170
|
+
- flickr.photos.people.add
|
171
|
+
- flickr.photos.people.delete
|
172
|
+
- flickr.photos.people.deleteCoords
|
173
|
+
- flickr.photos.people.editCoords
|
174
|
+
- flickr.photos.people.getList
|
175
|
+
|
176
|
+
# photos.suggestions
|
177
|
+
|
178
|
+
- flickr.photos.suggestions.approveSuggestion
|
179
|
+
- flickr.photos.suggestions.getList
|
180
|
+
- flickr.photos.suggestions.rejectSuggestion
|
181
|
+
- flickr.photos.suggestions.removeSuggestion
|
182
|
+
- flickr.photos.suggestions.suggestLocation
|
183
|
+
|
184
|
+
# photos.transform
|
185
|
+
|
186
|
+
- flickr.photos.transform.rotate
|
187
|
+
|
188
|
+
# photos.upload
|
189
|
+
|
190
|
+
- ~~flickr.photos.upload.checkTickets~~
|
191
|
+
|
192
|
+
# photosets
|
193
|
+
|
194
|
+
- flickr.photosets.addPhoto
|
195
|
+
- flickr.photosets.create
|
196
|
+
- flickr.photosets.delete
|
197
|
+
- flickr.photosets.editMeta
|
198
|
+
- flickr.photosets.editPhotos
|
199
|
+
- flickr.photosets.getContext
|
200
|
+
- ~~flickr.photosets.getInfo~~
|
201
|
+
- ~~flickr.photosets.getList~~
|
202
|
+
- ~~flickr.photosets.getPhotos~~
|
203
|
+
- flickr.photosets.orderSets
|
204
|
+
- flickr.photosets.removePhoto
|
205
|
+
- flickr.photosets.removePhotos
|
206
|
+
- flickr.photosets.reorderPhotos
|
207
|
+
- flickr.photosets.setPrimaryPhoto
|
208
|
+
|
209
|
+
# photosets.comments
|
210
|
+
|
211
|
+
- flickr.photosets.comments.addComment
|
212
|
+
- flickr.photosets.comments.deleteComment
|
213
|
+
- flickr.photosets.comments.editComment
|
214
|
+
- flickr.photosets.comments.getList
|
215
|
+
|
216
|
+
# places
|
217
|
+
|
218
|
+
- flickr.places.find
|
219
|
+
- flickr.places.findByLatLon
|
220
|
+
- flickr.places.getChildrenWithPhotosPublic
|
221
|
+
- flickr.places.getInfo
|
222
|
+
- flickr.places.getInfoByUrl
|
223
|
+
- flickr.places.getPlaceTypes
|
224
|
+
- flickr.places.getShapeHistory
|
225
|
+
- flickr.places.getTopPlacesList
|
226
|
+
- flickr.places.placesForBoundingBox
|
227
|
+
- flickr.places.placesForContacts
|
228
|
+
- flickr.places.placesForTags
|
229
|
+
- flickr.places.placesForUser
|
230
|
+
- flickr.places.resolvePlaceId
|
231
|
+
- flickr.places.resolvePlaceURL
|
232
|
+
- flickr.places.tagsForPlace
|
233
|
+
|
234
|
+
# prefs
|
235
|
+
|
236
|
+
- flickr.prefs.getContentType
|
237
|
+
- flickr.prefs.getGeoPerms
|
238
|
+
- flickr.prefs.getHidden
|
239
|
+
- flickr.prefs.getPrivacy
|
240
|
+
- flickr.prefs.getSafetyLevel
|
241
|
+
|
242
|
+
# push
|
243
|
+
|
244
|
+
- flickr.push.getSubscriptions
|
245
|
+
- flickr.push.getTopics
|
246
|
+
- flickr.push.subscribe
|
247
|
+
- flickr.push.unsubscribe
|
248
|
+
|
249
|
+
# reflection
|
250
|
+
|
251
|
+
- flickr.reflection.getMethodInfo
|
252
|
+
- flickr.reflection.getMethods
|
253
|
+
|
254
|
+
# stats
|
255
|
+
|
256
|
+
- flickr.stats.getCollectionDomains
|
257
|
+
- flickr.stats.getCollectionReferrers
|
258
|
+
- flickr.stats.getCollectionStats
|
259
|
+
- flickr.stats.getCSVFiles
|
260
|
+
- flickr.stats.getPhotoDomains
|
261
|
+
- flickr.stats.getPhotoReferrers
|
262
|
+
- flickr.stats.getPhotosetDomains
|
263
|
+
- flickr.stats.getPhotosetReferrers
|
264
|
+
- flickr.stats.getPhotosetStats
|
265
|
+
- flickr.stats.getPhotoStats
|
266
|
+
- flickr.stats.getPhotostreamDomains
|
267
|
+
- flickr.stats.getPhotostreamReferrers
|
268
|
+
- flickr.stats.getPhotostreamStats
|
269
|
+
- flickr.stats.getPopularPhotos
|
270
|
+
- flickr.stats.getTotalViews
|
271
|
+
|
272
|
+
# tags
|
273
|
+
|
274
|
+
- flickr.tags.getClusterPhotos
|
275
|
+
- flickr.tags.getClusters
|
276
|
+
- flickr.tags.getHotList
|
277
|
+
- flickr.tags.getListPhoto
|
278
|
+
- flickr.tags.getListUser
|
279
|
+
- flickr.tags.getListUserPopular
|
280
|
+
- flickr.tags.getListUserRaw
|
281
|
+
- flickr.tags.getMostFrequentlyUsed
|
282
|
+
- flickr.tags.getRelated
|
283
|
+
|
284
|
+
# test
|
285
|
+
|
286
|
+
- flickr.test.echo
|
287
|
+
- flickr.test.login
|
288
|
+
- flickr.test.null
|
289
|
+
|
290
|
+
# urls
|
291
|
+
|
292
|
+
- flickr.urls.getGroup
|
293
|
+
- flickr.urls.getUserPhotos
|
294
|
+
- flickr.urls.getUserProfile
|
295
|
+
- flickr.urls.lookupGallery
|
296
|
+
- flickr.urls.lookupGroup
|
297
|
+
- flickr.urls.lookupUser
|
data/doc/Flickrie.html
ADDED
@@ -0,0 +1,364 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>module Flickrie - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
10
|
+
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "./";
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
21
|
+
|
22
|
+
|
23
|
+
<body id="top" class="module">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="./index.html">Home</a>
|
28
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
<div id="file-metadata">
|
47
|
+
<nav id="file-list-section" class="section">
|
48
|
+
<h3 class="section-header">Defined In</h3>
|
49
|
+
<ul>
|
50
|
+
<li>lib/flickrie/api_methods.rb
|
51
|
+
<li>lib/flickrie/client.rb
|
52
|
+
<li>lib/flickrie/instance.rb
|
53
|
+
<li>lib/flickrie/license.rb
|
54
|
+
<li>lib/flickrie/location.rb
|
55
|
+
<li>lib/flickrie/media/exif.rb
|
56
|
+
<li>lib/flickrie/media/note.rb
|
57
|
+
<li>lib/flickrie/media/tag.rb
|
58
|
+
<li>lib/flickrie/media/ticket.rb
|
59
|
+
<li>lib/flickrie/media/visibility.rb
|
60
|
+
<li>lib/flickrie/media.rb
|
61
|
+
<li>lib/flickrie/media_count.rb
|
62
|
+
<li>lib/flickrie/oauth.rb
|
63
|
+
<li>lib/flickrie/photo.rb
|
64
|
+
<li>lib/flickrie/set.rb
|
65
|
+
<li>lib/flickrie/upload_client.rb
|
66
|
+
<li>lib/flickrie/user.rb
|
67
|
+
<li>lib/flickrie/version.rb
|
68
|
+
<li>lib/flickrie/video.rb
|
69
|
+
<li>lib/flickrie.rb
|
70
|
+
</ul>
|
71
|
+
</nav>
|
72
|
+
|
73
|
+
|
74
|
+
</div>
|
75
|
+
|
76
|
+
<div id="class-metadata">
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
<!-- Method Quickref -->
|
81
|
+
<nav id="method-list-section" class="section">
|
82
|
+
<h3 class="section-header">Methods</h3>
|
83
|
+
|
84
|
+
<ul class="link-list">
|
85
|
+
|
86
|
+
<li><a href="#method-c-attr_accessor_with_client_reset">::attr_accessor_with_client_reset</a>
|
87
|
+
|
88
|
+
<li><a href="#method-c-client">::client</a>
|
89
|
+
|
90
|
+
<li><a href="#method-c-upload_client">::upload_client</a>
|
91
|
+
|
92
|
+
</ul>
|
93
|
+
</nav>
|
94
|
+
|
95
|
+
</div>
|
96
|
+
|
97
|
+
<div id="project-metadata">
|
98
|
+
<nav id="fileindex-section" class="section project-section">
|
99
|
+
<h3 class="section-header">Pages</h3>
|
100
|
+
|
101
|
+
<ul>
|
102
|
+
|
103
|
+
<li class="file"><a href="./Gemfile.html">Gemfile</a>
|
104
|
+
|
105
|
+
<li class="file"><a href="./LICENSE.html">LICENSE</a>
|
106
|
+
|
107
|
+
<li class="file"><a href="./Rakefile.html">Rakefile</a>
|
108
|
+
|
109
|
+
</ul>
|
110
|
+
</nav>
|
111
|
+
|
112
|
+
<nav id="classindex-section" class="section project-section">
|
113
|
+
<h3 class="section-header">Class and Module Index</h3>
|
114
|
+
|
115
|
+
<ul class="link-list">
|
116
|
+
|
117
|
+
<li><a href="./Flickrie.html">Flickrie</a>
|
118
|
+
|
119
|
+
<li><a href="./Flickrie/ApiMethods.html">Flickrie::ApiMethods</a>
|
120
|
+
|
121
|
+
<li><a href="./Flickrie/Client.html">Flickrie::Client</a>
|
122
|
+
|
123
|
+
<li><a href="./Flickrie/Error.html">Flickrie::Error</a>
|
124
|
+
|
125
|
+
<li><a href="./Flickrie/Instance.html">Flickrie::Instance</a>
|
126
|
+
|
127
|
+
<li><a href="./Flickrie/License.html">Flickrie::License</a>
|
128
|
+
|
129
|
+
<li><a href="./Flickrie/Location.html">Flickrie::Location</a>
|
130
|
+
|
131
|
+
<li><a href="./Flickrie/Media.html">Flickrie::Media</a>
|
132
|
+
|
133
|
+
<li><a href="./Flickrie/Media/ClassMethods.html">Flickrie::Media::ClassMethods</a>
|
134
|
+
|
135
|
+
<li><a href="./Flickrie/Media/Exif.html">Flickrie::Media::Exif</a>
|
136
|
+
|
137
|
+
<li><a href="./Flickrie/Media/Note.html">Flickrie::Media::Note</a>
|
138
|
+
|
139
|
+
<li><a href="./Flickrie/Media/Tag.html">Flickrie::Media::Tag</a>
|
140
|
+
|
141
|
+
<li><a href="./Flickrie/Media/Ticket.html">Flickrie::Media::Ticket</a>
|
142
|
+
|
143
|
+
<li><a href="./Flickrie/Media/Visibility.html">Flickrie::Media::Visibility</a>
|
144
|
+
|
145
|
+
<li><a href="./Flickrie/MediaCount.html">Flickrie::MediaCount</a>
|
146
|
+
|
147
|
+
<li><a href="./Flickrie/OAuth.html">Flickrie::OAuth</a>
|
148
|
+
|
149
|
+
<li><a href="./Flickrie/OAuth/AccessToken.html">Flickrie::OAuth::AccessToken</a>
|
150
|
+
|
151
|
+
<li><a href="./Flickrie/OAuth/Error.html">Flickrie::OAuth::Error</a>
|
152
|
+
|
153
|
+
<li><a href="./Flickrie/OAuth/ParseResponseParams.html">Flickrie::OAuth::ParseResponseParams</a>
|
154
|
+
|
155
|
+
<li><a href="./Flickrie/OAuth/RequestToken.html">Flickrie::OAuth::RequestToken</a>
|
156
|
+
|
157
|
+
<li><a href="./Flickrie/OAuth/StatusCheck.html">Flickrie::OAuth::StatusCheck</a>
|
158
|
+
|
159
|
+
<li><a href="./Flickrie/OAuth/Token.html">Flickrie::OAuth::Token</a>
|
160
|
+
|
161
|
+
<li><a href="./Flickrie/OAuthStatusCheck.html">Flickrie::OAuthStatusCheck</a>
|
162
|
+
|
163
|
+
<li><a href="./Flickrie/Photo.html">Flickrie::Photo</a>
|
164
|
+
|
165
|
+
<li><a href="./Flickrie/Set.html">Flickrie::Set</a>
|
166
|
+
|
167
|
+
<li><a href="./Flickrie/StatusCheck.html">Flickrie::StatusCheck</a>
|
168
|
+
|
169
|
+
<li><a href="./Flickrie/UploadClient.html">Flickrie::UploadClient</a>
|
170
|
+
|
171
|
+
<li><a href="./Flickrie/UploadStatusCheck.html">Flickrie::UploadStatusCheck</a>
|
172
|
+
|
173
|
+
<li><a href="./Flickrie/User.html">Flickrie::User</a>
|
174
|
+
|
175
|
+
<li><a href="./Flickrie/Video.html">Flickrie::Video</a>
|
176
|
+
|
177
|
+
</ul>
|
178
|
+
</nav>
|
179
|
+
|
180
|
+
</div>
|
181
|
+
</nav>
|
182
|
+
|
183
|
+
<div id="documentation">
|
184
|
+
<h1 class="module">module Flickrie</h1>
|
185
|
+
|
186
|
+
<div id="description" class="description">
|
187
|
+
|
188
|
+
</div><!-- description -->
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
<!-- Constants -->
|
200
|
+
<section id="constants-list" class="section">
|
201
|
+
<h3 class="section-header">Constants</h3>
|
202
|
+
<dl>
|
203
|
+
|
204
|
+
<dt id="OPEN_TIMEOUT">OPEN_TIMEOUT
|
205
|
+
|
206
|
+
<dd class="description">
|
207
|
+
|
208
|
+
|
209
|
+
<dt id="TIMEOUT">TIMEOUT
|
210
|
+
|
211
|
+
<dd class="description">
|
212
|
+
|
213
|
+
|
214
|
+
<dt id="VERSION">VERSION
|
215
|
+
|
216
|
+
<dd class="description">
|
217
|
+
|
218
|
+
|
219
|
+
</dl>
|
220
|
+
</section>
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
<!-- Methods -->
|
226
|
+
|
227
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section section">
|
228
|
+
<h3 class="section-header">Public Class Methods</h3>
|
229
|
+
|
230
|
+
|
231
|
+
<div id="method-c-attr_accessor_with_client_reset" class="method-detail ">
|
232
|
+
|
233
|
+
<div class="method-heading">
|
234
|
+
<span class="method-name">attr_accessor_with_client_reset</span><span
|
235
|
+
class="method-args">(*attributes)</span>
|
236
|
+
<span class="method-click-advice">click to toggle source</span>
|
237
|
+
</div>
|
238
|
+
|
239
|
+
|
240
|
+
<div class="method-description">
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
|
246
|
+
<div class="method-source-code" id="attr_accessor_with_client_reset-source">
|
247
|
+
<pre><span class="ruby-comment"># File lib/flickrie/client.rb, line 5</span>
|
248
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">attr_accessor_with_client_reset</span>(*<span class="ruby-identifier">attributes</span>)
|
249
|
+
<span class="ruby-identifier">attr_reader</span> *<span class="ruby-identifier">attributes</span>
|
250
|
+
|
251
|
+
<span class="ruby-identifier">attributes</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">attribute</span><span class="ruby-operator">|</span>
|
252
|
+
<span class="ruby-identifier">define_method</span> <span class="ruby-node">"#{attribute}="</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
|
253
|
+
<span class="ruby-identifier">instance_variable_set</span> <span class="ruby-node">"@#{attribute}"</span>, <span class="ruby-identifier">value</span>
|
254
|
+
<span class="ruby-ivar">@client</span> = <span class="ruby-keyword">nil</span>
|
255
|
+
<span class="ruby-keyword">end</span>
|
256
|
+
<span class="ruby-keyword">end</span>
|
257
|
+
<span class="ruby-keyword">end</span></pre>
|
258
|
+
</div><!-- attr_accessor_with_client_reset-source -->
|
259
|
+
|
260
|
+
</div>
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
</div><!-- attr_accessor_with_client_reset-method -->
|
266
|
+
|
267
|
+
|
268
|
+
<div id="method-c-client" class="method-detail ">
|
269
|
+
|
270
|
+
<div class="method-heading">
|
271
|
+
<span class="method-name">client</span><span
|
272
|
+
class="method-args">(access_token_hash = {})</span>
|
273
|
+
<span class="method-click-advice">click to toggle source</span>
|
274
|
+
</div>
|
275
|
+
|
276
|
+
|
277
|
+
<div class="method-description">
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
<div class="method-source-code" id="client-source">
|
284
|
+
<pre><span class="ruby-comment"># File lib/flickrie/client.rb, line 19</span>
|
285
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">client</span>(<span class="ruby-identifier">access_token_hash</span> = {})
|
286
|
+
<span class="ruby-ivar">@client</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">Client</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">params</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">conn</span><span class="ruby-operator">|</span>
|
287
|
+
<span class="ruby-identifier">conn</span>.<span class="ruby-identifier">request</span> <span class="ruby-value">:oauth</span>,
|
288
|
+
<span class="ruby-value">:consumer_key</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">api_key</span>,
|
289
|
+
<span class="ruby-value">:consumer_secret</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">shared_secret</span>,
|
290
|
+
<span class="ruby-value">:token</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">access_token_hash</span>[<span class="ruby-value">:token</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">access_token</span>,
|
291
|
+
<span class="ruby-value">:token_secret</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">access_token_hash</span>[<span class="ruby-value">:secret</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">access_secret</span>
|
292
|
+
|
293
|
+
<span class="ruby-identifier">conn</span>.<span class="ruby-identifier">use</span> <span class="ruby-constant">StatusCheck</span>
|
294
|
+
<span class="ruby-identifier">conn</span>.<span class="ruby-identifier">response</span> <span class="ruby-value">:json</span>, <span class="ruby-value">:content_type</span> =<span class="ruby-operator">></span> <span class="ruby-regexp">%r(text\/plain)|(json)$/</span>
|
295
|
+
<span class="ruby-identifier">conn</span>.<span class="ruby-identifier">use</span> <span class="ruby-constant">OAuthStatusCheck</span>
|
296
|
+
|
297
|
+
<span class="ruby-identifier">conn</span>.<span class="ruby-identifier">adapter</span> <span class="ruby-constant">Faraday</span>.<span class="ruby-identifier">default_adapter</span>
|
298
|
+
<span class="ruby-keyword">end</span>
|
299
|
+
<span class="ruby-keyword">end</span></pre>
|
300
|
+
</div><!-- client-source -->
|
301
|
+
|
302
|
+
</div>
|
303
|
+
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
</div><!-- client-method -->
|
308
|
+
|
309
|
+
|
310
|
+
<div id="method-c-upload_client" class="method-detail ">
|
311
|
+
|
312
|
+
<div class="method-heading">
|
313
|
+
<span class="method-name">upload_client</span><span
|
314
|
+
class="method-args">(access_token_hash = {})</span>
|
315
|
+
<span class="method-click-advice">click to toggle source</span>
|
316
|
+
</div>
|
317
|
+
|
318
|
+
|
319
|
+
<div class="method-description">
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
<div class="method-source-code" id="upload_client-source">
|
326
|
+
<pre><span class="ruby-comment"># File lib/flickrie/upload_client.rb, line 3</span>
|
327
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">upload_client</span>(<span class="ruby-identifier">access_token_hash</span> = {})
|
328
|
+
<span class="ruby-ivar">@upload_client</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">UploadClient</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">upload_params</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">conn</span><span class="ruby-operator">|</span>
|
329
|
+
<span class="ruby-identifier">conn</span>.<span class="ruby-identifier">request</span> <span class="ruby-value">:oauth</span>,
|
330
|
+
<span class="ruby-value">:consumer_key</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">api_key</span>,
|
331
|
+
<span class="ruby-value">:consumer_secret</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">shared_secret</span>,
|
332
|
+
<span class="ruby-value">:token</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">access_token_hash</span>[<span class="ruby-value">:token</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">access_token</span>,
|
333
|
+
<span class="ruby-value">:token_secret</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">access_token_hash</span>[<span class="ruby-value">:secret</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">access_secret</span>
|
334
|
+
<span class="ruby-identifier">conn</span>.<span class="ruby-identifier">request</span> <span class="ruby-value">:multipart</span>
|
335
|
+
|
336
|
+
<span class="ruby-identifier">conn</span>.<span class="ruby-identifier">use</span> <span class="ruby-constant">UploadStatusCheck</span>
|
337
|
+
<span class="ruby-identifier">conn</span>.<span class="ruby-identifier">response</span> <span class="ruby-value">:xml</span>
|
338
|
+
|
339
|
+
<span class="ruby-identifier">conn</span>.<span class="ruby-identifier">adapter</span> <span class="ruby-constant">Faraday</span>.<span class="ruby-identifier">default_adapter</span>
|
340
|
+
<span class="ruby-keyword">end</span>
|
341
|
+
<span class="ruby-keyword">end</span></pre>
|
342
|
+
</div><!-- upload_client-source -->
|
343
|
+
|
344
|
+
</div>
|
345
|
+
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
</div><!-- upload_client-method -->
|
350
|
+
|
351
|
+
|
352
|
+
</section><!-- public-class-method-details -->
|
353
|
+
|
354
|
+
</section><!-- 5Buntitled-5D -->
|
355
|
+
|
356
|
+
</div><!-- documentation -->
|
357
|
+
|
358
|
+
|
359
|
+
<footer id="validator-badges">
|
360
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
361
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
362
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
363
|
+
</footer>
|
364
|
+
|