Skip to content

get campaign id by program name. #34

@alusvedejs

Description

@alusvedejs

Hi!
Thanks for sharing your work.
Technically this is not an issue. More like a suggestion for improvement.

I got a task to pythonize my bash script which is importing some data into Marketo using curl posts.
The script is cloning a program with a campaign and activating new campaign.
I am finding campaign id to activate by program name (since i know the name of a program i just cloned).
Here is my curl (in case you will want to implement something similar in your python client):
NewCampaignId=$(curl --silent -X GET "${baseUrl}rest/v1/campaigns.json?access_token=${AccessToken}&programName=${NewProgramName}" | jq '.result | .[].id')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions