fb_page_api 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fb_page_api/edge/admin_label.rb +1 -1
- data/lib/fb_page_api/edge/all.rb +1 -0
- data/lib/fb_page_api/edge/base.rb +10 -6
- data/lib/fb_page_api/edge/label_user.rb +13 -0
- data/lib/fb_page_api/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6313398974920c1310bcf7292d4a10df7c30626d
|
4
|
+
data.tar.gz: 166222a6b5da1f26e4f4ea24896028bf5ebb830d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aef6d7423e0085a4db6c105f1851d27116373f2790c7eb5a4742bbc1e801b8fbfeb060ba9e482ed61fbac3aba81cfee82176fa09042f75f23fa9617171071d59
|
7
|
+
data.tar.gz: 3d143865fd7e7a30321be0c18a7ae6eafd60f17e5c022d96c3d6b2f80f88bb203cb80bc569b12fbda22ff759f024d0e299fa28d3d8dd8f8c5743688339293610
|
data/lib/fb_page_api/edge/all.rb
CHANGED
@@ -15,12 +15,16 @@ module FbPageApi
|
|
15
15
|
data = rs.parsed_response['data']
|
16
16
|
if data.present?
|
17
17
|
@collection = @collection | data
|
18
|
-
if rs.parsed_response['paging']
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
18
|
+
if rs.parsed_response['paging'].present?
|
19
|
+
if rs.parsed_response['paging']['cursors'].present?
|
20
|
+
self.page_after = rs.parsed_response['paging']['cursors']['after']
|
21
|
+
self.next_url = nil
|
22
|
+
elsif rs.parsed_response['paging']['next'].present?
|
23
|
+
self.next_url = rs.parsed_response['paging']['next']
|
24
|
+
self.page_after = nil
|
25
|
+
else
|
26
|
+
data = []
|
27
|
+
end
|
24
28
|
else
|
25
29
|
data = []
|
26
30
|
end
|
data/lib/fb_page_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fb_page_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tuan Mai
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -104,6 +104,7 @@ files:
|
|
104
104
|
- lib/fb_page_api/edge/all.rb
|
105
105
|
- lib/fb_page_api/edge/base.rb
|
106
106
|
- lib/fb_page_api/edge/conversation.rb
|
107
|
+
- lib/fb_page_api/edge/label_user.rb
|
107
108
|
- lib/fb_page_api/edge/message.rb
|
108
109
|
- lib/fb_page_api/edge/user.rb
|
109
110
|
- lib/fb_page_api/version.rb
|