File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 1
1
require 'mailtrap'
2
2
3
+ account_id = 3229
3
4
client = Mailtrap ::Client . new ( api_key : 'your-api-key' )
4
- contact_lists = Mailtrap ::ContactListsAPI . new 3229 , client
5
- contacts = Mailtrap ::ContactsAPI . new 3229 , client
6
- contact_fields = Mailtrap ::ContactFieldsAPI . new 3229 , client
7
- contact_imports = Mailtrap ::ContactImportsAPI . new 3229 , client
5
+ contact_lists = Mailtrap ::ContactListsAPI . new ( account_id , client )
6
+ contacts = Mailtrap ::ContactsAPI . new ( account_id , client )
7
+ contact_fields = Mailtrap ::ContactFieldsAPI . new ( account_id , client )
8
+ contact_imports = Mailtrap ::ContactImportsAPI . new ( account_id , client )
8
9
9
10
# Set your API credentials as environment variables
10
11
# export MAILTRAP_API_KEY='your-api-key'
Original file line number Diff line number Diff line change 1
1
require 'mailtrap'
2
2
3
+ account_id = 3229
3
4
client = Mailtrap ::Client . new ( api_key : 'your-api-key' )
4
- templates = Mailtrap ::EmailTemplatesAPI . new 3229 , client
5
+ templates = Mailtrap ::EmailTemplatesAPI . new ( account_id , client )
5
6
6
7
# Set your API credentials as environment variables
7
8
# export MAILTRAP_API_KEY='your-api-key'
Original file line number Diff line number Diff line change 1
1
require 'mailtrap'
2
2
3
+ account_id = 3229
3
4
client = Mailtrap ::Client . new ( api_key : 'your-api-key' )
4
- suppressions = Mailtrap ::SuppressionsAPI . new 3229 , client
5
+ suppressions = Mailtrap ::SuppressionsAPI . new ( account_id , client )
5
6
6
7
# Set your API credentials as environment variables
7
8
# export MAILTRAP_API_KEY='your-api-key'
You can’t perform that action at this time.
0 commit comments