bwapi 12.1.0.pre.666 → 12.1.0.pre.668
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/projects.rb +2 -0
- data/lib/bwapi/client/projects/instagram_queries.rb +98 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
M2M0NGRjMTUxM2ZmZjI1NWI2YjhlNGY5MGNhOWJhZmMwYWQ2MDY0MA==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
ZDc4OTZlNTczNzg1Y2I3ODNiMzNjOGFhZTA1OWE2Yjk3MjdmMThjYw==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
NGJjNzAyNTk2MjMxN2RmMTg2YWQ1Y2FiYjFhZWZjMjdjYmIwZGM4ZTFmNzAy
|
|
10
|
+
NTJkZWNhMjMzNWY2YjVlMjU1MWNlNzBlNTk0NmZmOWZlMjliMGIxOTc0MmRm
|
|
11
|
+
OWM3N2VjNDIxY2M2YmYwNzU1YjA2NDViZDliYTIwN2Q4NmFmMWI=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
M2RhMmY2ZTUyNTVmZjY1ODU0ZTYwOTBmMWUzOWUwMDZjNTNlNmNiYTI5ZDEz
|
|
14
|
+
MTViZDFhZWMwZmUwMzQ5MTgzZWJlYTkwNjg4ZGNjN2ZjN2U5N2ZiYTk3Y2Rk
|
|
15
|
+
MDk0N2M1YjgxNjg1NmJmNDQ4MDE5ODBlOTE5NmQyOWY1MDNiY2E=
|
|
@@ -7,6 +7,7 @@ require 'bwapi/client/projects/demographics'
|
|
|
7
7
|
require 'bwapi/client/projects/ditto_queries'
|
|
8
8
|
require 'bwapi/client/projects/facebook_queries'
|
|
9
9
|
require 'bwapi/client/projects/group'
|
|
10
|
+
require 'bwapi/client/projects/instagram_queries'
|
|
10
11
|
require 'bwapi/client/projects/preview_search'
|
|
11
12
|
require 'bwapi/client/projects/queries'
|
|
12
13
|
require 'bwapi/client/projects/query/mentionfind'
|
|
@@ -118,6 +119,7 @@ module BWAPI
|
|
|
118
119
|
include BWAPI::Client::Projects::DittoQueries
|
|
119
120
|
include BWAPI::Client::Projects::FacebookQueries
|
|
120
121
|
include BWAPI::Client::Projects::Group
|
|
122
|
+
include BWAPI::Client::Projects::InstagramQueries
|
|
121
123
|
include BWAPI::Client::Projects::PreviewSearch
|
|
122
124
|
include BWAPI::Client::Projects::Queries
|
|
123
125
|
include BWAPI::Client::Projects::Query::MentionFind
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
module BWAPI
|
|
2
|
+
class Client
|
|
3
|
+
module Projects
|
|
4
|
+
# InstagramQueries module for projects/instagramqueries endpoints
|
|
5
|
+
module InstagramQueries
|
|
6
|
+
# Get all instagram channels in a project
|
|
7
|
+
#
|
|
8
|
+
# @param project_id [Integer] Id of project
|
|
9
|
+
# @return [Hash] All instagram channels in project
|
|
10
|
+
def instagram_channels(project_id)
|
|
11
|
+
get "projects/#{project_id}/instagramqueries"
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# Get a specific facebook query in a project
|
|
15
|
+
#
|
|
16
|
+
# @param project_id [Integer] Id of project
|
|
17
|
+
# @param query_id [Integer] Id of instagram channel
|
|
18
|
+
# @return [Hash] Specific instagram channel
|
|
19
|
+
def get_instagram_channel(project_id, query_id)
|
|
20
|
+
get "projects/#{project_id}/instagramqueries/#{query_id}"
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# Create a instagram channel in a project
|
|
24
|
+
#
|
|
25
|
+
# @param project_id [Integer] Id of project
|
|
26
|
+
# @param opts [Hash] options hash of parameters
|
|
27
|
+
# @option opts [Integer] averageMonthlyMentions Average monthly mentions
|
|
28
|
+
# @option opts [Array] contextTerms Content terms of the channel
|
|
29
|
+
# @option opts [Integer] dailyLimit Daily limit of the channel
|
|
30
|
+
# @option opts [String] description channel description
|
|
31
|
+
# @option opts [Array] excludedTerms Excluded terms of the channel
|
|
32
|
+
# @option opts [Integer] id Id of the channel
|
|
33
|
+
# @option opts [Array] includedTerms Included terms of terms channel
|
|
34
|
+
# @option opts [String] industry Industry of the channel
|
|
35
|
+
# @option opts [String] instagramScreenName Instagram screen name
|
|
36
|
+
# @option opts [String] instagramUserId Instagram user ID
|
|
37
|
+
# @option opts [Boolean] isCreatedByWizard Is wizard channel
|
|
38
|
+
# @option opts [Boolean] isLanguageAgnostic Language agnostic
|
|
39
|
+
# @option opts [Boolean] isLockedQuery Is channel locked
|
|
40
|
+
# @option opts [Set] languages channel language
|
|
41
|
+
# @option opts [Date] lastModificationDate Last modification date
|
|
42
|
+
# @option opts [String] lastModifiedUsername Username of the last user that edited the channel
|
|
43
|
+
# @option opts [String] lockedByUsername User who locked channel
|
|
44
|
+
# @option opts [Date] lockedTime Time channel was locked
|
|
45
|
+
# @option opts [String] name Name of the channel
|
|
46
|
+
# @option opts [Integer] samplePercent Sample percent value
|
|
47
|
+
# @option opts [Integer] twitterLimit Twitter limit
|
|
48
|
+
# @option opts [String] twitterScreenName Tracked Twitter screenname
|
|
49
|
+
# @option opts [String] type Type of channel
|
|
50
|
+
# @option opts [String] instagramAccessToken Instagram access tocken
|
|
51
|
+
# @return [Hash] New Instagram channel
|
|
52
|
+
def create_instagram_channel(project_id, opts = {})
|
|
53
|
+
post "projects/#{project_id}/instagramqueries", opts
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# Update an existing Instagram channels in a project
|
|
57
|
+
#
|
|
58
|
+
# @param project_id [Integer] Id of project
|
|
59
|
+
# @param query_id [Integer] Id of query
|
|
60
|
+
# @option opts [Integer] averageMonthlyMentions Average monthly mentions
|
|
61
|
+
# @option opts [Array] contextTerms Content terms of the channel
|
|
62
|
+
# @option opts [Integer] dailyLimit Daily limit of the channel
|
|
63
|
+
# @option opts [String] description channel description
|
|
64
|
+
# @option opts [Array] excludedTerms Excluded terms of the channel
|
|
65
|
+
# @option opts [Integer] id Id of the channel
|
|
66
|
+
# @option opts [Array] includedTerms Included terms of terms channel
|
|
67
|
+
# @option opts [String] industry Industry of the channel
|
|
68
|
+
# @option opts [String] instagramScreenName Instagram screen name
|
|
69
|
+
# @option opts [String] instagramUserId Instagram user ID
|
|
70
|
+
# @option opts [Boolean] isCreatedByWizard Is wizard channel
|
|
71
|
+
# @option opts [Boolean] isLanguageAgnostic Language agnostic
|
|
72
|
+
# @option opts [Boolean] isLockedQuery Is channel locked
|
|
73
|
+
# @option opts [Set] languages channel language
|
|
74
|
+
# @option opts [Date] lastModificationDate Last modification date
|
|
75
|
+
# @option opts [String] lastModifiedUsername Username of the last user that edited the channel
|
|
76
|
+
# @option opts [String] lockedByUsername User who locked channel
|
|
77
|
+
# @option opts [Date] lockedTime Time channel was locked
|
|
78
|
+
# @option opts [String] name Name of the channel
|
|
79
|
+
# @option opts [Integer] samplePercent Sample percent value
|
|
80
|
+
# @option opts [Integer] twitterLimit Twitter limit
|
|
81
|
+
# @option opts [String] twitterScreenName Tracked Twitter screenname
|
|
82
|
+
# @option opts [String] type Type of channel
|
|
83
|
+
# @return [Hash] Updated instagram channel
|
|
84
|
+
def update_instagram_channel(project_id, query_id, opts = {})
|
|
85
|
+
put "projects/#{project_id}/instagramqueries/#{query_id}", opts
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Delete an Instagram channel
|
|
89
|
+
#
|
|
90
|
+
# @param project_id [Integer] Id of project
|
|
91
|
+
# @param query_id [Integer] Id of query
|
|
92
|
+
def delete_instagram_channel(project_id, query_id)
|
|
93
|
+
delete "/projects/#{project_id}/instagramqueries/#{query_id}"
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bwapi
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 12.1.0.pre.
|
|
4
|
+
version: 12.1.0.pre.668
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jonathan Chrisp
|
|
@@ -244,6 +244,7 @@ files:
|
|
|
244
244
|
- lib/bwapi/client/projects/group/author_group.rb
|
|
245
245
|
- lib/bwapi/client/projects/group/location_group.rb
|
|
246
246
|
- lib/bwapi/client/projects/group/site_group.rb
|
|
247
|
+
- lib/bwapi/client/projects/instagram_queries.rb
|
|
247
248
|
- lib/bwapi/client/projects/preview_search.rb
|
|
248
249
|
- lib/bwapi/client/projects/queries.rb
|
|
249
250
|
- lib/bwapi/client/projects/queries/backfill.rb
|