crowdskout 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/crowdskout.gemspec +1 -1
- data/lib/crowdskout/api.rb +15 -13
- data/lib/crowdskout/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1bfecfb569fd5d736d40d19fc0ca7308f6cc8be6
|
4
|
+
data.tar.gz: 1db01091965ba6ecd9abce3499b5bc16c69cd07f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f61ea9fe8ddc09d161f8c8399a0bc8725d09e1cbbe6e51c4a62595a7b21c5744fe038a2b98d813fc8716a78e48d1bc02877174be30c515280cc56c47172fab8
|
7
|
+
data.tar.gz: 2febe32b4297af05c0ccd242f070f398fcad76b0c63303921e80374a2763f874357f24d0215fbf58f3ca32caa83e5ee6b282e386e10e43301e483d2997c7ec28
|
data/crowdskout.gemspec
CHANGED
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "crowdskout"
|
8
|
-
s.version = '0.1.
|
8
|
+
s.version = '0.1.5'
|
9
9
|
s.platform = Gem::Platform::RUBY
|
10
10
|
s.authors = ["Crowdskout", "Revv","Kyle Schutt"]
|
11
11
|
s.homepage = "https://github.com/revvco/crowdskout"
|
data/lib/crowdskout/api.rb
CHANGED
@@ -6,6 +6,8 @@
|
|
6
6
|
|
7
7
|
module Crowdskout
|
8
8
|
class Api
|
9
|
+
attr_accessor :api_key, :access_token
|
10
|
+
|
9
11
|
# Class constructor
|
10
12
|
# @param [String] api_key - Crowdskout API Key
|
11
13
|
# @param [String] access_token - Crowdskout OAuth2 access token
|
@@ -23,49 +25,49 @@ module Crowdskout
|
|
23
25
|
|
24
26
|
# Profile Service Methods
|
25
27
|
def get_profile(profile_id, collections)
|
26
|
-
Services::ProfileService.new(api_key, access_token).get_profile(profile_id, collections)
|
28
|
+
Services::ProfileService.new(@api_key, @access_token).get_profile(profile_id, collections)
|
27
29
|
end
|
28
30
|
def create_profile(profile)
|
29
|
-
Services::ProfileService.new(api_key, access_token).create_profile(profile)
|
31
|
+
Services::ProfileService.new(@api_key, @access_token).create_profile(profile)
|
30
32
|
end
|
31
33
|
def create_profiles_bulk(profiles)
|
32
|
-
Services::ProfileService.new(api_key, access_token).create_profiles_bulk(profiles)
|
34
|
+
Services::ProfileService.new(@api_key, @access_token).create_profiles_bulk(profiles)
|
33
35
|
end
|
34
36
|
def update_profile(profile)
|
35
|
-
Services::ProfileService.new(api_key, access_token).update_profile(profile)
|
37
|
+
Services::ProfileService.new(@api_key, @access_token).update_profile(profile)
|
36
38
|
end
|
37
39
|
def update_profiles_bulk(profiles)
|
38
|
-
Services::ProfileService.new(api_key, access_token).update_profiles_bulk(profiles)
|
40
|
+
Services::ProfileService.new(@api_key, @access_token).update_profiles_bulk(profiles)
|
39
41
|
end
|
40
42
|
def check_for_non_match(profile)
|
41
|
-
Services::ProfileService.new(api_key, access_token).check_for_non_match(profile)
|
43
|
+
Services::ProfileService.new(@api_key, @access_token).check_for_non_match(profile)
|
42
44
|
end
|
43
45
|
|
44
46
|
# Fields Service Methods
|
45
47
|
def get_options_for_a_field(field_name, params = {})
|
46
|
-
Services::FieldService.new(api_key, access_token).get_options_for_a_field(field_name, params)
|
48
|
+
Services::FieldService.new(@api_key, @access_token).get_options_for_a_field(field_name, params)
|
47
49
|
end
|
48
50
|
|
49
51
|
# Attribute Service Methods
|
50
52
|
def get_attributes(params = {})
|
51
|
-
Services::AttributeService.new(api_key, access_token).get_attributes(params)
|
53
|
+
Services::AttributeService.new(@api_key, @access_token).get_attributes(params)
|
52
54
|
end
|
53
55
|
def get_attribute(attribute_id, params = {})
|
54
|
-
Services::AttributeService.new(api_key, access_token).get_attribute(attribute_id)
|
56
|
+
Services::AttributeService.new(@api_key, @access_token).get_attribute(attribute_id)
|
55
57
|
end
|
56
58
|
def create_attribute(name, type, options = nil)
|
57
|
-
Services::AttributeService.new(api_key, access_token).create_attribute(name, type, options)
|
59
|
+
Services::AttributeService.new(@api_key, @access_token).create_attribute(name, type, options)
|
58
60
|
end
|
59
61
|
def update_attribute(attribute_id, params = {})
|
60
|
-
Services::AttributeService.new(api_key, access_token).update_attribute(attribute_id, params)
|
62
|
+
Services::AttributeService.new(@api_key, @access_token).update_attribute(attribute_id, params)
|
61
63
|
end
|
62
64
|
def delete_attribute(attribute_id)
|
63
|
-
Services::AttributeService.new(api_key, access_token).delete_attribute(attribute_id)
|
65
|
+
Services::AttributeService.new(@api_key, @access_token).delete_attribute(attribute_id)
|
64
66
|
end
|
65
67
|
|
66
68
|
# Quartermaster Service Methods
|
67
69
|
def tracking_code
|
68
|
-
Services::QuartermasterService.new(api_key, access_token).tracking_code
|
70
|
+
Services::QuartermasterService.new(@api_key, @access_token).tracking_code
|
69
71
|
end
|
70
72
|
end
|
71
73
|
end
|
data/lib/crowdskout/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: crowdskout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Crowdskout
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-11-
|
13
|
+
date: 2017-11-07 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rest-client
|