bwapi 10.0.0.pre.543 → 10.0.0.pre.546
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/user.rb +2 -0
- data/lib/bwapi/client/user/instagram_credentials.rb +32 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OTY1MGE4MGFiMTRjMzEzNWY5MTNhZmU4ZDhiMThhMTQzNzZlZDExYw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MjUzZmY0YjE0NzEyZmE3MzNmYWViMTNiNjE5MDBjMWJjMTljZTM2Yg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MmQ4NGRiYzZiMzc4MzAwNjk2N2YyMzc0YWFiZjA4YTI3N2ZkNzgyZDNhNTlk
|
10
|
+
MWZiMTM2ZjViZWY1NDQ3NmZhMmQxYTVjOTJiNjc0NGMyMjMzZWMzNzkxZGFh
|
11
|
+
Mjk0ZDRkODRmMjVmMjhjN2NjOTViZGRjYjg1OWI4MzNmYzRkZDA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NGNkYTBiZmUxZTVmZjcyMzBkMDEyNGY0OGNkYzMwYjU5ZjA3ZjI1NGU5ZDM0
|
14
|
+
ODk2NjNkMjcwOTU1MTFlYzEyNjA0ZjkzZDdjYzUxYTU5OGQ4ODQ3Y2IzZDRh
|
15
|
+
YzJjMmIxZDlmZDdkMGRkOWJkNmI0MDI0NGU5ZDc3YzkxZjFkM2Y=
|
data/lib/bwapi/client/user.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'bwapi/client/user/instagram_credentials'
|
1
2
|
require 'bwapi/client/user/notifications'
|
2
3
|
|
3
4
|
module BWAPI
|
@@ -51,6 +52,7 @@ module BWAPI
|
|
51
52
|
user.uiRole
|
52
53
|
end
|
53
54
|
|
55
|
+
include BWAPI::Client::User::InstagramCredentials
|
54
56
|
include BWAPI::Client::User::Notifications
|
55
57
|
end
|
56
58
|
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
module BWAPI
|
2
|
+
class Client
|
3
|
+
module User
|
4
|
+
# InstagramCredentials module for user/instagramcredentials endpoints
|
5
|
+
module InstagramCredentials
|
6
|
+
# Get current user Instagram credentials
|
7
|
+
#
|
8
|
+
# @return [Hash] Current user Instagram credentials
|
9
|
+
def instagram_credentials
|
10
|
+
get '/user/instagramcredentials'
|
11
|
+
end
|
12
|
+
|
13
|
+
# Delete current user Instagram credentials
|
14
|
+
#
|
15
|
+
# @return [Hash] Current users deleted Instagram credentials
|
16
|
+
def delete_instagram_credentials
|
17
|
+
delete '/user/instagramcredentials'
|
18
|
+
end
|
19
|
+
|
20
|
+
# Store the current user's Instagram credentials
|
21
|
+
#
|
22
|
+
# @param opts [Hash] options Hash of parameters
|
23
|
+
# @option opts [String] accessToken Instagram API access token
|
24
|
+
# @option opts [String] clientId Instagram API client id
|
25
|
+
# @return [Hash] Current user Instagram credentials
|
26
|
+
def update_instagram_credentials(opts = {})
|
27
|
+
put '/user/instagramcredentials', opts
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
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.546
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Chrisp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -254,6 +254,7 @@ files:
|
|
254
254
|
- lib/bwapi/client/sso.rb
|
255
255
|
- lib/bwapi/client/test_search.rb
|
256
256
|
- lib/bwapi/client/user.rb
|
257
|
+
- lib/bwapi/client/user/instagram_credentials.rb
|
257
258
|
- lib/bwapi/client/user/notifications.rb
|
258
259
|
- lib/bwapi/configuration.rb
|
259
260
|
- lib/bwapi/connection.rb
|