Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for new Contact / Contact Lists endpoints
Conflicts: .gitignore lib/mailjet/connection.rb lib/mailjet/resource.rb
- Loading branch information
Showing
11 changed files
with
127 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,4 +27,5 @@ pkg | |
/config.yml | ||
|
||
.env | ||
.ruby-version | ||
.ruby-version | ||
gd_bundle-g2.crt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
require 'mailjet/resource' | ||
|
||
module Mailjet | ||
class Contact_getcontactslists | ||
include Mailjet::Resource | ||
self.action = "getcontactslists" | ||
self.resource_path = "v3/REST/contact/id/#{self.action}" | ||
self.public_operations = [:get] | ||
self.filters = [] | ||
self.properties = [] | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
require 'mailjet/resource' | ||
|
||
module Mailjet | ||
class Contact_managecontactslists | ||
include Mailjet::Resource | ||
self.action = "managecontactslists" | ||
self.resource_path = "v3/REST/contact/id/#{self.action}" | ||
self.public_operations = [:post] | ||
self.filters = [] | ||
self.properties = [:contact_lists, 'ListID', :list_id, :action] #need 'ListID' and :action in a subpacket | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
require 'mailjet/resource' | ||
|
||
module Mailjet | ||
class Contact_managemanycontacts | ||
include Mailjet::Resource | ||
self.action = "managemanycontacts" | ||
#might be different | ||
self.resource_path = "v3/REST/contact/#{self.action}" | ||
self.public_operations = [:post, :get] #GET is for job_id ammended at the end | ||
self.filters = [] | ||
self.properties = [:contact_lists, :contacts, :list_id, 'ListID', :action, :email, :name, :properties] #need 'ListID' and :action in a subpacket | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
require 'mailjet/resource' | ||
|
||
module Mailjet | ||
class Contactslist_managecontact | ||
include Mailjet::Resource | ||
self.action = "managecontact" | ||
self.resource_path = "v3/REST/contactslist/id/#{self.action}" | ||
self.public_operations = [:post] | ||
self.filters = [] | ||
self.properties = [:email, :name, :action, :properties] | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
require 'mailjet/resource' | ||
|
||
module Mailjet | ||
class Contactslist_managemanycontacts | ||
include Mailjet::Resource | ||
self.action = "managemanycontacts" | ||
self.resource_path = "v3/REST/contactslist/id/#{self.action}" | ||
self.public_operations = [:post, :get] #GET is for when job_id is there | ||
self.filters = [] | ||
self.properties = [:action, :contacts, :email, :name, :properties] | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module Mailjet | ||
VERSION = "1.0.3" | ||
VERSION = "1.0.5" | ||
end |