bwapi 10.0.0.pre.505 → 10.0.0.pre.508

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MWU0Y2VkMzgzNTQ2OTU2NTI4N2RiZjNkMGFhY2Y0YTIyMTgyZjMyOA==
4
+ ZTM1NWU4ZTQ2ZTIyM2ZkODI0YjZjMDZiZjE0MzFmM2NhNzI0OTRkMQ==
5
5
  data.tar.gz: !binary |-
6
- ZWNhNzFkM2IzOTNmN2MzNTIzNGU3MWY3MDg1YThmOTIxNGE0MWU0NA==
6
+ YTI2YjZkNTYzNjM3YTNlZTc4MDdmM2YxNmY3NzI4ZWRkMzNhZmUzMw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NjNhYTU1NjI4NzI5ZjJmZmQ0ZDg1MGFjY2Q3MzJlZWE3YjMwMzg0ZjlkNjIw
10
- MThjOGQ3MjRlMDFlNWUzY2M2MGE5M2YwZWVkYTkyNDdkMDQ5YjdmNjkyNDI4
11
- NzI0Y2UzMTI5ZGVlYzAwNWIyNTVkYmQ4YzIxZjNmZDgwYjIzNjc=
9
+ MzYyMjRhODFiMzM3MDBhMzMwZWQ5YWFiMmE2ODQ2MmYyMzEzY2JjNzM4MGQ4
10
+ Y2NhODllOGZlYTA3NjdmMzJiNzM1ZWE4NGI2ZjFhMGYyZmU3NDU3NmVhMTYx
11
+ NmExNTkzYWY1NzJjYjAzYTBmMjk0YTJhMDhmYTA1Nzk1ZDEyNzU=
12
12
  data.tar.gz: !binary |-
13
- ZjhjZDBjYjdjMDcyMDVhYzg2YWUwZDg5YWIwNDVjY2ExYzc5MDA2Zjc1OWZk
14
- ODJhZGI3NmUwOGZmZjUzMjRlMTQ0Yjg2MjBjNjNhNTUyMmUyNzExOGRiM2Rl
15
- NjIwNzJkNTIxZTk2ZDU5YjZkNTY1ZDY4NTdjNDIzYmFiN2JlMjM=
13
+ NDM0NWYyZjQzOGNhMDZlMDVjYTY0MDZjYjI4MTg4ZWIwNjNiNTYzNDE4Y2Fj
14
+ ZDI2NTYzYzExYjcyN2IxZGQzM2M4NTdjYzRhOThkZjgzMzlhYzc2MjUxZDkz
15
+ ZTA5OWZkMGFlN2E2NTkyZjlmMTg4YmFiYTlhYjY5NGM1MTQ0OGQ=
@@ -1,4 +1,4 @@
1
- require 'bwapi/client/projects/bulkactions'
1
+ require 'bwapi/client/projects/bulk_actions'
2
2
  require 'bwapi/client/projects/categories'
3
3
  require 'bwapi/client/projects/data'
4
4
  require 'bwapi/client/projects/data_download'
@@ -1,5 +1,5 @@
1
- require 'bwapi/client/projects/bulkactions/mentions'
2
- require 'bwapi/client/projects/bulkactions/author'
1
+ require 'bwapi/client/projects/bulk_actions/mentions'
2
+ require 'bwapi/client/projects/bulk_actions/author'
3
3
 
4
4
  module BWAPI
5
5
  class Client
@@ -31,7 +31,7 @@ module BWAPI
31
31
  patch "projects/#{project_id}/data/mentions", opts
32
32
  end
33
33
 
34
- # Get mentions that fall within the submitted filters with fulltext
34
+ # Get mentions that fall within the submitted filters with full text
35
35
  #
36
36
  # @param project_id [Integer] Id of project
37
37
  # @param opts [Hash] options hash of parameters
@@ -42,7 +42,7 @@ module BWAPI
42
42
  # @option opts [String] orderDirection Direction of sort
43
43
  # @option opts [Integer] orderByCategory Category to sort by when orderBy category
44
44
  # @return [Hash] All Mentions
45
- def data_mentions_fulltext(project_id, opts = {})
45
+ def data_mentions_full_text(project_id, opts = {})
46
46
  get "projects/#{project_id}/data/mentions/fulltext", opts
47
47
  end
48
48
 
@@ -61,6 +61,36 @@ module BWAPI
61
61
  get "projects/#{project_id}/data/mentions/tweets", opts
62
62
  end
63
63
 
64
+ # Get mentions that fall within the submitted filters for all facebook posts
65
+ #
66
+ # @param project_id [Integer] Id of project
67
+ # @param opts [Hash] options hash of parameters
68
+ # @option opts [Hash] filter The filters to apply
69
+ # @option opts [Integer] page Page of projects to retrieve
70
+ # @option opts [Integer] pageSize Results per page of results
71
+ # @option opts [String] orderBy Parameter to sort by
72
+ # @option opts [String] orderDirection Direction of sort
73
+ # @option opts [Integer] orderByCategory Category to sort by when orderBy category
74
+ # @return [Hash] All Mentions
75
+ def data_mentions_facebook_posts(project_id, opts = {})
76
+ get "projects/#{project_id}/data/mentions/facebookposts", opts
77
+ end
78
+
79
+ # Get mentions that fall within the submitted filters for all facebook comments
80
+ #
81
+ # @param project_id [Integer] Id of project
82
+ # @param opts [Hash] options hash of parameters
83
+ # @option opts [Hash] filter The filters to apply
84
+ # @option opts [Integer] page Page of projects to retrieve
85
+ # @option opts [Integer] pageSize Results per page of results
86
+ # @option opts [String] orderBy Parameter to sort by
87
+ # @option opts [String] orderDirection Direction of sort
88
+ # @option opts [Integer] orderByCategory Category to sort by when orderBy category
89
+ # @return [Hash] All Mentions
90
+ def data_mentions_facebook_comments(project_id, opts = {})
91
+ get "projects/#{project_id}/data/mentions/facebookcomments", opts
92
+ end
93
+
64
94
  include BWAPI::Client::Projects::Data::Mentions::Notes
65
95
  end
66
96
  end
data/lib/bwapi/error.rb CHANGED
@@ -25,8 +25,6 @@ module BWAPI
25
25
  body
26
26
  elsif body.key?('errors')
27
27
  body['errors']
28
- else
29
- nil
30
28
  end
31
29
  end
32
30
 
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.505
4
+ version: 10.0.0.pre.508
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-13 00:00:00.000000000 Z
11
+ date: 2014-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -182,9 +182,9 @@ files:
182
182
  - lib/bwapi/client/oauth.rb
183
183
  - lib/bwapi/client/ping.rb
184
184
  - lib/bwapi/client/projects.rb
185
- - lib/bwapi/client/projects/bulkactions.rb
186
- - lib/bwapi/client/projects/bulkactions/author.rb
187
- - lib/bwapi/client/projects/bulkactions/mentions.rb
185
+ - lib/bwapi/client/projects/bulk_actions.rb
186
+ - lib/bwapi/client/projects/bulk_actions/author.rb
187
+ - lib/bwapi/client/projects/bulk_actions/mentions.rb
188
188
  - lib/bwapi/client/projects/categories.rb
189
189
  - lib/bwapi/client/projects/categories/copy.rb
190
190
  - lib/bwapi/client/projects/data.rb