yonoma 0.1.0 → 0.1.1
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 +107 -11
- data/lib/yonoma/version.rb +1 -1
- data/yonoma.gemspec +1 -2
- metadata +2 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3aa4cde2f26f8817db1751a17d893eb4c7c61f3a8b847a7da5304dd97c376e23
|
|
4
|
+
data.tar.gz: 59a941a57b02aa14e22ae54c049879e1a8cacc517b0cc46653a1dfef481eef10
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 55a393f3a80d2f4fe3960d721c863cfce2d9b520f6bc940f25abb17c696c340b9c6cd2b9fc59bb2e8a196b9be77ead68390b97618e58c3d9954aa34fec819f31
|
|
7
|
+
data.tar.gz: '0644490625d841d8d57c59f3287db2349014ec3e659fd9d1f15aa903612b125f2b7d6bd529598f4cf69e0ce64c1c8607061f4d8cbf57f03ce7aef9babbb996ef'
|
data/README.md
CHANGED
|
@@ -30,7 +30,7 @@ To configure the SDK, initialize it with your API key:
|
|
|
30
30
|
require 'yonoma'
|
|
31
31
|
|
|
32
32
|
Yonoma::Client.configure do |config|
|
|
33
|
-
config.api_key =
|
|
33
|
+
config.api_key = api_key
|
|
34
34
|
end
|
|
35
35
|
```
|
|
36
36
|
|
|
@@ -38,24 +38,120 @@ end
|
|
|
38
38
|
|
|
39
39
|
### Managing Contacts
|
|
40
40
|
|
|
41
|
+
#### Create a Contact
|
|
41
42
|
```ruby
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
response_contact = Yonoma::Contacts.create("List Id", {
|
|
44
|
+
"email" : "email@example.com",
|
|
45
|
+
"status": "Subscribed" | "Unsubscribed"
|
|
46
|
+
"data": {
|
|
47
|
+
"firstName": string,
|
|
48
|
+
"lastName": string,
|
|
49
|
+
"phone": string,
|
|
50
|
+
"gender": string,
|
|
51
|
+
"address": string,
|
|
52
|
+
"city": string,
|
|
53
|
+
"state": string,
|
|
54
|
+
"country": string,
|
|
55
|
+
"zipcode": string,
|
|
56
|
+
}
|
|
57
|
+
})
|
|
58
|
+
puts response_contact
|
|
45
59
|
```
|
|
46
60
|
|
|
47
|
-
|
|
61
|
+
#### Unsubscribe a Contact
|
|
62
|
+
```ruby
|
|
63
|
+
response_contact = Yonoma::Contacts.unsubscribe("List Id", "Contact Id", {
|
|
64
|
+
"status" : "Subscribed" | "Unsubscribed"
|
|
65
|
+
})
|
|
66
|
+
puts response_contact
|
|
67
|
+
```
|
|
48
68
|
|
|
69
|
+
#### Add a Tag to a Contact
|
|
49
70
|
```ruby
|
|
50
|
-
|
|
51
|
-
|
|
71
|
+
response_add_tag = Yonoma::Contacts.add_tag("Contact Id", {
|
|
72
|
+
"tag_id" : "Tag Id"
|
|
73
|
+
})
|
|
74
|
+
puts response_add_tag
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
#### Remove a Tag from a Contact
|
|
78
|
+
```ruby
|
|
79
|
+
response_remove_tag = Yonoma::Contacts.remove_tag("Contact Id", {
|
|
80
|
+
"tag_id" : "Tag Id"
|
|
81
|
+
})
|
|
82
|
+
puts response_remove_tag
|
|
52
83
|
```
|
|
53
84
|
|
|
54
85
|
### Managing Tags
|
|
55
86
|
|
|
87
|
+
#### Create a Tag
|
|
88
|
+
```ruby
|
|
89
|
+
response_add_tag = Yonoma::Tags.create({
|
|
90
|
+
"tag_name" : "Tag Name"
|
|
91
|
+
})
|
|
92
|
+
puts response_add_tag
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
#### Update a Tag
|
|
96
|
+
```ruby
|
|
97
|
+
response_update_tag = Yonoma::Tags.update("Tag Id", {
|
|
98
|
+
"tag_name" : "Tag Name"
|
|
99
|
+
})
|
|
100
|
+
puts response_update_tag
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
#### Delete a Tag
|
|
104
|
+
```ruby
|
|
105
|
+
response_del_tag = Yonoma::Tags.delete("Tag Id")
|
|
106
|
+
puts response_del_tag
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
#### Retrieve a Specific Tag
|
|
110
|
+
```ruby
|
|
111
|
+
response_tags_retrieve = Yonoma::Tags.retrieve("Tag Id")
|
|
112
|
+
puts response_tags_retrieve
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
#### List All Tags
|
|
116
|
+
```ruby
|
|
117
|
+
response_tags = Yonoma::Tags.list()
|
|
118
|
+
puts response_tags
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
### Managing Lists
|
|
122
|
+
|
|
123
|
+
#### Create a List
|
|
124
|
+
```ruby
|
|
125
|
+
response_add_list = Yonoma::Lists.create({
|
|
126
|
+
"list_name" : "List Name"
|
|
127
|
+
})
|
|
128
|
+
puts response_add_list
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
#### Update a List
|
|
132
|
+
```ruby
|
|
133
|
+
response_update_list = Yonoma::Lists.update("List Id", {
|
|
134
|
+
"list_name" : "List Name"
|
|
135
|
+
})
|
|
136
|
+
puts response_update_list
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
#### Delete a List
|
|
140
|
+
```ruby
|
|
141
|
+
response_del_list = Yonoma::Lists.delete("List Id")
|
|
142
|
+
puts response_del_list
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
#### Retrieve a Specific List
|
|
146
|
+
```ruby
|
|
147
|
+
response_list_retrieve = Yonoma::Lists.retrieve("List Id")
|
|
148
|
+
puts response_list_retrieve
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
#### List All Lists
|
|
56
152
|
```ruby
|
|
57
|
-
|
|
58
|
-
|
|
153
|
+
response_list = Yonoma::Lists.list()
|
|
154
|
+
puts response_list
|
|
59
155
|
```
|
|
60
156
|
|
|
61
157
|
## Development
|
|
@@ -64,14 +160,14 @@ To contribute to the SDK:
|
|
|
64
160
|
|
|
65
161
|
1. Clone the repository
|
|
66
162
|
```sh
|
|
67
|
-
git clone https://github.com/
|
|
163
|
+
git clone https://github.com/YonoamaHQ/yonoma-email-marketing-ruby.git
|
|
68
164
|
```
|
|
69
165
|
2. Run `bin/setup` to install dependencies
|
|
70
166
|
3. Run `rake test` to execute tests
|
|
71
167
|
4. Submit a pull request with your changes
|
|
72
168
|
|
|
73
169
|
## GitHub Repository
|
|
74
|
-
Find the project on GitHub: [Yonoma Ruby SDK](https://github.com/
|
|
170
|
+
Find the project on GitHub: [Yonoma Ruby SDK](https://github.com/YonoamaHQ/yonoma-email-marketing-ruby)
|
|
75
171
|
|
|
76
172
|
## License
|
|
77
173
|
|
data/lib/yonoma/version.rb
CHANGED
data/yonoma.gemspec
CHANGED
|
@@ -8,8 +8,7 @@ Gem::Specification.new do |spec|
|
|
|
8
8
|
spec.authors = ["YonomaHQ"]
|
|
9
9
|
spec.email = ["tools@yonoma.io"]
|
|
10
10
|
|
|
11
|
-
spec.summary = "
|
|
12
|
-
spec.description = "A Ruby gem for managing and sending marketing emails. This gem provides an easy-to-use interface to create email campaigns, handle mailing lists, and track metrics such as open rates and clicks. Ideal for small businesses and individuals who need a straightforward, code-driven solution for their email marketing needs."
|
|
11
|
+
spec.summary = "The official Ruby client library for the Yonoma Email Marketing API."
|
|
13
12
|
spec.homepage = "https://yonoma.io/"
|
|
14
13
|
spec.required_ruby_version = ">= 3.1.0"
|
|
15
14
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- YonomaHQ
|
|
@@ -37,10 +37,6 @@ dependencies:
|
|
|
37
37
|
- - "~>"
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
39
|
version: '2.6'
|
|
40
|
-
description: A Ruby gem for managing and sending marketing emails. This gem provides
|
|
41
|
-
an easy-to-use interface to create email campaigns, handle mailing lists, and track
|
|
42
|
-
metrics such as open rates and clicks. Ideal for small businesses and individuals
|
|
43
|
-
who need a straightforward, code-driven solution for their email marketing needs.
|
|
44
40
|
email:
|
|
45
41
|
- tools@yonoma.io
|
|
46
42
|
executables: []
|
|
@@ -80,5 +76,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
80
76
|
requirements: []
|
|
81
77
|
rubygems_version: 3.6.5
|
|
82
78
|
specification_version: 4
|
|
83
|
-
summary:
|
|
79
|
+
summary: The official Ruby client library for the Yonoma Email Marketing API.
|
|
84
80
|
test_files: []
|