AvrijAnalyticsUtility 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8245944d859deffe1dd0b9f67ba04c9a58e4a028
4
- data.tar.gz: 875c296e75037b889c5b2c72366437ecfaa2b641
3
+ metadata.gz: 12deaab3272f882d749ec0ce22905b36280a6763
4
+ data.tar.gz: 3cebfc556d185af5b7df0af99679efcdf163fa70
5
5
  SHA512:
6
- metadata.gz: 6b95605806ff01a7b70ea36eb2da15586a77dde724ffd1a8725e2e3bb67952b5bc14155204839ab4563eaaaf0ae4bc34c60301f83bceb232d92bd7b8f86acd70
7
- data.tar.gz: 5d3b532f2182d082306d04dc78bbcc83b97bad8395d20d3d4fb46e7ca33efd10fbc60518c22ad11b006af922467884eab0690bc60b444aa7e099d4276a9213c3
6
+ metadata.gz: 8297d659f3d8f6dcb534a906d61a019a686f9712592b274d837e217c93a101da9235decbe63e1b63b79924aa2060331627eb9e977d0394daad38b557799e70b2
7
+ data.tar.gz: 4c16bbeab883e3c0d6329c1b32e61c42dd66340ef964503d9fe4a9522bfb6da775a0d8aa0083ebe89d84e3bd13d86c4f4faf0a04991d8a95d9ee4a733727bea0
data/Rakefile CHANGED
@@ -8,7 +8,7 @@ task :default => :spec
8
8
  task :buildInstall do
9
9
  `gem uninstall AvrijAnalyticsUtility`
10
10
  `gem build AvrijAnalyticsUtility`
11
- `gem install AvrijAnalyticsUtility-0.1.6.gem`
11
+ `gem install AvrijAnalyticsUtility-0.1.7.gem`
12
12
  end
13
13
 
14
14
 
@@ -3,9 +3,14 @@ require "AvrijAnalyticsUtility/APIConnection"
3
3
 
4
4
  module AvrijAnalyticsUtility
5
5
 
6
+
6
7
  #GET ALL SOCIAL MEDIA POST
7
- def self.getAllSocialMediaPost(param_username,param_password,param_auth_uri,param_data_uri,send_to_file)
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)
@@ -1,3 +1,3 @@
1
1
  module AvrijAnalyticsUtility
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: AvrijAnalyticsUtility
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Dalisay