The Marketo REST Asset API was released in the March 2015 release. This API allows to access Marketo’s file, folder, token, email, and email template objects. Note that two role permissions were added to provide access to the Asset API endpoints: Read-Only Assets, Read-Write Assets. If your API user role predates the release of the … Continue reading “March 2015 Release Updates”
Author: Murta Manzur
Add a Reset Button to a Marketo Form
1 2 3 4 5 |
<script src="//app-sj01.marketo.com/js/forms2/js/forms2.min.js"></script> <form id="mktoForm_116"></form> <script>MktoForms2.loadForm("//app-sj01.marketo.com", "410-XOR-673", 116, function(form) { form.getFormElem()[0].querySelector('button[type="submit"]').insertAdjacentHTML('afterend','<button type="reset" class="mktoButton">Reset</button>') }); </script> |
Highlighting Open Source Projects Built on the Marketo Platform: Part Three
This is the third post in an ongoing series highlighting open-source projects built around the Marketo platform by the developer community. The first post in this series is available here, and the second post is available here. We maintain a list on Marketo’s GitHub account where we track client libraries and projects created by the … Continue reading “Highlighting Open Source Projects Built on the Marketo Platform: Part Three”
Store a Second Email Address for a Lead
Let’s say you want to change a lead’s score in Marketo using the APIs. This is possible to do with the REST API using the Create/Update Lead endpoint. If you want to store more than one email on a lead record, you would need to create a custom field, and store the second email there. … Continue reading “Store a Second Email Address for a Lead”
Change a Lead’s Score via the REST API
Let’s say you want to change a lead’s score in Marketo using the APIs. This is possible to do with the REST API using the Create/Update Lead endpoint. Below is a code sample in Ruby that shows how to make this call.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
require 'rest_client' require 'json' #Build request URL #Replace AAA-BBB-CCC with your Marketo instance marketo_instance = "https://AAA-BBB-CCC.mktorest.com" endpoint = "/rest/v1/leads.json" #Replace with your access token auth_token = "?access_token=" + "ac756f7a-d54d-41ac-8c3c-f2d2a39ee325:ab" request_url = marketo_instance + endpoint + auth_token #Build request body data = { "action" => "updateOnly", "input" => [ { "email" => "example@email.com", "leadScore" => "30" } ] } #Make request response = RestClient.post request_url, data.to_json, :content_type => :json, :accept => :json #Returns Marketo API response puts response |
In the JSON body of the request, we specify updateOnly as the … Continue reading “Change a Lead’s Score via the REST API”
Single Page Application Web Tracking with Munchkin
A Single Page Application is a website that loads all of the resources required to navigate the site on the first page load. When a user clicks a link the content is loaded from the first page load data. To the user, the website behaves as expected because the URL in the address bar is … Continue reading “Single Page Application Web Tracking with Munchkin”
Embed a YouTube Video with Lead Tracking on a Marketo Landing Page
In a previous blog post, I described how to segment leads in Marketo based on if they have a started or finished a specific YouTube video. In this blog post, we’ll walk through how to take the implementation from that post and use it on a Marketo landing page. Step One: Navigate to the Program … Continue reading “Embed a YouTube Video with Lead Tracking on a Marketo Landing Page”
Send View Data from a YouTube Video to Marketo
Let’s say you want to segment leads in Marketo based on if they have a started or finished a specific video. This is possible to do using Munchkin, YouTube’s Iframe API, and Smart Lists in Marketo. The example code in this post will let you to send video started and video finished events into Marketo … Continue reading “Send View Data from a YouTube Video to Marketo”
Highlighting Open Source Projects Built on the Marketo Platform: Part Two
This is the second post in an ongoing series highlighting open-source projects built around the Marketo platform by the developer community. The first post in this series is available here. We maintain a list on Marketo’s GitHub account where we track client libraries and projects created by the Marketo developer community. Below are three projects … Continue reading “Highlighting Open Source Projects Built on the Marketo Platform: Part Two”
Get Activity Data via the REST API
Let’s say you want to get all leads that were added to a list this month. Using the Get Lead Activities REST API, you can get this data. Before calling the Get Lead Activities API, it is necessary to get an access token from the Authentication API and also get a starting date token from … Continue reading “Get Activity Data via the REST API”