API Documentatie
Our API allows you to retrieve informations from our website via GET request and supports the following query parameters:
For profile information from an user:
For a list of latest 20 messages from an user:
An example of json decoding would be the following PHP code:
Name | Meaning | Description |
t (required) | Query type. | This parameter specify the type of the query, u is for profile informations, m is for messages informations. |
q (required) | Requested username. | The t parameter supports two values:
|
Examples of requests:
For profile information from an user:
http://summa-magnus.nl/platform/api.php?t=u&q=USERNAME
For a list of latest 20 messages from an user:
http://summa-magnus.nl/platform/api.php?t=m&q=USERNAME
An example of json decoding would be the following PHP code:
<?php
header('Content-Type: text/plain; charset=utf-8;');
$file = file_get_contents("http://summa-magnus.nl/platform/api.php?t=m&q=USERNAME");
print_r(json_decode($file));
?>