loops_sdk 0.2.0 → 1.1.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e5cbc02e88853c1dfb986f2d18fc113badcc569865c83c21a58d42809651245c
4
- data.tar.gz: d38a4ff09a27e949dcae803cbd9c4f143f32b8dfb7100e6e3cbdc9323d61ccb9
3
+ metadata.gz: 8eeddad6948c305215fe8efe6bd218550fad021aaa12615f6e32b8d69d552fda
4
+ data.tar.gz: b4632c42a4762b587fc5a96b05c8aa25f734823bb2fe5de31a181556a6ac976d
5
5
  SHA512:
6
- metadata.gz: e9298ac3c8a13c8e207a1c621bd74a5370881537e11a520a85dc2b9ac7a302ece4d2b13a3997c8726b825a474391624d8f5127610823f4dbb5bb75c3bde7b90f
7
- data.tar.gz: c3b0de412fea85c5635880c5bdf962164fac8884cd25344b46ad975125dacd89809c541ce4cc921c0e2b304b6204b12fe15455b905479b0593d093126a70c175
6
+ metadata.gz: e9cff4116be11b5c86aa25137b0fe832ee1dd1875a33a3625554a094048781b2637388ed6065c8cd23be28d6b1771567f1fd5704c63f2f985aae4f3abd5b9f1f
7
+ data.tar.gz: fc376fc43f139688c1e76bbe5a06cad0c39e6b3762f481636438a33e1548fa9af6eb1ea90f228384cccad162acb88aec927f50cf1487d35e88e18cdba1abc893
data/README.md CHANGED
@@ -38,9 +38,10 @@ LoopsSdk.configure do |config|
38
38
  end
39
39
  ```
40
40
 
41
+ Then you can call methods in your code:
42
+
41
43
  ```ruby
42
44
  begin
43
-
44
45
  response = LoopsSdk::Transactional.send(
45
46
  transactional_id: "closfz8ui02yq......",
46
47
  email: "dan@loops.so",
@@ -48,11 +49,12 @@ begin
48
49
  loginUrl: "https://app.domain.com/login?code=1234567890"
49
50
  }
50
51
  )
51
-
52
52
  render json: response
53
53
 
54
54
  rescue LoopsSdk::APIError => e
55
- # Do something if there is an error from the API
55
+ # JSON returned by the API is in error.json and the HTTP code is in error.statusCode
56
+ # Error messages explaining the issue can be found in error.json['message']
57
+ Rails.logger.error("Loops API Error: #{e.json['message']} (Status: #{e.statusCode})")
56
58
  end
57
59
  ```
58
60
 
@@ -98,15 +100,17 @@ You can use custom contact properties in API calls. Please make sure to [add cus
98
100
 
99
101
  ## Methods
100
102
 
101
- - [ApiKey.test()](#apikey-test)
102
- - [Contacts.create()](#contacts-create)
103
- - [Contacts.update()](#contacts-update)
104
- - [Contacts.find()](#contacts-find)
105
- - [Contacts.delete()](#contacts-delete)
106
- - [MailingLists.list()](#mailinglists-list)
107
- - [Events.send()](#events-send)
108
- - [Transactional.send()](#transactional-send)
109
- - [CustomFields.list()](#customfields-list)
103
+ - [ApiKey.test()](#apikeytest)
104
+ - [Contacts.create()](#contactscreate)
105
+ - [Contacts.update()](#contactsupdate)
106
+ - [Contacts.find()](#contactsfind)
107
+ - [Contacts.delete()](#contactsdelete)
108
+ - [ContactProperties.create()](#contactpropertiescreate)
109
+ - [ContactProperties.list()](#contactpropertieslist)
110
+ - [MailingLists.list()](#mailinglistslist)
111
+ - [Events.send()](#eventssend)
112
+ - [Transactional.send()](#transactionalsend)
113
+ - [Transactional.list()](#transactionallist)
110
114
 
111
115
  ---
112
116
 
@@ -145,7 +149,7 @@ This method will return a success or error message:
145
149
 
146
150
  ---
147
151
 
148
- ## Contacts.create()
152
+ ### Contacts.create()
149
153
 
150
154
  Create a new contact.
151
155
 
@@ -199,7 +203,7 @@ This method will return a success or error message:
199
203
 
200
204
  ---
201
205
 
202
- ## Contacts.update()
206
+ ### Contacts.update()
203
207
 
204
208
  Update a contact.
205
209
 
@@ -232,7 +236,8 @@ response = LoopsSdk::Contacts.update(
232
236
  email: "newemail@gmail.com",
233
237
  properties: {
234
238
  userId: "1234",
235
- })
239
+ }
240
+ )
236
241
  ```
237
242
 
238
243
  #### Response
@@ -348,6 +353,133 @@ This method will return a success or error message:
348
353
 
349
354
  ---
350
355
 
356
+ ### ContactProperties.create()
357
+
358
+ Create a new contact property.
359
+
360
+ [API Reference](https://loops.so/docs/api-reference/create-contact-property)
361
+
362
+ #### Parameters
363
+
364
+ | Name | Type | Required | Notes |
365
+ | ------ | ------ | -------- | -------------------------------------------------------------------------------------- |
366
+ | `name` | string | Yes | The name of the property. Should be in camelCase, like `planName` or `favouriteColor`. |
367
+ | `type` | string | Yes | The property's value type.<br />Can be one of `string`, `number`, `boolean` or `date`. |
368
+
369
+ #### Examples
370
+
371
+ ```ruby
372
+ response = LoopsSdk::ContactProperties.create(
373
+ name: "planName",
374
+ type: "string"
375
+ )
376
+ ```
377
+
378
+ #### Response
379
+
380
+ This method will return a success or error message:
381
+
382
+ ```json
383
+ {
384
+ "success": true
385
+ }
386
+ ```
387
+
388
+ ```json
389
+ {
390
+ "success": false,
391
+ "message": "An error message here."
392
+ }
393
+ ```
394
+
395
+ ---
396
+
397
+ ### ContactProperties.list()
398
+
399
+ Get a list of your account's contact properties.
400
+
401
+ [API Reference](https://loops.so/docs/api-reference/list-contact-properties)
402
+
403
+ #### Parameters
404
+
405
+ | Name | Type | Required | Notes |
406
+ | ------ | ------ | -------- | --------------------------------------------------------------- |
407
+ | `list` | string | No | Use "custom" to retrieve only your account's custom properties. |
408
+
409
+ #### Example
410
+
411
+ ```ruby
412
+ response = LoopsSdk::ContactProperties.list
413
+
414
+ response = LoopsSdk::ContactProperties.list(list: "custom")
415
+ ```
416
+
417
+ #### Response
418
+
419
+ This method will return a list of contact property objects containing `key`, `label` and `type` attributes.
420
+
421
+ ```json
422
+ [
423
+ {
424
+ "key": "firstName",
425
+ "label": "First Name",
426
+ "type": "string"
427
+ },
428
+ {
429
+ "key": "lastName",
430
+ "label": "Last Name",
431
+ "type": "string"
432
+ },
433
+ {
434
+ "key": "email",
435
+ "label": "Email",
436
+ "type": "string"
437
+ },
438
+ {
439
+ "key": "notes",
440
+ "label": "Notes",
441
+ "type": "string"
442
+ },
443
+ {
444
+ "key": "source",
445
+ "label": "Source",
446
+ "type": "string"
447
+ },
448
+ {
449
+ "key": "userGroup",
450
+ "label": "User Group",
451
+ "type": "string"
452
+ },
453
+ {
454
+ "key": "userId",
455
+ "label": "User Id",
456
+ "type": "string"
457
+ },
458
+ {
459
+ "key": "subscribed",
460
+ "label": "Subscribed",
461
+ "type": "boolean"
462
+ },
463
+ {
464
+ "key": "createdAt",
465
+ "label": "Created At",
466
+ "type": "date"
467
+ },
468
+ {
469
+ "key": "favoriteColor",
470
+ "label": "Favorite Color",
471
+ "type": "string"
472
+ },
473
+ {
474
+ "key": "plan",
475
+ "label": "Plan",
476
+ "type": "string"
477
+ }
478
+ ]
479
+ ```
480
+
481
+ ---
482
+
351
483
  ### MailingLists.list()
352
484
 
353
485
  Get a list of your account's mailing lists. [Read more about mailing lists](https://loops.so/docs/contacts/mailing-lists)
@@ -366,7 +498,7 @@ response = LoopsSdk::MailingLists.list
366
498
 
367
499
  #### Response
368
500
 
369
- This method will return a list of mailing list objects containing `id`, `name` and `isPublic` attributes.
501
+ This method will return a list of mailing list objects containing `id`, `name`, `description` and `isPublic` attributes.
370
502
 
371
503
  If your account has no mailing lists, an empty list will be returned.
372
504
 
@@ -375,11 +507,13 @@ If your account has no mailing lists, an empty list will be returned.
375
507
  {
376
508
  "id": "cm06f5v0e45nf0ml5754o9cix",
377
509
  "name": "Main list",
510
+ "description": "All customers.",
378
511
  "isPublic": true
379
512
  },
380
513
  {
381
514
  "id": "cm16k73gq014h0mmj5b6jdi9r",
382
515
  "name": "Investors",
516
+ "description": null,
383
517
  "isPublic": false
384
518
  }
385
519
  ]
@@ -423,7 +557,7 @@ response = LoopsSdk::Events.send(
423
557
  cm06f5v0e45nf0ml5754o9cix: true,
424
558
  cm16k73gq014h0mmj5b6jdi9r: false,
425
559
  },
426
- })
560
+ )
427
561
 
428
562
  # In this case with both email and userId present, the system will look for a contact with either a
429
563
  # matching `email` or `user_id` value.
@@ -438,7 +572,7 @@ response = LoopsSdk::Events.send(
438
572
  firstName: "Bob",
439
573
  plan: "pro",
440
574
  },
441
- })
575
+ )
442
576
  ```
443
577
 
444
578
  #### Response
@@ -504,7 +638,7 @@ response = LoopsSdk::Transactional.send(
504
638
  data: "JVBERi0xLjMKJcTl8uXrp/Og0MTGCjQgMCBvYmoKPD...",
505
639
  },
506
640
  ],
507
- })
641
+ )
508
642
  ```
509
643
 
510
644
  #### Response
@@ -540,41 +674,64 @@ If there is a problem with the request, a descriptive error message will be retu
540
674
 
541
675
  ---
542
676
 
543
- ### CustomFields.list()
677
+ ### Transactional.list()
544
678
 
545
- Get a list of your account's custom fields. These are custom properties that can be added to contacts to store extra data. [Read more about contact properties](https://loops.so/docs/contacts/properties)
679
+ Get a list of published transactional emails.
546
680
 
547
- [API Reference](https://loops.so/docs/api-reference/list-custom-fields)
681
+ [API Reference](https://loops.so/docs/api-reference/list-transactional-emails)
548
682
 
549
683
  #### Parameters
550
684
 
551
- None
685
+ | Name | Type | Required | Notes |
686
+ | --------- | ------- | -------- | ----------------------------------------------------------------------------------------------------------------------------- |
687
+ | `perPage` | integer | No | How many results to return per page. Must be between 10 and 50. Defaults to 20 if omitted. |
688
+ | `cursor` | string | No | A cursor, to return a specific page of results. Cursors can be found from the `pagination.nextCursor` value in each response. |
552
689
 
553
690
  #### Example
554
691
 
555
692
  ```ruby
556
- response LoopsSdk::CustomFields.list
693
+ response = LoopsSdk::Transactional.list
694
+
695
+ response = LoopsSdk::Transactional.list(perPage: 15)
557
696
  ```
558
697
 
559
698
  #### Response
560
699
 
561
- This method will return a list of custom field objects containing `key`, `label` and `type` attributes.
562
-
563
- If your account has no custom fields, an empty list will be returned.
564
-
565
700
  ```json
566
- [
567
- {
568
- "key": "favoriteColor",
569
- "label": "Favorite Color",
570
- "type": "string"
701
+ {
702
+ "pagination": {
703
+ "totalResults": 23,
704
+ "returnedResults": 20,
705
+ "perPage": 20,
706
+ "totalPages": 2,
707
+ "nextCursor": "clyo0q4wo01p59fsecyxqsh38",
708
+ "nextPage": "https://app.loops.so/api/v1/transactional?cursor=clyo0q4wo01p59fsecyxqsh38&perPage=20"
571
709
  },
572
- {
573
- "key": "plan",
574
- "label": "Plan",
575
- "type": "string"
576
- }
577
- ]
710
+ "data": [
711
+ {
712
+ "id": "clfn0k1yg001imo0fdeqg30i8",
713
+ "lastUpdated": "2023-11-06T17:48:07.249Z",
714
+ "dataVariables": []
715
+ },
716
+ {
717
+ "id": "cll42l54f20i1la0lfooe3z12",
718
+ "lastUpdated": "2025-02-02T02:56:28.845Z",
719
+ "dataVariables": [
720
+ "confirmationUrl"
721
+ ]
722
+ },
723
+ {
724
+ "id": "clw6rbuwp01rmeiyndm80155l",
725
+ "lastUpdated": "2024-05-14T19:02:52.000Z",
726
+ "dataVariables": [
727
+ "firstName",
728
+ "lastName",
729
+ "inviteLink"
730
+ ]
731
+ },
732
+ ...
733
+ ]
734
+ }
578
735
  ```
579
736
 
580
737
  ---
@@ -40,12 +40,18 @@ module LoopsSdk
40
40
  end
41
41
 
42
42
  class APIError < StandardError
43
- attr_reader :status, :body
43
+ attr_reader :statusCode, :json
44
44
 
45
45
  def initialize(status, body)
46
- @status = status
47
- @body = body
48
- super("API request failed with status #{status}: #{body}")
46
+ @statusCode = status
47
+ @json = body
48
+ message = begin
49
+ parsed = JSON.parse(body)
50
+ parsed["message"] ? ": #{parsed["message"]}" : ""
51
+ rescue JSON::ParserError
52
+ ""
53
+ end
54
+ super("API request failed with status #{statusCode}#{message}")
49
55
  end
50
56
  end
51
57
  end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module LoopsSdk
4
+ class ContactProperties < Base
5
+ class << self
6
+ def create(name:, type:)
7
+ body = {
8
+ name: name,
9
+ type: type
10
+ }
11
+ make_request(:post, "v1/contacts/properties", {}, body)
12
+ end
13
+ def list(list: nil)
14
+ raise ArgumentError, "List value must be nil, 'custom' or 'all'." unless [nil, "custom", "all"].include?(list)
15
+ make_request(:get, "v1/contacts/properties", {list: list || "all"})
16
+ end
17
+ end
18
+ end
19
+ end
@@ -3,6 +3,9 @@
3
3
  module LoopsSdk
4
4
  class Transactional < Base
5
5
  class << self
6
+ def list(perPage: 20, cursor: nil)
7
+ make_request(:get, "v1/transactional", { perPage: perPage, cursor: cursor })
8
+ end
6
9
  def send(transactional_id:, email:, add_to_audience: false, data_variables: {}, attachments: [])
7
10
  attachments = attachments.map do |attachment|
8
11
  attachment.transform_keys { |key| key == :content_type ? :contentType : key }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LoopsSdk
4
- VERSION = "0.2.0"
4
+ VERSION = "1.1.0"
5
5
  end
data/lib/loops_sdk.rb CHANGED
@@ -9,7 +9,7 @@ require_relative "loops_sdk/contacts"
9
9
  require_relative "loops_sdk/events"
10
10
  require_relative "loops_sdk/mailing_lists"
11
11
  require_relative "loops_sdk/transactional"
12
- require_relative "loops_sdk/custom_fields"
12
+ require_relative "loops_sdk/contact_properties"
13
13
  require_relative "loops_sdk/api_key"
14
14
 
15
15
  module LoopsSdk
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: loops_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Rowden
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-10-29 00:00:00.000000000 Z
11
+ date: 2025-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -31,24 +31,18 @@ executables: []
31
31
  extensions: []
32
32
  extra_rdoc_files: []
33
33
  files:
34
- - ".rubocop.yml"
35
- - CHANGELOG.md
36
- - CODE_OF_CONDUCT.md
37
- - CONTRIBUTING.md
38
34
  - LICENSE.txt
39
35
  - README.md
40
- - Rakefile
41
36
  - lib/loops_sdk.rb
42
37
  - lib/loops_sdk/api_key.rb
43
38
  - lib/loops_sdk/base.rb
44
39
  - lib/loops_sdk/configuration.rb
40
+ - lib/loops_sdk/contact_properties.rb
45
41
  - lib/loops_sdk/contacts.rb
46
- - lib/loops_sdk/custom_fields.rb
47
42
  - lib/loops_sdk/events.rb
48
43
  - lib/loops_sdk/mailing_lists.rb
49
44
  - lib/loops_sdk/transactional.rb
50
45
  - lib/loops_sdk/version.rb
51
- - sig/loops_sdk.rbs
52
46
  homepage: https://loops.so/docs/api-reference
53
47
  licenses:
54
48
  - MIT
data/.rubocop.yml DELETED
@@ -1,11 +0,0 @@
1
- AllCops:
2
- TargetRubyVersion: 3.0
3
-
4
- Style/StringLiterals:
5
- EnforcedStyle: double_quotes
6
-
7
- Style/StringLiteralsInInterpolation:
8
- EnforcedStyle: double_quotes
9
-
10
- Metrics/ParameterLists:
11
- Max: 6
data/CHANGELOG.md DELETED
@@ -1,15 +0,0 @@
1
- ## v0.2.0 - Oct 29, 2024
2
-
3
- Added rate limit handling with `RateLimitError`.
4
-
5
- ## v0.1.2 - Aug 16, 2024
6
-
7
- Support for resetting contact properties with `nil`.
8
-
9
- ## v0.1.1 - Aug 16, 2024
10
-
11
- Added `ApiKey.test` method for testing API keys.
12
-
13
- ## v0.1.0 - Aug 16, 2024
14
-
15
- Initial release.
data/CODE_OF_CONDUCT.md DELETED
@@ -1,132 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- We as members, contributors, and leaders pledge to make participation in our
6
- community a harassment-free experience for everyone, regardless of age, body
7
- size, visible or invisible disability, ethnicity, sex characteristics, gender
8
- identity and expression, level of experience, education, socio-economic status,
9
- nationality, personal appearance, race, caste, color, religion, or sexual
10
- identity and orientation.
11
-
12
- We pledge to act and interact in ways that contribute to an open, welcoming,
13
- diverse, inclusive, and healthy community.
14
-
15
- ## Our Standards
16
-
17
- Examples of behavior that contributes to a positive environment for our
18
- community include:
19
-
20
- - Demonstrating empathy and kindness toward other people
21
- - Being respectful of differing opinions, viewpoints, and experiences
22
- - Giving and gracefully accepting constructive feedback
23
- - Accepting responsibility and apologizing to those affected by our mistakes,
24
- and learning from the experience
25
- - Focusing on what is best not just for us as individuals, but for the overall
26
- community
27
-
28
- Examples of unacceptable behavior include:
29
-
30
- - The use of sexualized language or imagery, and sexual attention or advances of
31
- any kind
32
- - Trolling, insulting or derogatory comments, and personal or political attacks
33
- - Public or private harassment
34
- - Publishing others' private information, such as a physical or email address,
35
- without their explicit permission
36
- - Other conduct which could reasonably be considered inappropriate in a
37
- professional setting
38
-
39
- ## Enforcement Responsibilities
40
-
41
- Community leaders are responsible for clarifying and enforcing our standards of
42
- acceptable behavior and will take appropriate and fair corrective action in
43
- response to any behavior that they deem inappropriate, threatening, offensive,
44
- or harmful.
45
-
46
- Community leaders have the right and responsibility to remove, edit, or reject
47
- comments, commits, code, wiki edits, issues, and other contributions that are
48
- not aligned to this Code of Conduct, and will communicate reasons for moderation
49
- decisions when appropriate.
50
-
51
- ## Scope
52
-
53
- This Code of Conduct applies within all community spaces, and also applies when
54
- an individual is officially representing the community in public spaces.
55
- Examples of representing our community include using an official email address,
56
- posting via an official social media account, or acting as an appointed
57
- representative at an online or offline event.
58
-
59
- ## Enforcement
60
-
61
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
- reported to the community leaders responsible for enforcement at
63
- [INSERT CONTACT METHOD].
64
- All complaints will be reviewed and investigated promptly and fairly.
65
-
66
- All community leaders are obligated to respect the privacy and security of the
67
- reporter of any incident.
68
-
69
- ## Enforcement Guidelines
70
-
71
- Community leaders will follow these Community Impact Guidelines in determining
72
- the consequences for any action they deem in violation of this Code of Conduct:
73
-
74
- ### 1. Correction
75
-
76
- **Community Impact**: Use of inappropriate language or other behavior deemed
77
- unprofessional or unwelcome in the community.
78
-
79
- **Consequence**: A private, written warning from community leaders, providing
80
- clarity around the nature of the violation and an explanation of why the
81
- behavior was inappropriate. A public apology may be requested.
82
-
83
- ### 2. Warning
84
-
85
- **Community Impact**: A violation through a single incident or series of
86
- actions.
87
-
88
- **Consequence**: A warning with consequences for continued behavior. No
89
- interaction with the people involved, including unsolicited interaction with
90
- those enforcing the Code of Conduct, for a specified period of time. This
91
- includes avoiding interactions in community spaces as well as external channels
92
- like social media. Violating these terms may lead to a temporary or permanent
93
- ban.
94
-
95
- ### 3. Temporary Ban
96
-
97
- **Community Impact**: A serious violation of community standards, including
98
- sustained inappropriate behavior.
99
-
100
- **Consequence**: A temporary ban from any sort of interaction or public
101
- communication with the community for a specified period of time. No public or
102
- private interaction with the people involved, including unsolicited interaction
103
- with those enforcing the Code of Conduct, is allowed during this period.
104
- Violating these terms may lead to a permanent ban.
105
-
106
- ### 4. Permanent Ban
107
-
108
- **Community Impact**: Demonstrating a pattern of violation of community
109
- standards, including sustained inappropriate behavior, harassment of an
110
- individual, or aggression toward or disparagement of classes of individuals.
111
-
112
- **Consequence**: A permanent ban from any sort of public interaction within the
113
- community.
114
-
115
- ## Attribution
116
-
117
- This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
- version 2.1, available at
119
- [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
120
-
121
- Community Impact Guidelines were inspired by
122
- [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
123
-
124
- For answers to common questions about this code of conduct, see the FAQ at
125
- [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
126
- [https://www.contributor-covenant.org/translations][translations].
127
-
128
- [homepage]: https://www.contributor-covenant.org
129
- [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
130
- [Mozilla CoC]: https://github.com/mozilla/diversity
131
- [FAQ]: https://www.contributor-covenant.org/faq
132
- [translations]: https://www.contributor-covenant.org/translations
data/CONTRIBUTING.md DELETED
@@ -1,51 +0,0 @@
1
- # Contributing to Loops Ruby SDK
2
-
3
- Thank you for your interest in contributing to Loops Ruby SDK. We welcome contributions from the community and are excited to see what you'll bring to the project.
4
-
5
- ## Getting Started
6
-
7
- 1. Fork the repository on GitHub.
8
- 2. Clone your fork locally: `git clone <https://github.com/Loops-so/loops-rb.git`>
9
- 3. Create a new branch for your feature or bug fix: `git checkout -b your-branch-name`
10
-
11
- ## Making Changes
12
-
13
- 1. Make your changes in your branch.
14
- 2. Follow the coding style and conventions used in the project.
15
- 3. Write clear, concise commit messages.
16
- 4. Test your changes thoroughly.
17
-
18
- ## Submitting a Pull Request
19
-
20
- 1. Push your changes to your fork on GitHub.
21
- 2. From your fork, open a pull request in the correct branch of the main repository.
22
- 3. Provide a clear title and description for your pull request using our PR template.
23
- 4. Link any relevant issues in the pull request description.
24
-
25
- ## Code of Conduct
26
-
27
- Please note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project, you agree to abide by its terms.
28
-
29
- ## Reporting Bugs
30
-
31
- If you find a bug, please open an issue on GitHub. Include as much detail as possible:
32
-
33
- - A clear and descriptive title
34
- - Steps to reproduce the issue
35
- - Expected behavior
36
- - Actual behavior
37
- - Any error messages or screenshots
38
-
39
- ## Suggesting Enhancements
40
-
41
- We welcome suggestions for enhancements! Please open an issue on GitHub with:
42
-
43
- - A clear and descriptive title
44
- - A detailed description of the proposed enhancement
45
- - Any examples or mock-ups if applicable
46
-
47
- ## Questions?
48
-
49
- If you have any questions, feel free to open an issue or contact the maintainers directly.
50
-
51
- Thank you for contributing!
data/Rakefile DELETED
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "bundler/gem_tasks"
4
- require "rubocop/rake_task"
5
-
6
- RuboCop::RakeTask.new
7
-
8
- task default: :rubocop
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module LoopsSdk
4
- class CustomFields < Base
5
- class << self
6
- def list
7
- make_request(:get, "v1/contacts/customFields")
8
- end
9
- end
10
- end
11
- end
data/sig/loops_sdk.rbs DELETED
@@ -1,4 +0,0 @@
1
- module LoopsSdk
2
- VERSION: String
3
- # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
- end