https://github.com/nyoungstudios/marketo-python-api
A client for the Marketo REST API endpoints in Python with Requests.
https://github.com/nyoungstudios/marketo-python-api
api-client marketing-automation marketing-tools marketo marketo-rest-api python-api-wrapper
Last synced: 3 months ago
JSON representation
A client for the Marketo REST API endpoints in Python with Requests.
- Host: GitHub
- URL: https://github.com/nyoungstudios/marketo-python-api
- Owner: nyoungstudios
- Created: 2020-07-23T06:02:12.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-23T06:32:26.000Z (almost 5 years ago)
- Last Synced: 2025-01-21T04:41:37.417Z (5 months ago)
- Topics: api-client, marketing-automation, marketing-tools, marketo, marketo-rest-api, python-api-wrapper
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Marketo Python REST API
I worked a lot with the Marketo REST APIs in Python over the past 2 years. So, here is my code that I wrote to make those API requests easier.## Usage
In order to use it, you need to get your Client Id, Client Secret, and the base part of the url endpoint (the format is 3 numbers, a dash, 3 letters, a dash, 3 numbers). And then store these in the environment variables `marketoClientID`, `marketoClientSecret`, and `baseCode` respectively.\
Alternatively, you can use the [python-dotenv library](https://pypi.org/project/python-dotenv/) to import the environment variables from a `.env` file.If you need any help finding these, see the documentation here: https://developers.marketo.com/rest-api/authentication/
## Features
* CRUD on leads
* Describe lead
* CRUD on custom objects
* List custom objects
* Bulk Extract## Notes
Bulk Import is not complete yet. Instead, I ended up passing 300 records (which is the max the API supports) at a time through the update on leads endpoint.## Dependencies
I am using the [Requests library](https://requests.readthedocs.io/en/master/) for making the HTTP requests.