ayadn 1.7.1 → 1.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -0
- data/CHANGELOG.md +6 -0
- data/lib/ayadn/action.rb +1 -1
- data/lib/ayadn/endpoints.rb +1 -1
- data/lib/ayadn/set.rb +14 -17
- data/lib/ayadn/version.rb +1 -1
- data/lib/ayadn/view.rb +4 -13
- data/spec/mock/channels.json +1 -0
- data/spec/mock/files.json +242 -0
- data/spec/mock/int.json +695 -0
- data/spec/mock/nicerank.json +1 -0
- data/spec/unit/annotations_spec.rb +139 -0
- data/spec/unit/blacklistworkers_spec.rb +28 -23
- data/spec/unit/databases_spec.rb +7 -0
- data/spec/unit/endpoints_spec.rb +55 -5
- data/spec/unit/nicerank_spec.rb +120 -0
- data/spec/unit/post_spec.rb +9 -18
- data/spec/unit/set_spec.rb +240 -69
- data/spec/unit/view_spec.rb +107 -5
- data/spec/unit/workers_spec.rb +92 -46
- metadata +14 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b3446f30e2035384926d37687d0063e8babc1f2
|
4
|
+
data.tar.gz: 3cc304f22b3d4e73b1d80a22ec079959b6032dab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9cf55b0587c5399cfc8684f54bf7af4ea0e7d45b6a357774e837b4eb3d59834b1ddfb27c9ebc0cd74b74b1735402922879d18df72af97addb3ea5f778216714
|
7
|
+
data.tar.gz: 3c8dc7b8fe631221157c8d36994f205a3504cfc56b0977d7b336d446c72cf71e54b79da311550792a0a0985e7f1f3cab22215800b3b35b7548553dada1002e26
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
# 1.7.2 (2014-09-04) - 'Fortress'
|
2
|
+
|
3
|
+
- Fixed: option to retrieve only specified channels in Channels
|
4
|
+
- Fixed: validators for Set
|
5
|
+
- New: better tests suite
|
6
|
+
|
1
7
|
# 1.7.1 (2014-09-02) - 'Poltergeist'
|
2
8
|
|
3
9
|
- New: update your user profile (full name, bio (user description), avatar, cover, Twitter username, blog url, web url)
|
data/lib/ayadn/action.rb
CHANGED
data/lib/ayadn/endpoints.rb
CHANGED
@@ -257,7 +257,7 @@ module Ayadn
|
|
257
257
|
end
|
258
258
|
|
259
259
|
def channel(channel_id, options = {})
|
260
|
-
"#{@channels_url}
|
260
|
+
"#{@channels_url}?ids=#{channel_id.join(',')}&access_token=#{Settings.user_token}#{API.build_query(options)}"
|
261
261
|
end
|
262
262
|
|
263
263
|
def messages(channel_id, options = {})
|
data/lib/ayadn/set.rb
CHANGED
@@ -6,8 +6,7 @@ module Ayadn
|
|
6
6
|
def scroll(*args)
|
7
7
|
scroll_config = SetScroll.new
|
8
8
|
if args[0]
|
9
|
-
|
10
|
-
scroll_config.send(args[0], param)
|
9
|
+
scroll_config.send(args[0], args[1])
|
11
10
|
else
|
12
11
|
abort(Status.error_missing_parameters)
|
13
12
|
end
|
@@ -60,8 +59,7 @@ module Ayadn
|
|
60
59
|
timeline_config = SetTimeline.new
|
61
60
|
if args[0]
|
62
61
|
begin
|
63
|
-
|
64
|
-
timeline_config.send(args[0], param)
|
62
|
+
timeline_config.send(args[0], args[1])
|
65
63
|
rescue NoMethodError, ArgumentError
|
66
64
|
puts Status.error_missing_parameters
|
67
65
|
exit
|
@@ -82,8 +80,7 @@ module Ayadn
|
|
82
80
|
counts_config = SetCounts.new
|
83
81
|
if args[0]
|
84
82
|
begin
|
85
|
-
|
86
|
-
counts_config.send(args[0], param)
|
83
|
+
counts_config.send(args[0], args[1])
|
87
84
|
rescue NoMethodError, ArgumentError
|
88
85
|
puts Status.error_missing_parameters
|
89
86
|
exit
|
@@ -106,7 +103,6 @@ module Ayadn
|
|
106
103
|
color_config = SetColor.new
|
107
104
|
if args[0]
|
108
105
|
begin
|
109
|
-
color_config.validate(args[1])
|
110
106
|
color_config.send(args[0], args[1])
|
111
107
|
rescue NoMethodError, ArgumentError
|
112
108
|
puts Status.error_missing_parameters
|
@@ -127,8 +123,7 @@ module Ayadn
|
|
127
123
|
backup_config = SetBackup.new
|
128
124
|
if args[0]
|
129
125
|
begin
|
130
|
-
|
131
|
-
backup_config.send(args[0], param)
|
126
|
+
backup_config.send(args[0], args[1])
|
132
127
|
rescue NoMethodError, ArgumentError
|
133
128
|
puts Status.error_missing_parameters
|
134
129
|
exit
|
@@ -190,9 +185,11 @@ module Ayadn
|
|
190
185
|
end
|
191
186
|
def self.color(color)
|
192
187
|
colors_list = %w{red green magenta cyan yellow blue white black}
|
193
|
-
unless colors_list.include?(color)
|
188
|
+
unless colors_list.include?(color.to_s)
|
194
189
|
puts Status.error_missing_parameters
|
195
190
|
abort(Status.valid_colors(colors_list))
|
191
|
+
else
|
192
|
+
return color
|
196
193
|
end
|
197
194
|
end
|
198
195
|
end
|
@@ -216,7 +213,7 @@ module Ayadn
|
|
216
213
|
Validators.timer(t)
|
217
214
|
end
|
218
215
|
def timer(t)
|
219
|
-
Settings.options[:scroll][:timer] = t
|
216
|
+
Settings.options[:scroll][:timer] = validate(t)
|
220
217
|
end
|
221
218
|
end
|
222
219
|
|
@@ -310,7 +307,7 @@ module Ayadn
|
|
310
307
|
def method_missing(meth, options)
|
311
308
|
case meth.to_s
|
312
309
|
when 'auto_save_sent_posts', 'auto_save_sent_messages', 'auto_save_lists'
|
313
|
-
Settings.options[:backup][meth.to_sym] = options
|
310
|
+
Settings.options[:backup][meth.to_sym] = validate(options)
|
314
311
|
else
|
315
312
|
super
|
316
313
|
end
|
@@ -338,7 +335,7 @@ module Ayadn
|
|
338
335
|
def method_missing(meth, options)
|
339
336
|
case meth.to_s
|
340
337
|
when 'default', 'unified', 'checkins', 'conversations', 'global', 'photos', 'trending', 'mentions', 'convo', 'posts', 'messages', 'search', 'whoreposted', 'whostarred', 'whatstarred', 'files'
|
341
|
-
Settings.options[:counts][meth.to_sym] = options.to_i
|
338
|
+
Settings.options[:counts][meth.to_sym] = validate(options.to_i)
|
342
339
|
else
|
343
340
|
super
|
344
341
|
end
|
@@ -366,7 +363,7 @@ module Ayadn
|
|
366
363
|
def method_missing(meth, options)
|
367
364
|
case meth.to_s
|
368
365
|
when 'directed', 'html', 'show_source', 'show_symbols', 'show_real_name', 'show_date', 'show_spinner', 'show_debug'
|
369
|
-
Settings.options[:timeline][meth.to_sym] = options
|
366
|
+
Settings.options[:timeline][meth.to_sym] = validate(options)
|
370
367
|
when 'deleted', 'annotations'
|
371
368
|
abort(Status.not_mutable)
|
372
369
|
else
|
@@ -400,11 +397,11 @@ module Ayadn
|
|
400
397
|
def method_missing(meth, options)
|
401
398
|
case meth.to_s
|
402
399
|
when 'id', 'index', 'username', 'name', 'date', 'link', 'dots', 'hashtags', 'mentions', 'source', 'symbols', 'debug'
|
403
|
-
Settings.options[:colors][meth.to_sym] = options.to_sym
|
400
|
+
Settings.options[:colors][meth.to_sym] = validate(options.to_sym)
|
404
401
|
when 'hashtag', 'mention', 'symbol'
|
405
|
-
Settings.options[:colors]["#{meth}s".to_sym] = options.to_sym
|
402
|
+
Settings.options[:colors]["#{meth}s".to_sym] = validate(options.to_sym)
|
406
403
|
when 'client'
|
407
|
-
Settings.options[:colors][:source] = options.to_sym
|
404
|
+
Settings.options[:colors][:source] = validate(options.to_sym)
|
408
405
|
else
|
409
406
|
super
|
410
407
|
end
|
data/lib/ayadn/version.rb
CHANGED
data/lib/ayadn/view.rb
CHANGED
@@ -14,13 +14,13 @@ module Ayadn
|
|
14
14
|
puts "\e[?25l"
|
15
15
|
end
|
16
16
|
|
17
|
-
def show_posts_with_index(data, options, niceranks = {})
|
17
|
+
def show_posts_with_index(data, options = {}, niceranks = {})
|
18
18
|
posts, view = build_stream_with_index(data, options, niceranks)
|
19
19
|
puts view unless view == ""
|
20
20
|
Databases.save_indexed_posts(posts)
|
21
21
|
end
|
22
22
|
|
23
|
-
def show_posts(data, options, niceranks = {})
|
23
|
+
def show_posts(data, options = {}, niceranks = {})
|
24
24
|
resp = build_stream_without_index(data, options, niceranks)
|
25
25
|
puts resp unless resp == ""
|
26
26
|
end
|
@@ -37,7 +37,7 @@ module Ayadn
|
|
37
37
|
jj stream
|
38
38
|
end
|
39
39
|
|
40
|
-
def show_simple_post(post, options)
|
40
|
+
def show_simple_post(post, options = {})
|
41
41
|
puts build_stream_without_index(post, options, {})
|
42
42
|
end
|
43
43
|
|
@@ -45,10 +45,6 @@ module Ayadn
|
|
45
45
|
show_simple_post([resp['data']], {})
|
46
46
|
end
|
47
47
|
|
48
|
-
def show_simple_stream(stream)
|
49
|
-
puts stream
|
50
|
-
end
|
51
|
-
|
52
48
|
def show_list_reposted(list, target)
|
53
49
|
users_list, table = @workers.build_reposted_list(list, target)
|
54
50
|
puts @workers.build_users_list(users_list, table)
|
@@ -287,7 +283,7 @@ module Ayadn
|
|
287
283
|
end
|
288
284
|
view << "\n\n"
|
289
285
|
end
|
290
|
-
view << "\nYour account is currently linked to #{bucket.length} channels.\n\n".color(:green) unless options[:channels]
|
286
|
+
view << "\nYour account is currently linked to #{bucket.length} channels.\n\n".color(:green) unless options[:channels] || options[:id]
|
291
287
|
puts view
|
292
288
|
end
|
293
289
|
|
@@ -308,11 +304,6 @@ module Ayadn
|
|
308
304
|
end
|
309
305
|
end
|
310
306
|
|
311
|
-
def get_simple_view(stream)
|
312
|
-
clear_screen()
|
313
|
-
show_simple_stream(stream)
|
314
|
-
end
|
315
|
-
|
316
307
|
def clear_screen
|
317
308
|
puts "\e[H\e[2J"
|
318
309
|
end
|
@@ -0,0 +1 @@
|
|
1
|
+
{"meta"=>{"code"=>200}, "data"=>[{"is_inactive"=>false, "readers"=>{"public"=>false, "user_ids"=>[], "any_user"=>false, "you"=>true, "immutable"=>false}, "you_muted"=>false, "you_can_edit"=>true, "recent_message"=>{"num_replies"=>0, "entities"=>{"mentions"=>[], "hashtags"=>[], "links"=>[{"url"=>"https://github.com/ericdke/ADNCommits/fa7cc70e69b9ddcf1c05d4c2c81eda45b2151286", "text"=>"COMMIT", "pos"=>0, "len"=>6, "amended_len"=>19}]}, "text"=>"COMMIT [github.com] Eric Dejonckheere Sat Aug 30 14:04:17 2014 +0200 '\n CLI class, ok'", "created_at"=>"2014-08-30T12:06:03Z", "annotations"=>[{"type"=>"com.adncommits", "value"=>{"comment"=>"\n CLI class, ok", "name"=>"Eric Dejonckheere", "commit_url"=>"https://github.com/ericdke/ADNCommits/fa7cc70e69b9ddcf1c05d4c2c81eda45b2151286", "date"=>"2014-08-30T14:04:17+00:00", "commit"=>"fa7cc70e69b9ddcf1c05d4c2c81eda45b2151286", "email"=>"eric@aya.io"}}], "channel_id"=>"55781", "machine_only"=>false, "source"=>{"link"=>"http://xxx", "name"=>"xxx", "client_id"=>"3gSAE7YNkRR4bswbNtK8JGPySK3TxrVS"}, "thread_id"=>"4704033", "id"=>"4704033", "user"=>{"username"=>"aya_tests", "avatar_image"=>{"url"=>"https://d2rfichhc2fb9n.cloudfront.net/image/5/mIRingbIUWKkeHVrF_CGfcBH2P17InMiOiJzMyIsImIiOiJhZG4tdXNlci1hc3NldHMiLCJrIjoiYXNzZXRzL3VzZXIvMWMvNDkvOTAvMWM0OTkwMDAwMDAwMDAwMC5qcGciLCJvIjoiIn0", "width"=>200, "is_default"=>false, "height"=>200}, "description"=>{"text"=>"This is a test account. Nothing to see here, move along.", "entities"=>{"mentions"=>[], "hashtags"=>[], "links"=>[]}}, "locale"=>"fr_FR", "created_at"=>"2013-11-02T17:06:51Z", "id"=>"185581", "canonical_url"=>"https://alpha.app.net/aya_tests", "cover_image"=>{"url"=>"https://d2rfichhc2fb9n.cloudfront.net/image/5/nbzo6W-D5fi8vX788PISqRAuBEF7InMiOiJzMyIsImIiOiJhZG4tdXNlci1hc3NldHMiLCJrIjoiYXNzZXRzL3VzZXIvMmIvNDkvOTAvMmI0OTkwMDAwMDAwMDAwMC5qcGciLCJvIjoiIn0", "width"=>1198, "is_default"=>false, "height"=>382}, "timezone"=>"Europe/Berlin", "counts"=>{"following"=>12, "posts"=>1222, "followers"=>3, "stars"=>6}, "type"=>"human", "annotations"=>[{"type"=>"net.app.core.directory.homepage", "value"=>{"url"=>"http://aya.io"}}, {"type"=>"net.app.core.directory.twitter", "value"=>{"username"=>"ritsz"}}, {"type"=>"net.app.core.directory.blog", "value"=>{"url"=>"http://aya.io"}}], "name"=>"Big Jim"}}, "has_unread"=>true, "editors"=>{"public"=>false, "user_ids"=>[], "any_user"=>false, "you"=>true, "immutable"=>false}, "annotations"=>[], "recent_message_id"=>"4704033", "writers"=>{"public"=>false, "user_ids"=>[], "any_user"=>false, "you"=>true, "immutable"=>false}, "you_subscribed"=>true, "owner"=>{"username"=>"aya_tests", "avatar_image"=>{"url"=>"https://d2rfichhc2fb9n.cloudfront.net/image/5/mIRingbIUWKkeHVrF_CGfcBH2P17InMiOiJzMyIsImIiOiJhZG4tdXNlci1hc3NldHMiLCJrIjoiYXNzZXRzL3VzZXIvMWMvNDkvOTAvMWM0OTkwMDAwMDAwMDAwMC5qcGciLCJvIjoiIn0", "width"=>200, "is_default"=>false, "height"=>200}, "description"=>{"text"=>"This is a test account. Nothing to see here, move along.", "entities"=>{"mentions"=>[], "hashtags"=>[], "links"=>[]}}, "locale"=>"fr_FR", "created_at"=>"2013-11-02T17:06:51Z", "id"=>"185581", "canonical_url"=>"https://alpha.app.net/aya_tests", "cover_image"=>{"url"=>"https://d2rfichhc2fb9n.cloudfront.net/image/5/nbzo6W-D5fi8vX788PISqRAuBEF7InMiOiJzMyIsImIiOiJhZG4tdXNlci1hc3NldHMiLCJrIjoiYXNzZXRzL3VzZXIvMmIvNDkvOTAvMmI0OTkwMDAwMDAwMDAwMC5qcGciLCJvIjoiIn0", "width"=>1198, "is_default"=>false, "height"=>382}, "timezone"=>"Europe/Berlin", "counts"=>{"following"=>12, "posts"=>1222, "followers"=>3, "stars"=>6}, "type"=>"human", "annotations"=>[{"type"=>"net.app.core.directory.homepage", "value"=>{"url"=>"http://aya.io"}}, {"type"=>"net.app.core.directory.twitter", "value"=>{"username"=>"ritsz"}}, {"type"=>"net.app.core.directory.blog", "value"=>{"url"=>"http://aya.io"}}], "name"=>"Big Jim"}, "counts"=>{"messages"=>21}, "type"=>"com.adncommits", "id"=>"55781"}, {"is_inactive"=>false, "readers"=>{"public"=>false, "user_ids"=>[], "any_user"=>false, "you"=>true, "immutable"=>false}, "you_muted"=>false, "you_can_edit"=>true, "recent_message"=>{"num_replies"=>0, "entities"=>{"mentions"=>[], "hashtags"=>[], "links"=>[]}, "text"=>"Copyright (c) 2014 Eric Dejonckheere\n\nMIT License\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n", "created_at"=>"2014-03-02T00:31:36Z", "annotations"=>[], "channel_id"=>"46221", "machine_only"=>false, "source"=>{"link"=>"http://notes-app.net/", "name"=>"@notes", "client_id"=>"TgaFp4k7bKzZxT4TFgxVnAuTpdCAD7w4"}, "thread_id"=>"2944620", "id"=>"2944620", "user"=>{"username"=>"aya_tests", "avatar_image"=>{"url"=>"https://d2rfichhc2fb9n.cloudfront.net/image/5/mIRingbIUWKkeHVrF_CGfcBH2P17InMiOiJzMyIsImIiOiJhZG4tdXNlci1hc3NldHMiLCJrIjoiYXNzZXRzL3VzZXIvMWMvNDkvOTAvMWM0OTkwMDAwMDAwMDAwMC5qcGciLCJvIjoiIn0", "width"=>200, "is_default"=>false, "height"=>200}, "description"=>{"text"=>"This is a test account. Nothing to see here, move along.", "entities"=>{"mentions"=>[], "hashtags"=>[], "links"=>[]}}, "locale"=>"fr_FR", "created_at"=>"2013-11-02T17:06:51Z", "id"=>"185581", "canonical_url"=>"https://alpha.app.net/aya_tests", "cover_image"=>{"url"=>"https://d2rfichhc2fb9n.cloudfront.net/image/5/nbzo6W-D5fi8vX788PISqRAuBEF7InMiOiJzMyIsImIiOiJhZG4tdXNlci1hc3NldHMiLCJrIjoiYXNzZXRzL3VzZXIvMmIvNDkvOTAvMmI0OTkwMDAwMDAwMDAwMC5qcGciLCJvIjoiIn0", "width"=>1198, "is_default"=>false, "height"=>382}, "timezone"=>"Europe/Berlin", "counts"=>{"following"=>12, "posts"=>1222, "followers"=>3, "stars"=>6}, "type"=>"human", "annotations"=>[{"type"=>"net.app.core.directory.homepage", "value"=>{"url"=>"http://aya.io"}}, {"type"=>"net.app.core.directory.twitter", "value"=>{"username"=>"ritsz"}}, {"type"=>"net.app.core.directory.blog", "value"=>{"url"=>"http://aya.io"}}], "name"=>"Big Jim"}}, "has_unread"=>true, "editors"=>{"public"=>false, "user_ids"=>[], "any_user"=>false, "you"=>true, "immutable"=>false}, "annotations"=>[], "recent_message_id"=>"2944620", "writers"=>{"public"=>false, "user_ids"=>[], "any_user"=>false, "you"=>true, "immutable"=>false}, "you_subscribed"=>true, "owner"=>{"username"=>"aya_tests", "avatar_image"=>{"url"=>"https://d2rfichhc2fb9n.cloudfront.net/image/5/mIRingbIUWKkeHVrF_CGfcBH2P17InMiOiJzMyIsImIiOiJhZG4tdXNlci1hc3NldHMiLCJrIjoiYXNzZXRzL3VzZXIvMWMvNDkvOTAvMWM0OTkwMDAwMDAwMDAwMC5qcGciLCJvIjoiIn0", "width"=>200, "is_default"=>false, "height"=>200}, "description"=>{"text"=>"This is a test account. Nothing to see here, move along.", "entities"=>{"mentions"=>[], "hashtags"=>[], "links"=>[]}}, "locale"=>"fr_FR", "created_at"=>"2013-11-02T17:06:51Z", "id"=>"185581", "canonical_url"=>"https://alpha.app.net/aya_tests", "cover_image"=>{"url"=>"https://d2rfichhc2fb9n.cloudfront.net/image/5/nbzo6W-D5fi8vX788PISqRAuBEF7InMiOiJzMyIsImIiOiJhZG4tdXNlci1hc3NldHMiLCJrIjoiYXNzZXRzL3VzZXIvMmIvNDkvOTAvMmI0OTkwMDAwMDAwMDAwMC5qcGciLCJvIjoiIn0", "width"=>1198, "is_default"=>false, "height"=>382}, "timezone"=>"Europe/Berlin", "counts"=>{"following"=>12, "posts"=>1222, "followers"=>3, "stars"=>6}, "type"=>"human", "annotations"=>[{"type"=>"net.app.core.directory.homepage", "value"=>{"url"=>"http://aya.io"}}, {"type"=>"net.app.core.directory.twitter", "value"=>{"username"=>"ritsz"}}, {"type"=>"net.app.core.directory.blog", "value"=>{"url"=>"http://aya.io"}}], "name"=>"Big Jim"}, "counts"=>{"messages"=>1}, "type"=>"net.note-app.notebook.id.46220", "id"=>"46221"}]}
|
@@ -0,0 +1,242 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"file_token_read": "ayHe_2ubbNI6vVW3tu_yIpt-NE21rrc3J0-g_lMRWZDdXuK-bD2mhqXU6ElNuMy4NVFEMKtyhwELrkqM3Izecv6XMfCMWOc1UnTo_JxC8UWFIKBOuLVNAX7oia1Q3D-YYMMZ-X_Sr_D-gMCrnYNHFipDwl8_0daeqPFaJ96vH55VxBRJdbVXvEmqAT7VeCTSJ",
|
4
|
+
"id": "1666772",
|
5
|
+
"size": 139891,
|
6
|
+
"derived_files": {
|
7
|
+
"image_thumb_200s": {
|
8
|
+
"sha1": "552a2c8ec9cfe1eb7c144d3209ad014b77eb17d2",
|
9
|
+
"name": "01_image_thumb_200s.jpg",
|
10
|
+
"url": "https://d36tc8clsz1tk5.cloudfront.net/adn-uf-01/CJ/fR/GB/CJfRGBZnPn7nNtmJYiWgXypgPRqhZ-qlSirqlMVSczc?response-cache-control=public%2C%20max-age%3D7200%2C%20s-maxage%3D172800&response-content-disposition=inline%3B%20filename%2A%3DUTF-8%27%2701_image_thumb_200s.jpg&Expires=1409824800&Signature=pegZHuIz4J~3SkJf34W7lGNQFjAOb01gVmNfFQn7xEPmrn9MJbAzpx8k-uHvktKJRMswPNJWGD4PeH9Tfz5ddqXM~F1AlZJcYJYH6Qi9GRzfduOpIchMTMlJbauC105mGASljQKidN~A7zDeaQTZINkQngIfe385eFIe5sm9TH4_&Key-Pair-Id=APKAIWNGPWT6YVKFBWJA",
|
11
|
+
"url_expires": "2014-09-04T10:00:00Z",
|
12
|
+
"image_info": {
|
13
|
+
"width": 200,
|
14
|
+
"height": 200
|
15
|
+
},
|
16
|
+
"mime_type": "image/jpeg",
|
17
|
+
"size": 18536
|
18
|
+
},
|
19
|
+
"image_thumb_960r": {
|
20
|
+
"sha1": "e477c92d918bcf14600876fa5fb514356faceb31",
|
21
|
+
"name": "01_image_thumb_960r.jpg",
|
22
|
+
"url": "https://d36tc8clsz1tk5.cloudfront.net/adn-uf-01/5I/FP/oN/5IFPoNtEGyJN3hzeCs4dqCpgPRqhZ-qlSirqlMVSczc?response-cache-control=public%2C%20max-age%3D7200%2C%20s-maxage%3D172800&response-content-disposition=inline%3B%20filename%2A%3DUTF-8%27%2701_image_thumb_960r.jpg&Expires=1409824800&Signature=in-soNPFcVooz8dlmsQ91I1wEC12LgFYOy10QPrc5OAKrcp6xjCBQ3UHKCE-COunf96msyXzS41cq0YrCd86G8QAd3SNIhCyBOVjvGxzWNaaZQixvbd~csVQ-3zcMdjRhwgzqkk~V9WcrgVF9GZJgTLRHgy6XK1rWJhUzT9luEs_&Key-Pair-Id=APKAIWNGPWT6YVKFBWJA",
|
23
|
+
"url_expires": "2014-09-04T10:00:00Z",
|
24
|
+
"image_info": {
|
25
|
+
"width": 640,
|
26
|
+
"height": 400
|
27
|
+
},
|
28
|
+
"mime_type": "image/jpeg",
|
29
|
+
"size": 85640
|
30
|
+
}
|
31
|
+
},
|
32
|
+
"url_permanent": "https://files.app.net/1/1666772/ayHe_2ubbNI6vVW3tu_yIpt-NE21rrc3J0-g_lMRWZDdXuK-bD2mhqXU6ElNuMy4NVFEMKtyhwELrkqM3Izecv6XMfCMWOc1UnTo_JxC8UWFIKBOuLVNAX7oia1Q3D-YYMMZ-X_Sr_D-gMCrnYNHFipDwl8_0daeqPFaJ96vH55VxBRJdbVXvEmqAT7VeCTSJ",
|
33
|
+
"total_size": 244067,
|
34
|
+
"source": {
|
35
|
+
"link": "http://www.ayadn-app.net",
|
36
|
+
"name": "Ayadn",
|
37
|
+
"client_id": "hFsCGArAjgJkYBHTHbZnUvzTmL4vaLHL"
|
38
|
+
},
|
39
|
+
"annotations": [
|
40
|
+
|
41
|
+
],
|
42
|
+
"image_info": {
|
43
|
+
"width": 800,
|
44
|
+
"height": 500
|
45
|
+
},
|
46
|
+
"type": "com.ayadn.files",
|
47
|
+
"pagination_id": "1666772",
|
48
|
+
"mime_type": "image/jpeg",
|
49
|
+
"file_token": "aIYYx1EO4IfPHJQGbMxc2QVXy8vZipIu44F_1apuDy6aU7bzCwoPm0XiYj1vweR8yN11zgYtjdlENTZ-gbzVo2TlH-rYsEpyXW06ErIGfLm0ZL4RADzdvyK9suiGo2ROoi-SkmE12Rk7VgNiSCLI4bIK9OrQELKmRdeqwESMNom5o13146Na5JA-OtnwetQZg",
|
50
|
+
"complete": true,
|
51
|
+
"user": {
|
52
|
+
"username": "aya_tests",
|
53
|
+
"avatar_image": {
|
54
|
+
"url": "https://d2rfichhc2fb9n.cloudfront.net/image/5/mIRingbIUWKkeHVrF_CGfcBH2P17InMiOiJzMyIsImIiOiJhZG4tdXNlci1hc3NldHMiLCJrIjoiYXNzZXRzL3VzZXIvMWMvNDkvOTAvMWM0OTkwMDAwMDAwMDAwMC5qcGciLCJvIjoiIn0",
|
55
|
+
"width": 200,
|
56
|
+
"is_default": false,
|
57
|
+
"height": 200
|
58
|
+
},
|
59
|
+
"description": {
|
60
|
+
"text": "This is a test account. Nothing to see here, move along.",
|
61
|
+
"entities": {
|
62
|
+
"mentions": [
|
63
|
+
|
64
|
+
],
|
65
|
+
"hashtags": [
|
66
|
+
|
67
|
+
],
|
68
|
+
"links": [
|
69
|
+
|
70
|
+
]
|
71
|
+
}
|
72
|
+
},
|
73
|
+
"locale": "fr_FR",
|
74
|
+
"created_at": "2013-11-02T17:06:51Z",
|
75
|
+
"id": "185581",
|
76
|
+
"canonical_url": "https://alpha.app.net/aya_tests",
|
77
|
+
"cover_image": {
|
78
|
+
"url": "https://d2rfichhc2fb9n.cloudfront.net/image/5/nbzo6W-D5fi8vX788PISqRAuBEF7InMiOiJzMyIsImIiOiJhZG4tdXNlci1hc3NldHMiLCJrIjoiYXNzZXRzL3VzZXIvMmIvNDkvOTAvMmI0OTkwMDAwMDAwMDAwMC5qcGciLCJvIjoiIn0",
|
79
|
+
"width": 1198,
|
80
|
+
"is_default": false,
|
81
|
+
"height": 382
|
82
|
+
},
|
83
|
+
"timezone": "Europe/Berlin",
|
84
|
+
"counts": {
|
85
|
+
"following": 12,
|
86
|
+
"posts": 1217,
|
87
|
+
"followers": 3,
|
88
|
+
"stars": 6
|
89
|
+
},
|
90
|
+
"type": "human",
|
91
|
+
"annotations": [
|
92
|
+
{
|
93
|
+
"type": "net.app.core.directory.homepage",
|
94
|
+
"value": {
|
95
|
+
"url": "http://aya.io"
|
96
|
+
}
|
97
|
+
},
|
98
|
+
{
|
99
|
+
"type": "net.app.core.directory.twitter",
|
100
|
+
"value": {
|
101
|
+
"username": "ritsz"
|
102
|
+
}
|
103
|
+
},
|
104
|
+
{
|
105
|
+
"type": "net.app.core.directory.blog",
|
106
|
+
"value": {
|
107
|
+
"url": "http://aya.io"
|
108
|
+
}
|
109
|
+
}
|
110
|
+
],
|
111
|
+
"name": "Big Jim"
|
112
|
+
},
|
113
|
+
"kind": "image",
|
114
|
+
"sha1": "178cf00075fc0a105c4bf0350a02fae42f07f03f",
|
115
|
+
"name": "01.jpg",
|
116
|
+
"url": "https://d36tc8clsz1tk5.cloudfront.net/adn-uf-01/d4/Dx/O2/d4DxO28PgmkS4JapLGS5CipgPRqhZ-qlSirqlMVSczc?response-cache-control=public%2C%20max-age%3D7200%2C%20s-maxage%3D172800&response-content-disposition=inline%3B%20filename%2A%3DUTF-8%27%2701.jpg&Expires=1409824800&Signature=T46UbO4KkJNi4LvkJOpIZ0ACCwDbDv5gogWVOfFGOurItCmzlD0a1GAGbc7a1FnYZWpD-rpmdCIwM2mw6HVf-8-ixtfMHHq2CBgYtWQ0OWMAshbq5j1A-5T-r8Mof-W5ErlQAxY2CIp5xsrguPYFqqx1rE5sqVwg63b5vorXxyo_&Key-Pair-Id=APKAIWNGPWT6YVKFBWJA",
|
117
|
+
"created_at": "2014-08-31T15:41:43Z",
|
118
|
+
"url_short": "https://files.app.net/w2xvwKNf2",
|
119
|
+
"public": true,
|
120
|
+
"url_expires": "2014-09-04T10:00:00Z"
|
121
|
+
},
|
122
|
+
{
|
123
|
+
"file_token_read": "aqZzo21CFvmCfY6APcKkeieE4wvId3C7KgQ7FBHfXzD0UlLkTrgBk1p_VG7uM0dwHMwFG_40i00boeSUXZFCWBFZ8brQJOfx0YWh-p1HqM9VwP2zhLRtMU9HjIEsf0niFtw86RuyRBUFD5vqvRN7UuOE3MuuyP1uv834hq1i-Eb9cOm0V8rw3wGmcWcL_tN1u",
|
124
|
+
"id": "1666771",
|
125
|
+
"size": 95603,
|
126
|
+
"derived_files": {
|
127
|
+
"image_thumb_200s": {
|
128
|
+
"sha1": "0a7a2f3b98b7ed9fb6c60e38be75ecebb1041e14",
|
129
|
+
"name": "02_image_thumb_200s.png",
|
130
|
+
"url": "https://d36tc8clsz1tk5.cloudfront.net/adn-uf-01/Ud/7H/Of/Ud7HOflUHzuTKnpQeBN1pypgPRqhZ-qlSirqlMVSczc?response-cache-control=public%2C%20max-age%3D7200%2C%20s-maxage%3D172800&response-content-disposition=inline%3B%20filename%2A%3DUTF-8%27%2702_image_thumb_200s.png&Expires=1409824800&Signature=KKtyqnaBeUKOhGnULm40Ik6UJIwwlRzQjnmZBO0ijgNNWENgChmY~grLhzd3nt9Rrq6Sn3zdtYus4h3hu3ZWBTIeNcQYEA2fqKeLNNnUMKP3iLE1LHCei2JjqNwEsnvHrRiGgjzvbOEQiWlsq0JHVU8lVwIAX4UsYtTMgBC-Uio_&Key-Pair-Id=APKAIWNGPWT6YVKFBWJA",
|
131
|
+
"url_expires": "2014-09-04T10:00:00Z",
|
132
|
+
"image_info": {
|
133
|
+
"width": 200,
|
134
|
+
"height": 200
|
135
|
+
},
|
136
|
+
"mime_type": "image/png",
|
137
|
+
"size": 12083
|
138
|
+
},
|
139
|
+
"image_thumb_960r": {
|
140
|
+
"sha1": "7369788b19dbbdf81226cd2cdac3f380d4cba1bb",
|
141
|
+
"name": "02_image_thumb_960r.png",
|
142
|
+
"url": "https://d36tc8clsz1tk5.cloudfront.net/adn-uf-01/kS/ef/dx/kSefdxaLSYkIsM5RQvd-uCpgPRqhZ-qlSirqlMVSczc?response-cache-control=public%2C%20max-age%3D7200%2C%20s-maxage%3D172800&response-content-disposition=inline%3B%20filename%2A%3DUTF-8%27%2702_image_thumb_960r.png&Expires=1409824800&Signature=XccsVRqwD1KZ51sMhpN7hAc2dAT6S5i0vglCTe3oTllj6M9MhH3lqtnLT27~AmnT~73RpjdsukymaIrMn4NT-P5R3DjxC965-XdQPmEqvIcTgGLUALubpPGVXtzpgz2DIq9JBHLrmJnNsvi8RjAOYeVfbW7sOkBW5ppuKjv39KM_&Key-Pair-Id=APKAIWNGPWT6YVKFBWJA",
|
143
|
+
"url_expires": "2014-09-04T10:00:00Z",
|
144
|
+
"image_info": {
|
145
|
+
"width": 640,
|
146
|
+
"height": 338
|
147
|
+
},
|
148
|
+
"mime_type": "image/png",
|
149
|
+
"size": 73038
|
150
|
+
}
|
151
|
+
},
|
152
|
+
"url_permanent": "https://files.app.net/1/1666771/aqZzo21CFvmCfY6APcKkeieE4wvId3C7KgQ7FBHfXzD0UlLkTrgBk1p_VG7uM0dwHMwFG_40i00boeSUXZFCWBFZ8brQJOfx0YWh-p1HqM9VwP2zhLRtMU9HjIEsf0niFtw86RuyRBUFD5vqvRN7UuOE3MuuyP1uv834hq1i-Eb9cOm0V8rw3wGmcWcL_tN1u",
|
153
|
+
"total_size": 180724,
|
154
|
+
"source": {
|
155
|
+
"link": "http://www.ayadn-app.net",
|
156
|
+
"name": "Ayadn",
|
157
|
+
"client_id": "hFsCGArAjgJkYBHTHbZnUvzTmL4vaLHL"
|
158
|
+
},
|
159
|
+
"annotations": [
|
160
|
+
|
161
|
+
],
|
162
|
+
"image_info": {
|
163
|
+
"width": 969,
|
164
|
+
"height": 512
|
165
|
+
},
|
166
|
+
"type": "com.ayadn.files",
|
167
|
+
"pagination_id": "1666771",
|
168
|
+
"mime_type": "image/png",
|
169
|
+
"file_token": "aL6jDvLak-zU6BIkE47I6itSsic2u5oea6FSOlylLdfdvyhxsHAEg6eg3p6qdSmqOt0ePQNaaaar2_pxZs4KOph3sQQVUZBmNwCPmq3hncDG-zbMvgWV_t1fm174uv6lMZhLwwWLFzdRg_aCH6awod8NeTJhDYyZqdE0IdLDlwCceILmSTKJWd9gQsRp3S6ae",
|
170
|
+
"complete": true,
|
171
|
+
"user": {
|
172
|
+
"username": "aya_tests",
|
173
|
+
"avatar_image": {
|
174
|
+
"url": "https://d2rfichhc2fb9n.cloudfront.net/image/5/mIRingbIUWKkeHVrF_CGfcBH2P17InMiOiJzMyIsImIiOiJhZG4tdXNlci1hc3NldHMiLCJrIjoiYXNzZXRzL3VzZXIvMWMvNDkvOTAvMWM0OTkwMDAwMDAwMDAwMC5qcGciLCJvIjoiIn0",
|
175
|
+
"width": 200,
|
176
|
+
"is_default": false,
|
177
|
+
"height": 200
|
178
|
+
},
|
179
|
+
"description": {
|
180
|
+
"text": "This is a test account. Nothing to see here, move along.",
|
181
|
+
"entities": {
|
182
|
+
"mentions": [
|
183
|
+
|
184
|
+
],
|
185
|
+
"hashtags": [
|
186
|
+
|
187
|
+
],
|
188
|
+
"links": [
|
189
|
+
|
190
|
+
]
|
191
|
+
}
|
192
|
+
},
|
193
|
+
"locale": "fr_FR",
|
194
|
+
"created_at": "2013-11-02T17:06:51Z",
|
195
|
+
"id": "185581",
|
196
|
+
"canonical_url": "https://alpha.app.net/aya_tests",
|
197
|
+
"cover_image": {
|
198
|
+
"url": "https://d2rfichhc2fb9n.cloudfront.net/image/5/nbzo6W-D5fi8vX788PISqRAuBEF7InMiOiJzMyIsImIiOiJhZG4tdXNlci1hc3NldHMiLCJrIjoiYXNzZXRzL3VzZXIvMmIvNDkvOTAvMmI0OTkwMDAwMDAwMDAwMC5qcGciLCJvIjoiIn0",
|
199
|
+
"width": 1198,
|
200
|
+
"is_default": false,
|
201
|
+
"height": 382
|
202
|
+
},
|
203
|
+
"timezone": "Europe/Berlin",
|
204
|
+
"counts": {
|
205
|
+
"following": 12,
|
206
|
+
"posts": 1217,
|
207
|
+
"followers": 3,
|
208
|
+
"stars": 6
|
209
|
+
},
|
210
|
+
"type": "human",
|
211
|
+
"annotations": [
|
212
|
+
{
|
213
|
+
"type": "net.app.core.directory.homepage",
|
214
|
+
"value": {
|
215
|
+
"url": "http://aya.io"
|
216
|
+
}
|
217
|
+
},
|
218
|
+
{
|
219
|
+
"type": "net.app.core.directory.twitter",
|
220
|
+
"value": {
|
221
|
+
"username": "ritsz"
|
222
|
+
}
|
223
|
+
},
|
224
|
+
{
|
225
|
+
"type": "net.app.core.directory.blog",
|
226
|
+
"value": {
|
227
|
+
"url": "http://aya.io"
|
228
|
+
}
|
229
|
+
}
|
230
|
+
],
|
231
|
+
"name": "Big Jim"
|
232
|
+
},
|
233
|
+
"kind": "image",
|
234
|
+
"sha1": "1e75ec87dcef3708e034726ef102787551577d42",
|
235
|
+
"name": "02.png",
|
236
|
+
"url": "https://d36tc8clsz1tk5.cloudfront.net/adn-uf-01/LV/Rn/lt/LVRnltZOocZUPUHCOgVimypgPRqhZ-qlSirqlMVSczc?response-cache-control=public%2C%20max-age%3D7200%2C%20s-maxage%3D172800&response-content-disposition=inline%3B%20filename%2A%3DUTF-8%27%2702.png&Expires=1409824800&Signature=V0a5AefdWUDhpJxLDtdZT4Iwoe481xzR7uG~AxYDS3TYa-TZv7ad0FDeRE1o3VSxcAPAiqmamb8XQrLIvSjFxQuV-DCt5je9eY2zrvaG3exVHY~ClpEkzUCnQgdqplTfm~Uj~SOCMExgif-NktGxrRQ3IE3FPlauVV1jFfpX66M_&Key-Pair-Id=APKAIWNGPWT6YVKFBWJA",
|
237
|
+
"created_at": "2014-08-31T15:41:41Z",
|
238
|
+
"url_short": "https://files.app.net/w2xv2euRe",
|
239
|
+
"public": true,
|
240
|
+
"url_expires": "2014-09-04T10:00:00Z"
|
241
|
+
}
|
242
|
+
]
|