Skip to content

Latest commit

 

History

History
55 lines (37 loc) · 1.42 KB

TemplateApi.md

File metadata and controls

55 lines (37 loc) · 1.42 KB

mailmojo_sdk.TemplateApi

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

Method HTTP request Description
get_templates GET /v1/templates/ Retrieve all templates.

get_templates

list[Template] get_templates()

Retrieve all templates.

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.TemplateApi(mailmojo_sdk.ApiClient(configuration))

try:
    # Retrieve all templates.
    api_response = api_instance.get_templates()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TemplateApi->get_templates: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

list[Template]

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]