-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Methods for Integration Tools #7
Open
lararojasmr
wants to merge
30
commits into
Ecwid:master
Choose a base branch
from
lararojasmr:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
181e629
Primer commit, se trabajara implementando campañas qun no implementado
f0c7045
Se impelemtan los metodos de consulta para campañas.
a24d259
Se impelemtan los metodos de consulta para reportes de las campañas y…
a50ce33
Se impelemtan los metodos de consulta para reportes de las campañas y…
91ce006
I moved report folder out of campaign folder, I created a enum for ty…
9d6e97c
Added processing response isn't JSON
aqman1 c159b1c
Update publish.gradle
aqman1 f5747a8
Merge pull request #8 from aqman1/master
5dfe3dd
version updated
e7bbf49
Some bugs were solved.
7911d6e
Some bugs were solved.
c5be5b9
I added _link attribute in the parent class for all classes. And adde…
b7de3bc
I added a new enum class for the campings type
be94f38
Segment modules was Implemented.
4bfb690
Segment modules was Implemented #2
9a412f0
location of segments were changed
2fe9b4b
Campaign operations (list, create, edit, delete, actions) added
REDGML b5d637f
Campaign content operations (get, set) added
REDGML 7a18942
Create new list method added
REDGML f8fab25
MergeField operations (get all, create, update) added
REDGML 28af9a1
GetEmailActivitysMethod added
REDGML 769ab6c
GetUnsubscribedMethod added
REDGML f393c9c
DeleteListMethod added
REDGML 24cb92d
Added missing body params to Schedule CampaignActionMethod
REDGML 9bd83e2
Merge pull request #12 from red61/marketing_backend
15fa34b
version updated
2cd7161
Fix link in documentation (#14)
9f7e202
a several changes
87faafc
automation
5b22bdc
Merge branch 'master' of https://github.com/lararojasmr/maleorang
lararojasmr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ apply plugin: 'signing' | |
|
||
group = 'com.ecwid' | ||
archivesBaseName = "maleorang" | ||
version = '3.0-0.9.4' | ||
version = '3.0-0.9.6' | ||
|
||
task javadocJar(type: Jar) { | ||
classifier = 'javadoc' | ||
|
@@ -64,6 +64,11 @@ if (project.hasProperty('sonatypeUsername') && project.hasProperty('sonatypePass | |
name 'Vasily Karyaev' | ||
email '[email protected]' | ||
} | ||
developer { | ||
id 'lararojasmr' | ||
name 'Manuel Lara' | ||
email '[email protected]' | ||
} | ||
} | ||
} | ||
} | ||
|
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
31 changes: 31 additions & 0 deletions
31
src/main/java/com/ecwid/maleorang/method/v3_0/automation/GetAutomationEmailMethod.kt
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,31 @@ | ||
package com.ecwid.maleorang.method.v3_0.automation | ||
|
||
|
||
import com.ecwid.maleorang.MailchimpMethod | ||
import com.ecwid.maleorang.MailchimpObject | ||
import com.ecwid.maleorang.annotation.* | ||
import com.ecwid.maleorang.method.v3_0.automation.info.WorkflowEmailInfo | ||
|
||
|
||
/** | ||
* [Get information about automations](http://developer.mailchimp.com/documentation/mailchimp/reference/automations/emails/#read-get_automations_workflow_id_emails_workflow_email_id) | ||
*/ | ||
@Method(httpMethod = HttpMethod.GET, version = APIVersion.v3_0, path = "/automations/{workflow_id}/emails/{workflow_email_id}") | ||
class GetAutomationEmailMethod( | ||
|
||
@JvmField | ||
@PathParam | ||
val workflow_id: String, | ||
|
||
@JvmField | ||
@PathParam | ||
val workflow_email_id: String | ||
|
||
) : MailchimpMethod<GetAutomationEmailMethod.Response>() { | ||
|
||
class Response : MailchimpObject() { | ||
@JvmField | ||
@Field | ||
var email: WorkflowEmailInfo? = null | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
src/main/java/com/ecwid/maleorang/method/v3_0/automation/GetAutomationEmailsMethod.kt
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,34 @@ | ||
package com.ecwid.maleorang.method.v3_0.automation | ||
|
||
|
||
import com.ecwid.maleorang.MailchimpMethod | ||
import com.ecwid.maleorang.MailchimpObject | ||
import com.ecwid.maleorang.annotation.* | ||
import com.ecwid.maleorang.method.v3_0.automation.info.WorkflowEmailInfo | ||
|
||
/** | ||
* [Get information about automations](http://developer.mailchimp.com/documentation/mailchimp/reference/automations/emails/#read-get_automations_workflow_id) | ||
*/ | ||
@Method(httpMethod = HttpMethod.GET, version = APIVersion.v3_0, path = "/automations/{workflow_id}/emails") | ||
class GetAutomationEmailsMethod( | ||
|
||
@JvmField | ||
@PathParam | ||
val workflow_id: String | ||
|
||
) : MailchimpMethod<GetAutomationEmailsMethod.Response>() { | ||
|
||
class Response : MailchimpObject() { | ||
@JvmField | ||
@Field | ||
var emails: List<WorkflowEmailInfo>? = null | ||
|
||
@JvmField | ||
@Field | ||
var total_items: Int? = null | ||
|
||
@JvmField | ||
@Field | ||
var _links: MailchimpObject? = null | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
src/main/java/com/ecwid/maleorang/method/v3_0/automation/GetAutomationMethod.kt
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,25 @@ | ||
package com.ecwid.maleorang.method.v3_0.automation | ||
|
||
|
||
import com.ecwid.maleorang.MailchimpMethod | ||
import com.ecwid.maleorang.annotation.* | ||
import com.ecwid.maleorang.method.v3_0.automation.info.WorkflowInfo | ||
|
||
/** | ||
* [Get information about a specific automation workflow](http://developer.mailchimp.com/documentation/mailchimp/reference/automations/#read-get_automations_workflow_id) | ||
*/ | ||
@Method(httpMethod = HttpMethod.GET, version = APIVersion.v3_0, path = "/automations/{workflow_id}") | ||
class GetAutomationMethod( | ||
@JvmField | ||
@PathParam | ||
val workflow_id: String | ||
) : MailchimpMethod<WorkflowInfo>() { | ||
|
||
@JvmField | ||
@QueryStringParam | ||
var fields: String? = null | ||
|
||
@JvmField | ||
@QueryStringParam | ||
var exclude_fields: String? = null | ||
} |
56 changes: 56 additions & 0 deletions
56
src/main/java/com/ecwid/maleorang/method/v3_0/automation/GetAutomationsMethod.kt
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,56 @@ | ||
package com.ecwid.maleorang.method.v3_0.automation | ||
|
||
|
||
import com.ecwid.maleorang.MailchimpMethod | ||
import com.ecwid.maleorang.MailchimpObject | ||
import com.ecwid.maleorang.annotation.* | ||
import com.ecwid.maleorang.method.v3_0.automation.info.WorkflowInfo | ||
|
||
/** | ||
* [Get information about automations](http://developer.mailchimp.com/documentation/mailchimp/reference/automations/#read-get_automations) | ||
*/ | ||
@Method(httpMethod = HttpMethod.GET, version = APIVersion.v3_0, path = "/automations") | ||
class GetAutomationsMethod : MailchimpMethod<GetAutomationsMethod.Response>() { | ||
|
||
@JvmField | ||
@QueryStringParam | ||
var fields: String? = null | ||
|
||
@JvmField | ||
@QueryStringParam | ||
var exclude_fields: String? = null | ||
|
||
@JvmField | ||
@QueryStringParam | ||
var before_create_time: String? = null | ||
|
||
@JvmField | ||
@QueryStringParam | ||
var since_create_time: String? = null | ||
|
||
@JvmField | ||
@QueryStringParam | ||
var before_send_time: String? = null | ||
|
||
@JvmField | ||
@QueryStringParam | ||
var since_send_time: String? = null | ||
|
||
@JvmField | ||
@QueryStringParam | ||
var status: String? = null | ||
|
||
class Response : MailchimpObject() { | ||
@JvmField | ||
@Field | ||
var automations: List<WorkflowInfo>? = null | ||
|
||
@JvmField | ||
@Field | ||
var total_items: Int? = null | ||
|
||
@JvmField | ||
@Field | ||
var _links: MailchimpObject? = null | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
src/main/java/com/ecwid/maleorang/method/v3_0/automation/GetQueueAutomationMethod.kt
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,45 @@ | ||
package com.ecwid.maleorang.method.v3_0.automation | ||
|
||
|
||
import com.ecwid.maleorang.MailchimpMethod | ||
import com.ecwid.maleorang.MailchimpObject | ||
import com.ecwid.maleorang.annotation.* | ||
import com.ecwid.maleorang.method.v3_0.automation.info.WorkflowEmailQueue | ||
|
||
|
||
/** | ||
* [Get information about automations](http://developer.mailchimp.com/documentation/mailchimp/reference/automations/emails/#read-get_automations_workflow_id_emails_workflow_email_id) | ||
*/ | ||
@Method(httpMethod = HttpMethod.GET, version = APIVersion.v3_0, path = "/automations/{workflow_id}/emails/{workflow_email_id}/queue") | ||
class GetQueueAutomationMethod( | ||
|
||
@JvmField | ||
@PathParam | ||
val workflow_id: String, | ||
|
||
@JvmField | ||
@PathParam | ||
val workflow_email_id: String | ||
|
||
) : MailchimpMethod<GetQueueAutomationMethod.Response>(){ | ||
|
||
class Response : MailchimpObject() { | ||
|
||
@JvmField | ||
@Field | ||
var workflow_id: String? = null | ||
|
||
@JvmField | ||
@Field | ||
var email_id: String? = null | ||
|
||
@JvmField | ||
@Field | ||
var queue: List<WorkflowEmailQueue>? = null | ||
|
||
@JvmField | ||
@Field | ||
var total_items: Int? = null | ||
|
||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
src/main/java/com/ecwid/maleorang/method/v3_0/automation/GetQueueEmailAutomationMethod.kt
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,28 @@ | ||
package com.ecwid.maleorang.method.v3_0.automation | ||
|
||
|
||
import com.ecwid.maleorang.MailchimpMethod | ||
import com.ecwid.maleorang.MailchimpObject | ||
import com.ecwid.maleorang.annotation.* | ||
import com.ecwid.maleorang.method.v3_0.automation.info.WorkflowEmailQueue | ||
|
||
|
||
/** | ||
* [Get information about automations](http://developer.mailchimp.com/documentation/mailchimp/reference/automations/emails/#read-get_automations_workflow_id_emails_workflow_email_id) | ||
*/ | ||
@Method(httpMethod = HttpMethod.GET, version = APIVersion.v3_0, path = "/automations/{workflow_id}/emails/{workflow_email_id}/queue/{subscriber_hash}") | ||
class GetQueueEmailAutomationMethod( | ||
|
||
@JvmField | ||
@PathParam | ||
val workflow_id: String, | ||
|
||
@JvmField | ||
@PathParam | ||
val workflow_email_id: String, | ||
|
||
@JvmField | ||
@PathParam | ||
val subscriber_hash: String | ||
|
||
) : MailchimpMethod<WorkflowEmailQueue>() |
28 changes: 28 additions & 0 deletions
28
src/main/java/com/ecwid/maleorang/method/v3_0/automation/QueueEmailAutomationMethod.kt
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,28 @@ | ||
package com.ecwid.maleorang.method.v3_0.automation | ||
|
||
|
||
import com.ecwid.maleorang.MailchimpMethod | ||
import com.ecwid.maleorang.annotation.* | ||
import com.ecwid.maleorang.method.v3_0.automation.info.WorkflowEmailQueue | ||
|
||
|
||
/** | ||
* [Get information about automations](http://developer.mailchimp.com/documentation/mailchimp/reference/automations/emails/#read-get_automations_workflow_id_emails_workflow_email_id) | ||
*/ | ||
@Method(httpMethod = HttpMethod.POST, version = APIVersion.v3_0, path = "/automations/{workflow_id}/emails/{workflow_email_id}/queue") | ||
class QueueEmailAutomationMethod( | ||
|
||
@JvmField | ||
@PathParam | ||
val workflow_id: String, | ||
|
||
@JvmField | ||
@PathParam | ||
val workflow_email_id: String | ||
|
||
) : MailchimpMethod<WorkflowEmailQueue>(){ | ||
|
||
@JvmField | ||
@PathParam | ||
val email_address: String? = null | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it mean that the library won't be usable with java 6 & 7 projects? I'd prefer to keep the compatibility.