{% extends 'base.html' %} {% load i18n %} {% block body %}
{% url 'details' as href %} {% blocktrans %}The following services are supported by this Apprise instance.{% endblocktrans %}
{% if show_all %} {% blocktrans %}To see a simplified listing that only identifies the Apprise services enabled click here.{% endblocktrans %} {% else %} {% blocktrans %}To see a listing that identifies all of Apprise services available to this version (enabled or not) click here.{% endblocktrans %} {% endif %}
{% blocktrans %}Developers who wish to receive this result set in a JSON parseable string for their application can perform the following to achive this:{% endblocktrans %}
#{% blocktrans %}Retrieve JSON Formatted Apprise Details{% endblocktrans %}
curl -H "Accept: application/json" \
"{{ request.scheme }}://{{ request.META.HTTP_HOST }}{{ BASE_URL }}/details/{% if show_all %}?all=yes{% endif %}"
import json
from urllib.request import Request
# The URL
req = Request(
"{{ request.scheme }}://{{ request.META.HTTP_HOST }}{{ BASE_URL }}/details/{% if show_all %}?all=yes{% endif %}",
json.dumps(payload).encode('utf-8'),
{"Accept": "application/json"},
method='GET',
)
<?php
// The URL
$url = '{{ request.scheme }}://{{ request.META.HTTP_HOST }}{{ BASE_URL }}/details/{% if show_all %}?all=yes{% endif %}';
//Initiate cURL.
$ch = curl_init($url);
//Set the content type to application/json
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Accept: application/json'));
//Execute the request
$result = curl_exec($ch);
{% blocktrans %}More details on the JSON format can be found here.{% endblocktrans %}