yonoma 0.1.1 → 0.1.2
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 +4 -4
- data/README.md +14 -27
- data/lib/yonoma/mail.rb +7 -0
- data/lib/yonoma/version.rb +1 -1
- data/lib/yonoma.rb +1 -0
- data/yonoma.gemspec +2 -2
- metadata +5 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8f782eff8ed3e2b785f3a4cc1d5a83baafdcf4e25436b51404bca5054dac149a
|
|
4
|
+
data.tar.gz: 0ceff5124f0cc0e5e8f3dea4b7219b57f0e98c3ac2e1b10553ac89e06174ceca
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d1cf346c4e354af8f110e4df7afd4e33e745b7154c13986ddc59389e4c9c24ed396d1645874ad1da3b27b541ff375261d4ab1aed44bb28962bdc0af88d3a7cf7
|
|
7
|
+
data.tar.gz: 0bd71cbfaa5d6fb10029a0f071360b3187c226b77c9034e71b542fb8ba9bd618f3f928cb2c6f3e7a2e2060691162a29b1528398c1adbe0b9130d07147b24b9ee
|
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
## [Yonoma](https://yonoma.io/) Ruby Email Marketing SDK
|
|
2
2
|
|
|
3
3
|
Welcome to the Yonoma Ruby SDK! This gem provides a simple and efficient way to integrate with the Yonoma Email Marketing API.
|
|
4
4
|
|
|
@@ -29,13 +29,20 @@ To configure the SDK, initialize it with your API key:
|
|
|
29
29
|
```ruby
|
|
30
30
|
require 'yonoma'
|
|
31
31
|
|
|
32
|
-
Yonoma
|
|
33
|
-
config.api_key = api_key
|
|
34
|
-
end
|
|
32
|
+
Yonoma.api_key = 'api_key'
|
|
35
33
|
```
|
|
36
34
|
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
### Usage
|
|
36
|
+
#### Send your email:
|
|
37
|
+
```ruby
|
|
38
|
+
response_email = Yonoma::Mail.send({
|
|
39
|
+
"from_email":"updates@yonoma.io",
|
|
40
|
+
"to_email":"email@yourdomain.com",
|
|
41
|
+
"subject":"Welcome to Yonoma - You're In!",
|
|
42
|
+
"mail_template": "We're excited to welcome you to Yonoma! Your successful signup marks the beginning of what we hope will be an exceptional journey."
|
|
43
|
+
})
|
|
44
|
+
puts response_email
|
|
45
|
+
```
|
|
39
46
|
### Managing Contacts
|
|
40
47
|
|
|
41
48
|
#### Create a Contact
|
|
@@ -152,24 +159,4 @@ puts response_list_retrieve
|
|
|
152
159
|
```ruby
|
|
153
160
|
response_list = Yonoma::Lists.list()
|
|
154
161
|
puts response_list
|
|
155
|
-
```
|
|
156
|
-
|
|
157
|
-
## Development
|
|
158
|
-
|
|
159
|
-
To contribute to the SDK:
|
|
160
|
-
|
|
161
|
-
1. Clone the repository
|
|
162
|
-
```sh
|
|
163
|
-
git clone https://github.com/YonoamaHQ/yonoma-email-marketing-ruby.git
|
|
164
|
-
```
|
|
165
|
-
2. Run `bin/setup` to install dependencies
|
|
166
|
-
3. Run `rake test` to execute tests
|
|
167
|
-
4. Submit a pull request with your changes
|
|
168
|
-
|
|
169
|
-
## GitHub Repository
|
|
170
|
-
Find the project on GitHub: [Yonoma Ruby SDK](https://github.com/YonoamaHQ/yonoma-email-marketing-ruby)
|
|
171
|
-
|
|
172
|
-
## License
|
|
173
|
-
|
|
174
|
-
This project is licensed under the MIT License. See the `LICENSE` file for details.
|
|
175
|
-
|
|
162
|
+
```
|
data/lib/yonoma/mail.rb
ADDED
data/lib/yonoma/version.rb
CHANGED
data/lib/yonoma.rb
CHANGED
data/yonoma.gemspec
CHANGED
|
@@ -15,8 +15,8 @@ Gem::Specification.new do |spec|
|
|
|
15
15
|
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
|
16
16
|
|
|
17
17
|
spec.metadata["homepage_uri"] = spec.homepage
|
|
18
|
-
spec.metadata["source_code_uri"] = "https://github.com/YonomaHQ/yonoma-
|
|
19
|
-
spec.metadata["changelog_uri"] = "https://github.com/YonomaHQ/yonoma-
|
|
18
|
+
spec.metadata["source_code_uri"] = "https://github.com/YonomaHQ/yonoma-ruby"
|
|
19
|
+
spec.metadata["changelog_uri"] = "https://github.com/YonomaHQ/yonoma-ruby/releases"
|
|
20
20
|
spec.license = "MIT"
|
|
21
21
|
# Specify which files should be added to the gem when it is released.
|
|
22
22
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: yonoma
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- YonomaHQ
|
|
8
8
|
bindir: exe
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2025-03-
|
|
10
|
+
date: 2025-03-06 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: httparty
|
|
@@ -49,6 +49,7 @@ files:
|
|
|
49
49
|
- lib/yonoma/client.rb
|
|
50
50
|
- lib/yonoma/contacts.rb
|
|
51
51
|
- lib/yonoma/lists.rb
|
|
52
|
+
- lib/yonoma/mail.rb
|
|
52
53
|
- lib/yonoma/tags.rb
|
|
53
54
|
- lib/yonoma/version.rb
|
|
54
55
|
- yonoma.gemspec
|
|
@@ -58,8 +59,8 @@ licenses:
|
|
|
58
59
|
metadata:
|
|
59
60
|
allowed_push_host: https://rubygems.org
|
|
60
61
|
homepage_uri: https://yonoma.io/
|
|
61
|
-
source_code_uri: https://github.com/YonomaHQ/yonoma-
|
|
62
|
-
changelog_uri: https://github.com/YonomaHQ/yonoma-
|
|
62
|
+
source_code_uri: https://github.com/YonomaHQ/yonoma-ruby
|
|
63
|
+
changelog_uri: https://github.com/YonomaHQ/yonoma-ruby/releases
|
|
63
64
|
rdoc_options: []
|
|
64
65
|
require_paths:
|
|
65
66
|
- lib
|