bwapi 10.0.0.pre.508 → 10.0.0.pre.513
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 +8 -8
- data/lib/bwapi/client.rb +2 -2
- data/lib/bwapi/client/projects/data.rb +8 -0
- data/lib/bwapi/client/projects/data/emoticons.rb +23 -0
- data/lib/bwapi/client/projects/data/hashtags.rb +23 -0
- data/lib/bwapi/client/projects/data/mentioned_authors.rb +23 -0
- data/lib/bwapi/client/projects/data/urls.rb +23 -0
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZDQwYjBmZDhmOWVmZGE0NmNkNGQ0Yzk4YWRhMjYxMjBjZDRmODhiZg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NDQ3MThkYTRjNDQ2NjA0NTYxZWE0NjRmNzk1OWU4NzJmZTExNjU5Yw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZWY3ZTI1ODFiYzQzNTQxYWU5ZWE5MmM3NGE2ZDRiODQ2NjUyYWIwNmJkMGY4
|
10
|
+
YmMxMTMzOTAwNTE5MTc3MGRmNjk1ZTU5M2Q2YTA2YzY4OWQxYzhkMDhiOWZj
|
11
|
+
ZjczNDkwY2UwYTQ3Yjg5NDE3MDllOTAyMjY5MDQ1MGVjZTE2ODU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OTg3NTUzMWFhOGZkYWEwZWFmNzFhYjA4ZjM5MjMwOThhMmJhYWI3NzdkNzhh
|
14
|
+
NWQ0MDM3NjkyMjBjYmRmM2QzZTcxMWFlZjJiNWQ0NGNiYTZhOGQ2ZTc2Yjdh
|
15
|
+
OWE1ZjEwOTc3MTEwODI5ZTJhMzZjMzEzYmE0NDA2OWUyOTUxMjc=
|
data/lib/bwapi/client.rb
CHANGED
@@ -19,9 +19,9 @@ require 'bwapi/client/me'
|
|
19
19
|
require 'bwapi/client/metrics'
|
20
20
|
require 'bwapi/client/oauth'
|
21
21
|
require 'bwapi/client/ping'
|
22
|
-
require 'bwapi/client/sso'
|
23
22
|
require 'bwapi/client/projects'
|
24
23
|
require 'bwapi/client/query_validation'
|
24
|
+
require 'bwapi/client/sso'
|
25
25
|
require 'bwapi/client/test_search'
|
26
26
|
require 'bwapi/client/user'
|
27
27
|
require 'faraday'
|
@@ -51,8 +51,8 @@ module BWAPI
|
|
51
51
|
include BWAPI::Client::OAuth
|
52
52
|
include BWAPI::Client::Ping
|
53
53
|
include BWAPI::Client::Projects
|
54
|
-
include BWAPI::Client::SSO
|
55
54
|
include BWAPI::Client::QueryValidation
|
55
|
+
include BWAPI::Client::SSO
|
56
56
|
include BWAPI::Client::TestSearch
|
57
57
|
include BWAPI::Client::User
|
58
58
|
|
@@ -1,10 +1,14 @@
|
|
1
1
|
require 'bwapi/client/projects/data/audience'
|
2
2
|
require 'bwapi/client/projects/data/audience_activity'
|
3
3
|
require 'bwapi/client/projects/data/channel_metrics'
|
4
|
+
require 'bwapi/client/projects/data/emoticons'
|
5
|
+
require 'bwapi/client/projects/data/hashtags'
|
4
6
|
require 'bwapi/client/projects/data/headlines'
|
7
|
+
require 'bwapi/client/projects/data/mentioned_authors'
|
5
8
|
require 'bwapi/client/projects/data/impressions'
|
6
9
|
require 'bwapi/client/projects/data/mentions'
|
7
10
|
require 'bwapi/client/projects/data/owner_activity'
|
11
|
+
require 'bwapi/client/projects/data/urls'
|
8
12
|
require 'bwapi/client/projects/data/volume'
|
9
13
|
|
10
14
|
module BWAPI
|
@@ -38,10 +42,14 @@ module BWAPI
|
|
38
42
|
include BWAPI::Client::Projects::Data::Audience
|
39
43
|
include BWAPI::Client::Projects::Data::AudienceActivity
|
40
44
|
include BWAPI::Client::Projects::Data::ChannelMetrics
|
45
|
+
include BWAPI::Client::Projects::Data::Emoticons
|
46
|
+
include BWAPI::Client::Projects::Data::Hashtags
|
41
47
|
include BWAPI::Client::Projects::Data::Headlines
|
42
48
|
include BWAPI::Client::Projects::Data::Impressions
|
49
|
+
include BWAPI::Client::Projects::Data::MentionedAuthors
|
43
50
|
include BWAPI::Client::Projects::Data::Mentions
|
44
51
|
include BWAPI::Client::Projects::Data::OwnerActivity
|
52
|
+
include BWAPI::Client::Projects::Data::Urls
|
45
53
|
include BWAPI::Client::Projects::Data::Volume
|
46
54
|
end
|
47
55
|
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module BWAPI
|
2
|
+
class Client
|
3
|
+
module Projects
|
4
|
+
module Data
|
5
|
+
# Emoticons module for the /projects/{project_id}/data/emoticons endpoint
|
6
|
+
module Emoticons
|
7
|
+
# Get top n emoticons
|
8
|
+
#
|
9
|
+
# @param project_id [Integer] Id of project
|
10
|
+
# @param opts [Hash] options hash of parameters
|
11
|
+
# @option opts [Hash] filter The filters to apply
|
12
|
+
# @option opts [Integer] limit The limit to return
|
13
|
+
# @option opts [String] orderBy Parameter to sort by
|
14
|
+
# @option opts [String] orderDirection Direction of sort
|
15
|
+
# @return [array] top n emoticons based on parameter passed
|
16
|
+
def data_emoticons(project_id, opts = {})
|
17
|
+
get "/projects/#{project_id}/data/emoticons", opts
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module BWAPI
|
2
|
+
class Client
|
3
|
+
module Projects
|
4
|
+
module Data
|
5
|
+
# Hashtags module for the /projects/{project_id}/data/hashtags endpoint
|
6
|
+
module Hashtags
|
7
|
+
# Get top n hashtags
|
8
|
+
#
|
9
|
+
# @param project_id [Integer] Id of project
|
10
|
+
# @param opts [Hash] options hash of parameters
|
11
|
+
# @option opts [Hash] filter The filters to apply
|
12
|
+
# @option opts [Integer] limit The limit to return
|
13
|
+
# @option opts [String] orderBy Parameter to sort by
|
14
|
+
# @option opts [String] orderDirection Direction of sort
|
15
|
+
# @return [array] top n hashtags based on parameter passed
|
16
|
+
def data_hashtags(project_id, opts = {})
|
17
|
+
get "/projects/#{project_id}/data/hashtags", opts
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module BWAPI
|
2
|
+
class Client
|
3
|
+
module Projects
|
4
|
+
module Data
|
5
|
+
# MentionedAuthors module for the /projects/{project_id}/data/mentionedauthors endpoint
|
6
|
+
module MentionedAuthors
|
7
|
+
# Get top n mentioned authors
|
8
|
+
#
|
9
|
+
# @param project_id [Integer] Id of project
|
10
|
+
# @param opts [Hash] options hash of parameters
|
11
|
+
# @option opts [Hash] filter The filters to apply
|
12
|
+
# @option opts [Integer] limit The limit to return
|
13
|
+
# @option opts [String] orderBy Parameter to sort by
|
14
|
+
# @option opts [String] orderDirection Direction of sort
|
15
|
+
# @return [array] top n mentioned_authors based on parameter passed
|
16
|
+
def data_mentioned_authors(project_id, opts = {})
|
17
|
+
get "/projects/#{project_id}/data/mentionedauthors", opts
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module BWAPI
|
2
|
+
class Client
|
3
|
+
module Projects
|
4
|
+
module Data
|
5
|
+
# Urls module for the /projects/{project_id}/data/urls endpoint
|
6
|
+
module Urls
|
7
|
+
# Get top n urls
|
8
|
+
#
|
9
|
+
# @param project_id [Integer] Id of project
|
10
|
+
# @param opts [Hash] options hash of parameters
|
11
|
+
# @option opts [Hash] filter The filters to apply
|
12
|
+
# @option opts [Integer] limit The limit to return
|
13
|
+
# @option opts [String] orderBy Parameter to sort by
|
14
|
+
# @option opts [String] orderDirection Direction of sort
|
15
|
+
# @return [array] top n twitter urls based on parameter passed
|
16
|
+
def data_urls(project_id, opts = {})
|
17
|
+
get "/projects/#{project_id}/data/urls", opts
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bwapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 10.0.0.pre.
|
4
|
+
version: 10.0.0.pre.513
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Chrisp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -191,11 +191,15 @@ files:
|
|
191
191
|
- lib/bwapi/client/projects/data/audience.rb
|
192
192
|
- lib/bwapi/client/projects/data/audience_activity.rb
|
193
193
|
- lib/bwapi/client/projects/data/channel_metrics.rb
|
194
|
+
- lib/bwapi/client/projects/data/emoticons.rb
|
195
|
+
- lib/bwapi/client/projects/data/hashtags.rb
|
194
196
|
- lib/bwapi/client/projects/data/headlines.rb
|
195
197
|
- lib/bwapi/client/projects/data/impressions.rb
|
198
|
+
- lib/bwapi/client/projects/data/mentioned_authors.rb
|
196
199
|
- lib/bwapi/client/projects/data/mentions.rb
|
197
200
|
- lib/bwapi/client/projects/data/mentions/notes.rb
|
198
201
|
- lib/bwapi/client/projects/data/owner_activity.rb
|
202
|
+
- lib/bwapi/client/projects/data/urls.rb
|
199
203
|
- lib/bwapi/client/projects/data/volume.rb
|
200
204
|
- lib/bwapi/client/projects/data_download.rb
|
201
205
|
- lib/bwapi/client/projects/demographics.rb
|