Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 1.73 KB

AutomationApi.md

File metadata and controls

59 lines (40 loc) · 1.73 KB

mailmojo_sdk.AutomationApi

All URIs are relative to https://api.mailmojo.no

Method HTTP request Description
get_campaign_by_id GET /v1/campaigns/{campaign_id}/ Retrieve an automation campaign by id.

get_campaign_by_id

CampaignDetail get_campaign_by_id(campaign_id)

Retrieve an automation campaign by id.

Example

from __future__ import print_function
import time
import mailmojo_sdk
from mailmojo_sdk.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: mailmojo_auth
configuration = mailmojo_sdk.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = mailmojo_sdk.AutomationApi(mailmojo_sdk.ApiClient(configuration))
campaign_id = 56 # int | ID of the automation campaign to retrieve.

try:
    # Retrieve an automation campaign by id.
    api_response = api_instance.get_campaign_by_id(campaign_id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AutomationApi->get_campaign_by_id: %s\n" % e)

Parameters

Name Type Description Notes
campaign_id int ID of the automation campaign to retrieve.

Return type

CampaignDetail

Authorization

mailmojo_auth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]