AvrijAnalyticsUtility 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/lib/AvrijAnalyticsUtility.rb +6 -1
- data/lib/AvrijAnalyticsUtility/APIConnection.rb +3 -1
- data/lib/AvrijAnalyticsUtility/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12deaab3272f882d749ec0ce22905b36280a6763
|
4
|
+
data.tar.gz: 3cebfc556d185af5b7df0af99679efcdf163fa70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8297d659f3d8f6dcb534a906d61a019a686f9712592b274d837e217c93a101da9235decbe63e1b63b79924aa2060331627eb9e977d0394daad38b557799e70b2
|
7
|
+
data.tar.gz: 4c16bbeab883e3c0d6329c1b32e61c42dd66340ef964503d9fe4a9522bfb6da775a0d8aa0083ebe89d84e3bd13d86c4f4faf0a04991d8a95d9ee4a733727bea0
|
data/Rakefile
CHANGED
@@ -3,9 +3,14 @@ require "AvrijAnalyticsUtility/APIConnection"
|
|
3
3
|
|
4
4
|
module AvrijAnalyticsUtility
|
5
5
|
|
6
|
+
|
6
7
|
#GET ALL SOCIAL MEDIA POST
|
7
|
-
|
8
|
+
# datetime must have the following format : 2017-06-30T00:00:00+04:00
|
9
|
+
def self.getAllSocialMediaPostfromDateRange(param_username,param_password,param_auth_uri,param_data_uri,param_from_datetime,param_to_datetime,send_to_file)
|
8
10
|
query_values = {
|
11
|
+
"entity" => "All identified",
|
12
|
+
"from" => param_from_datetime,
|
13
|
+
"to" => param_to_datetime,
|
9
14
|
"facebook" => "0",
|
10
15
|
"facebookPost" => "0",
|
11
16
|
"reddit"=>"0",
|
@@ -14,12 +14,14 @@ class AvrijAnalyticsUtility::APIConnection
|
|
14
14
|
return parsed_result
|
15
15
|
end
|
16
16
|
|
17
|
+
|
18
|
+
|
17
19
|
def getAllEntities(param_api_uri)
|
18
20
|
@OPTIONS = {headers:@HEADER_VALUE}
|
19
21
|
parsed_result = HTTParty.get(param_api_uri,@OPTIONS).parsed_response
|
20
22
|
return parsed_result
|
21
23
|
end
|
22
|
-
|
24
|
+
|
23
25
|
|
24
26
|
#----------- Private Methods --------------
|
25
27
|
def authenticate(param_username,param_password,param_api_uri)
|