rsalesloft 0.1 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +5 -5
  2. data/LICENSE +2 -2
  3. data/lib/rsalesloft.rb +1 -1
  4. data/lib/rsalesloft/resources.rb +2 -1
  5. data/lib/rsalesloft/resources/account_tiers.rb +19 -0
  6. data/readme.md +3 -3
  7. metadata +4 -80
  8. data/spec/fixtures/tags/list_tags.json +0 -6
  9. data/spec/fixtures/team_templates/fetch_team_template.json +0 -25
  10. data/spec/fixtures/team_templates/list_team_templates.json +0 -27
  11. data/spec/fixtures/teams/fetch_current_team.json +0 -19
  12. data/spec/fixtures/users/fetch_current_user.json +0 -40
  13. data/spec/fixtures/users/fetch_user.json +0 -40
  14. data/spec/fixtures/users/list_users.json +0 -42
  15. data/spec/lib/rsalesloft/resources/accounts_spec.rb +0 -0
  16. data/spec/lib/rsalesloft/resources/actions_spec.rb +0 -0
  17. data/spec/lib/rsalesloft/resources/activities_spec.rb +0 -0
  18. data/spec/lib/rsalesloft/resources/cadence_memberships_spec.rb +0 -0
  19. data/spec/lib/rsalesloft/resources/cadences_spec.rb +0 -0
  20. data/spec/lib/rsalesloft/resources/call_data_records_spec.rb +0 -0
  21. data/spec/lib/rsalesloft/resources/call_dispositions_spec.rb +0 -0
  22. data/spec/lib/rsalesloft/resources/call_instructions_spec.rb +0 -0
  23. data/spec/lib/rsalesloft/resources/call_sentiments_spec.rb +0 -0
  24. data/spec/lib/rsalesloft/resources/caller_ids_spec.rb +0 -0
  25. data/spec/lib/rsalesloft/resources/calls_spec.rb +0 -0
  26. data/spec/lib/rsalesloft/resources/crm_activities_spec.rb +0 -0
  27. data/spec/lib/rsalesloft/resources/crm_activity_fields_spec.rb +0 -0
  28. data/spec/lib/rsalesloft/resources/custom_fields_spec.rb +0 -0
  29. data/spec/lib/rsalesloft/resources/email_templates_spec.rb +0 -0
  30. data/spec/lib/rsalesloft/resources/emails_spec.rb +0 -0
  31. data/spec/lib/rsalesloft/resources/imports_spec.rb +0 -0
  32. data/spec/lib/rsalesloft/resources/live_website_tracking_parameters_spec.rb +0 -0
  33. data/spec/lib/rsalesloft/resources/me_spec.rb +0 -0
  34. data/spec/lib/rsalesloft/resources/notes_spec.rb +0 -0
  35. data/spec/lib/rsalesloft/resources/ongoing_actions_spec.rb +0 -0
  36. data/spec/lib/rsalesloft/resources/people_spec.rb +0 -0
  37. data/spec/lib/rsalesloft/resources/person_stages_spec.rb +0 -0
  38. data/spec/lib/rsalesloft/resources/recording_settings_spec.rb +0 -0
  39. data/spec/lib/rsalesloft/resources/steps_spec.rb +0 -0
  40. data/spec/lib/rsalesloft/resources/successes_spec.rb +0 -0
  41. data/spec/lib/rsalesloft/resources/tags_spec.rb +0 -0
  42. data/spec/lib/rsalesloft/resources/team_spec.rb +0 -0
  43. data/spec/lib/rsalesloft/resources/team_templates_spec.rb +0 -0
  44. data/spec/lib/rsalesloft/resources/users_spec.rb +0 -0
  45. data/spec/lib/rsalesloft_spec.rb +0 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 1a26fcec6a2a061437b751646c77300289172acb
4
- data.tar.gz: dfbc6b5c995b0a17ef3bd5c17f15e3d7d8ebc796
2
+ SHA256:
3
+ metadata.gz: bd1de0ad6a576b2751df82960afcab95f05bd36c84d8c80ebc0a4c0da6020838
4
+ data.tar.gz: 8b1d8a8b69b54b42fa2f5a341d39d1a76d742aea47bacde59847f2f2f426790e
5
5
  SHA512:
6
- metadata.gz: '0963003daca6ef3847600d9152700c089bdede7c42ffee4d2af28ebd38e0409f5deccb21ee5059fdf35a1027381055193f1d7a01599cf983f59f6082e0cace0e'
7
- data.tar.gz: af490bd370057083412c1bd258656359b536dbcf854b79ddfd4494b4ba28bce217c95a1e0d8b4f8717d5687f12e561de1e39da92bf4e6377167936b4a2d0a2b0
6
+ metadata.gz: 3e80133d75dfad4eaeff0152113ca6fc2cfc872f0d5363bdfa040ad64fa64214e3a5ed9b5dfee13a441fdbe4950e6aa64f7eca87e659081d5aac5ecb4020158a
7
+ data.tar.gz: f0703b659cbdf2fa8ea90f987c843be788cc9a4bc0c29351f964b403d577de374f6e8899e1b203f42ff5f653d7547ad5395bd9a1cb4e86c947066168540f1210
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2013 Taylor Brooks
1
+ Copyright (c) 2018 Auree Aubert
2
2
 
3
3
  MIT License
4
4
 
@@ -19,4 +19,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
19
  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
20
  LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
21
  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -3,7 +3,7 @@ require "rsalesloft/connection"
3
3
  require "rsalesloft/resources"
4
4
 
5
5
  module RSalesloft
6
- VERSION = '0.1'
6
+ VERSION = '0.2'
7
7
 
8
8
  def self.configure(config = {})
9
9
  RSalesloft::Config.configure(config)
@@ -1,4 +1,5 @@
1
1
  require "rsalesloft/resources/accounts"
2
+ require "rsalesloft/resources/account_tiers"
2
3
  require "rsalesloft/resources/actions"
3
4
  require "rsalesloft/resources/activities"
4
5
  require "rsalesloft/resources/cadence_memberships"
@@ -29,4 +30,4 @@ require "rsalesloft/resources/teams"
29
30
  require "rsalesloft/resources/users"
30
31
 
31
32
  module RSalesloft::Resources
32
- end
33
+ end
@@ -0,0 +1,19 @@
1
+ module RSalesloft::Resources
2
+ class AccountTiers
3
+ class << self
4
+ def list(query = {})
5
+ RSalesloft::Connection.get(account_tiers_path, query)
6
+ end
7
+
8
+ def fetch(id)
9
+ RSalesloft::Connection.get(account_tiers_path(id))
10
+ end
11
+
12
+ private
13
+
14
+ def account_tiers_path(id = nil)
15
+ id ? "accounts/#{id}/" : "account_tiers/"
16
+ end
17
+ end
18
+ end
19
+ end
data/readme.md CHANGED
@@ -24,10 +24,10 @@ require 'rsalesloft'
24
24
  RSalesloft.configure(api_key: "YOUR_API_KEY")
25
25
 
26
26
  # List accounts example
27
- accounts = RSpotify::Resources::Accounts::list(page: 1, per_page: 100)
27
+ accounts = RSalesloft::Resources::Accounts::list(page: 1, per_page: 100)
28
28
 
29
29
  # Fetch an account example
30
- account = RSpotify::Resources::Account::fetch("accound_id")
30
+ account = RSalesloft::Resources::Accounts::fetch("accound_id")
31
31
  ```
32
32
 
33
33
  ### Contributing
@@ -41,4 +41,4 @@ Everyone is encouraged to help improve this project. Here are a few ways you can
41
41
 
42
42
  ## Copyright
43
43
 
44
- Copyright (c) 2018 Auree Aubert. See LICENSE for details.
44
+ Copyright (c) 2018 Auree Aubert. See LICENSE for details.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rsalesloft
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: '0.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Auree Aubert
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-27 00:00:00.000000000 Z
11
+ date: 2019-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -151,6 +151,7 @@ files:
151
151
  - lib/rsalesloft/config.rb
152
152
  - lib/rsalesloft/connection.rb
153
153
  - lib/rsalesloft/resources.rb
154
+ - lib/rsalesloft/resources/account_tiers.rb
154
155
  - lib/rsalesloft/resources/accounts.rb
155
156
  - lib/rsalesloft/resources/actions.rb
156
157
  - lib/rsalesloft/resources/activities.rb
@@ -182,44 +183,6 @@ files:
182
183
  - lib/rsalesloft/resources/users.rb
183
184
  - readme.md
184
185
  - rsalesloft.gemspec
185
- - spec/fixtures/tags/list_tags.json
186
- - spec/fixtures/team_templates/fetch_team_template.json
187
- - spec/fixtures/team_templates/list_team_templates.json
188
- - spec/fixtures/teams/fetch_current_team.json
189
- - spec/fixtures/users/fetch_current_user.json
190
- - spec/fixtures/users/fetch_user.json
191
- - spec/fixtures/users/list_users.json
192
- - spec/lib/rsalesloft/resources/accounts_spec.rb
193
- - spec/lib/rsalesloft/resources/actions_spec.rb
194
- - spec/lib/rsalesloft/resources/activities_spec.rb
195
- - spec/lib/rsalesloft/resources/cadence_memberships_spec.rb
196
- - spec/lib/rsalesloft/resources/cadences_spec.rb
197
- - spec/lib/rsalesloft/resources/call_data_records_spec.rb
198
- - spec/lib/rsalesloft/resources/call_dispositions_spec.rb
199
- - spec/lib/rsalesloft/resources/call_instructions_spec.rb
200
- - spec/lib/rsalesloft/resources/call_sentiments_spec.rb
201
- - spec/lib/rsalesloft/resources/caller_ids_spec.rb
202
- - spec/lib/rsalesloft/resources/calls_spec.rb
203
- - spec/lib/rsalesloft/resources/crm_activities_spec.rb
204
- - spec/lib/rsalesloft/resources/crm_activity_fields_spec.rb
205
- - spec/lib/rsalesloft/resources/custom_fields_spec.rb
206
- - spec/lib/rsalesloft/resources/email_templates_spec.rb
207
- - spec/lib/rsalesloft/resources/emails_spec.rb
208
- - spec/lib/rsalesloft/resources/imports_spec.rb
209
- - spec/lib/rsalesloft/resources/live_website_tracking_parameters_spec.rb
210
- - spec/lib/rsalesloft/resources/me_spec.rb
211
- - spec/lib/rsalesloft/resources/notes_spec.rb
212
- - spec/lib/rsalesloft/resources/ongoing_actions_spec.rb
213
- - spec/lib/rsalesloft/resources/people_spec.rb
214
- - spec/lib/rsalesloft/resources/person_stages_spec.rb
215
- - spec/lib/rsalesloft/resources/recording_settings_spec.rb
216
- - spec/lib/rsalesloft/resources/steps_spec.rb
217
- - spec/lib/rsalesloft/resources/successes_spec.rb
218
- - spec/lib/rsalesloft/resources/tags_spec.rb
219
- - spec/lib/rsalesloft/resources/team_spec.rb
220
- - spec/lib/rsalesloft/resources/team_templates_spec.rb
221
- - spec/lib/rsalesloft/resources/users_spec.rb
222
- - spec/lib/rsalesloft_spec.rb
223
186
  - spec/spec_helper.rb
224
187
  homepage: https://github.com/aureeaubert/rsalesloft
225
188
  licenses: []
@@ -239,48 +202,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
239
202
  - !ruby/object:Gem::Version
240
203
  version: '0'
241
204
  requirements: []
242
- rubyforge_project:
243
- rubygems_version: 2.6.14
205
+ rubygems_version: 3.0.3
244
206
  signing_key:
245
207
  specification_version: 4
246
208
  summary: A Ruby wrapper for the Salesloft API
247
209
  test_files:
248
- - spec/fixtures/tags/list_tags.json
249
- - spec/fixtures/team_templates/fetch_team_template.json
250
- - spec/fixtures/team_templates/list_team_templates.json
251
- - spec/fixtures/teams/fetch_current_team.json
252
- - spec/fixtures/users/fetch_current_user.json
253
- - spec/fixtures/users/fetch_user.json
254
- - spec/fixtures/users/list_users.json
255
- - spec/lib/rsalesloft/resources/accounts_spec.rb
256
- - spec/lib/rsalesloft/resources/actions_spec.rb
257
- - spec/lib/rsalesloft/resources/activities_spec.rb
258
- - spec/lib/rsalesloft/resources/cadence_memberships_spec.rb
259
- - spec/lib/rsalesloft/resources/cadences_spec.rb
260
- - spec/lib/rsalesloft/resources/call_data_records_spec.rb
261
- - spec/lib/rsalesloft/resources/call_dispositions_spec.rb
262
- - spec/lib/rsalesloft/resources/call_instructions_spec.rb
263
- - spec/lib/rsalesloft/resources/call_sentiments_spec.rb
264
- - spec/lib/rsalesloft/resources/caller_ids_spec.rb
265
- - spec/lib/rsalesloft/resources/calls_spec.rb
266
- - spec/lib/rsalesloft/resources/crm_activities_spec.rb
267
- - spec/lib/rsalesloft/resources/crm_activity_fields_spec.rb
268
- - spec/lib/rsalesloft/resources/custom_fields_spec.rb
269
- - spec/lib/rsalesloft/resources/email_templates_spec.rb
270
- - spec/lib/rsalesloft/resources/emails_spec.rb
271
- - spec/lib/rsalesloft/resources/imports_spec.rb
272
- - spec/lib/rsalesloft/resources/live_website_tracking_parameters_spec.rb
273
- - spec/lib/rsalesloft/resources/me_spec.rb
274
- - spec/lib/rsalesloft/resources/notes_spec.rb
275
- - spec/lib/rsalesloft/resources/ongoing_actions_spec.rb
276
- - spec/lib/rsalesloft/resources/people_spec.rb
277
- - spec/lib/rsalesloft/resources/person_stages_spec.rb
278
- - spec/lib/rsalesloft/resources/recording_settings_spec.rb
279
- - spec/lib/rsalesloft/resources/steps_spec.rb
280
- - spec/lib/rsalesloft/resources/successes_spec.rb
281
- - spec/lib/rsalesloft/resources/tags_spec.rb
282
- - spec/lib/rsalesloft/resources/team_spec.rb
283
- - spec/lib/rsalesloft/resources/team_templates_spec.rb
284
- - spec/lib/rsalesloft/resources/users_spec.rb
285
- - spec/lib/rsalesloft_spec.rb
286
210
  - spec/spec_helper.rb
@@ -1,6 +0,0 @@
1
- [
2
- {
3
- "id": 1,
4
- "name": "marketing"
5
- }
6
- ]
@@ -1,25 +0,0 @@
1
- {
2
- "id": "51226150-3108-4dea-883b-0c0d7388f456",
3
- "title": "VP Breakup Email",
4
- "subject": "It’s time to say goodbye",
5
- "body": "<div>Do you know about birds?</div><div>You can find them here: <a href=\"https://www.allaboutbirds.org/guide/search/\" target=\"_blank\">https://www.allaboutbirds.org/guide/search/</a></div>",
6
- "body_preview": "hello\n\nhey sounds good\n\nok\n\nok\n\nwith an edit\n\nok now i'm comic sans 14",
7
- "created_at": "2018-01-01T00:00:00.000000-05:00",
8
- "updated_at": "2018-01-01T00:00:00.000000-05:00",
9
- "last_used_at": "2018-08-09T09:54:05.160655-04:00",
10
- "archived_at": "2018-08-09T09:54:05.160752-04:00",
11
- "last_modified_at": "2018-01-01T00:00:00.000000-05:00",
12
- "open_tracking_enabled": true,
13
- "click_tracking_enabled": true,
14
- "counts": {
15
- "sent_emails": 59,
16
- "views": 3,
17
- "clicks": 20,
18
- "replies": 1,
19
- "bounces": 10
20
- },
21
- "last_modified_user": {
22
- "id": 1,
23
- "_href": "https://api.salesloft.com/v2/users/1"
24
- }
25
- }
@@ -1,27 +0,0 @@
1
- [
2
- {
3
- "id": "51226150-3108-4dea-883b-0c0d7388f456",
4
- "title": "VP Breakup Email",
5
- "subject": "It’s time to say goodbye",
6
- "body": "<div>Do you know about birds?</div><div>You can find them here: <a href=\"https://www.allaboutbirds.org/guide/search/\" target=\"_blank\">https://www.allaboutbirds.org/guide/search/</a></div>",
7
- "body_preview": "hello\n\nhey sounds good\n\nok\n\nok\n\nwith an edit\n\nok now i'm comic sans 14",
8
- "created_at": "2018-01-01T00:00:00.000000-05:00",
9
- "updated_at": "2018-01-01T00:00:00.000000-05:00",
10
- "last_used_at": "2018-08-09T09:54:05.160655-04:00",
11
- "archived_at": "2018-08-09T09:54:05.160752-04:00",
12
- "last_modified_at": "2018-01-01T00:00:00.000000-05:00",
13
- "open_tracking_enabled": true,
14
- "click_tracking_enabled": true,
15
- "counts": {
16
- "sent_emails": 59,
17
- "views": 3,
18
- "clicks": 20,
19
- "replies": 1,
20
- "bounces": 10
21
- },
22
- "last_modified_user": {
23
- "id": 1,
24
- "_href": "https://api.salesloft.com/v2/users/1"
25
- }
26
- }
27
- ]
@@ -1,19 +0,0 @@
1
- {
2
- "id": 1,
3
- "name": "The A-Team",
4
- "created_at": "2018-01-01T00:00:00.000000-05:00",
5
- "updated_at": "2018-01-01T00:00:00.000000-05:00",
6
- "group_privacy_setting": "all_public",
7
- "team_visibility_default": "public",
8
- "plan": "professional",
9
- "license_limit": 100,
10
- "local_dial_enabled": true,
11
- "record_by_default": true,
12
- "call_recording_disabled": true,
13
- "email_daily_limit": 1000,
14
- "click_tracking_default": true,
15
- "allow_automated_email_steps": true,
16
- "custom_tracking_domain": "examplecompany.com",
17
- "dispositions_required": true,
18
- "sentiments_required": true
19
- }
@@ -1,40 +0,0 @@
1
- {
2
- "id": 1,
3
- "guid": "9cc6da15-d403-4f5b-aeed-c4b8463cf9ae",
4
- "created_at": "2018-01-01T00:00:00.000000-05:00",
5
- "updated_at": "2018-01-01T00:00:00.000000-05:00",
6
- "name": "Benjamin Franklin",
7
- "first_name": "Benjamin",
8
- "last_name": "Franklin",
9
- "active": true,
10
- "time_zone": "US/Eastern",
11
- "slack_username": "benjamin-franklin",
12
- "twitter_handle": "@benjamin-franklin",
13
- "email": "fake@salesloft.com",
14
- "email_client_email_address": "fake@salesloft.com",
15
- "sending_email_address": "fake@salesloft.com",
16
- "from_address": "fake@salesloft.com",
17
- "full_email_address": "\"Benjamin Franklin\" <Benjamin@salesloft.com>",
18
- "bcc_email_address": "fake@salesloft.com",
19
- "email_signature": "Benjamin Franklin<div></div><div></div>",
20
- "email_signature_type": "html",
21
- "email_signature_click_tracking_disabled": true,
22
- "team_admin": true,
23
- "local_dial_enabled": true,
24
- "click_to_call_enabled": true,
25
- "email_client_configured": true,
26
- "crm_connected": true,
27
- "phone_client": {
28
- "id": 1
29
- },
30
- "phone_number_assignment": {
31
- "id": 1
32
- },
33
- "group": {
34
- "id": 1
35
- },
36
- "team": {
37
- "id": 1,
38
- "_href": "https://api.salesloft.com/v2/team"
39
- }
40
- }
@@ -1,40 +0,0 @@
1
- {
2
- "id": 1,
3
- "guid": "9cc6da15-d403-4f5b-aeed-c4b8463cf9ae",
4
- "created_at": "2018-01-01T00:00:00.000000-05:00",
5
- "updated_at": "2018-01-01T00:00:00.000000-05:00",
6
- "name": "Benjamin Franklin",
7
- "first_name": "Benjamin",
8
- "last_name": "Franklin",
9
- "active": true,
10
- "time_zone": "US/Eastern",
11
- "slack_username": "benjamin-franklin",
12
- "twitter_handle": "@benjamin-franklin",
13
- "email": "fake@salesloft.com",
14
- "email_client_email_address": "fake@salesloft.com",
15
- "sending_email_address": "fake@salesloft.com",
16
- "from_address": "fake@salesloft.com",
17
- "full_email_address": "\"Benjamin Franklin\" <Benjamin@salesloft.com>",
18
- "bcc_email_address": "fake@salesloft.com",
19
- "email_signature": "Benjamin Franklin<div></div><div></div>",
20
- "email_signature_type": "html",
21
- "email_signature_click_tracking_disabled": true,
22
- "team_admin": true,
23
- "local_dial_enabled": true,
24
- "click_to_call_enabled": true,
25
- "email_client_configured": true,
26
- "crm_connected": true,
27
- "phone_client": {
28
- "id": 1
29
- },
30
- "phone_number_assignment": {
31
- "id": 1
32
- },
33
- "group": {
34
- "id": 1
35
- },
36
- "team": {
37
- "id": 1,
38
- "_href": "https://api.salesloft.com/v2/team"
39
- }
40
- }
@@ -1,42 +0,0 @@
1
- [
2
- {
3
- "id": 1,
4
- "guid": "9cc6da15-d403-4f5b-aeed-c4b8463cf9ae",
5
- "created_at": "2018-01-01T00:00:00.000000-05:00",
6
- "updated_at": "2018-01-01T00:00:00.000000-05:00",
7
- "name": "Benjamin Franklin",
8
- "first_name": "Benjamin",
9
- "last_name": "Franklin",
10
- "active": true,
11
- "time_zone": "US/Eastern",
12
- "slack_username": "benjamin-franklin",
13
- "twitter_handle": "@benjamin-franklin",
14
- "email": "fake@salesloft.com",
15
- "email_client_email_address": "fake@salesloft.com",
16
- "sending_email_address": "fake@salesloft.com",
17
- "from_address": "fake@salesloft.com",
18
- "full_email_address": "\"Benjamin Franklin\" <Benjamin@salesloft.com>",
19
- "bcc_email_address": "fake@salesloft.com",
20
- "email_signature": "Benjamin Franklin<div></div><div></div>",
21
- "email_signature_type": "html",
22
- "email_signature_click_tracking_disabled": true,
23
- "team_admin": true,
24
- "local_dial_enabled": true,
25
- "click_to_call_enabled": true,
26
- "email_client_configured": true,
27
- "crm_connected": true,
28
- "phone_client": {
29
- "id": 1
30
- },
31
- "phone_number_assignment": {
32
- "id": 1
33
- },
34
- "group": {
35
- "id": 1
36
- },
37
- "team": {
38
- "id": 1,
39
- "_href": "https://api.salesloft.com/v2/team"
40
- }
41
- }
42
- ]
File without changes
@@ -1,2 +0,0 @@
1
- describe RSalesloft do
2
- end