{% highlight 'python' %}import coreapi

# Initialize a client & load the schema document
client = coreapi.Client()
document = client.get("{{ schema_url }}"{% if schema_format %}, format="{{ schema_format }}"{% endif %})

# Interact with the API endpoint
action = ["{{ section_key }}", "{{ link_key }}"]
{% if link.fields %}params = {
{% for field in link.fields %}    "{{ field.name }}": ...{% if not loop.last %},{% endif %}
{% endfor %}}
{% endif %}result = client.action(document, action{% if link.fields %}, params=params{% endif %}){% endhighlight %}