"Get", update and approve an email and it's content#36
Open
prachi-mantri wants to merge 7 commits intoraszi:masterfrom
Open
"Get", update and approve an email and it's content#36prachi-mantri wants to merge 7 commits intoraszi:masterfrom
prachi-mantri wants to merge 7 commits intoraszi:masterfrom
Conversation
This commit adds a sample code to access Marketo emails by ID and name. It also has a method to be able to access an email's content.
IMPORTANT: while sending data to update email, make sure the content type is multipart/form-data
- add code to update emai subject - add a new error class for code 702 (no data found) - add spec for campaign schedule and email
Author
|
Apologies about the RSpec suite failing in the CI build. Could you suggest anything? Sending a hash in the Marketo API URL works for me (I had run the RSpec suite before pushing the changes) |
Owner
|
Thanks for the changes @prachi-mantri. The issue is that you need to URL encode the subject parameter if you want to send over a JSON parameter like that. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Hello, I was working with a team which needed to use the Marketo API
like an email marketing tool. The idea was to have a campaign which
would send an email whenever it was run. The content of the email being
sent could be changed whenever needed. As a result, I used the marketo
API for E-mails and campaigns and added some functionality to the mrkt
gem. These are the changes done:
The trouble is that currently scheduling a campaign using this code does
not run the campaign when needed, it' always 5 minutes after the request
is sent to Marketo (even though we're sending it in the format that Marketo
needs it in.) Or perhaps I've made a mistake. Please feel free to reject the
changes and let me know what I need to add/remove/change. I will really
appreciate your feedback on the pull request. Thanks!