<commit_before><?php

namespace phpListRestapi;

defined('PHPLISTINIT') || die;

include 'includes/common.php';

$plugin = $GLOBALS["plugins"][$_GET["pi"]];

$url = Common::apiUrl( $website );

?>

<h1>RESTAPI</h1>

    <h2>Version 0.2.5</h2>
    <p>The plugin provides a REST API to phpList.<br/>
    Development by Flowcom AB, <NAME> (<a href="https://twitter.com/ekandreas">@EkAndreas</a>)</p>

    <p>
        <h2>Commands</h2>
        To discover all commands to this API just make a GET request or click here:<br/>
        <a href="<?php echo $url; ?>">phpList API Command Reference list</a><br/>
        The documentation is generated in realtime.
    </p>
    <p>
        <h2>Access</h2>
        Autentication required as admin in phpList.<br/>
        All requests to the RESTAPI is made by method POST.<br/>
        RESTAPI-Url to this installation:<br/>
        <a href="<?php echo $url; ?>"><?php echo $url; ?></a>
    </p>
    <p>
        First login to phpList with method POST and body parameters "login" and "password".<br/>
    </p>
    <p>
        <h2>Client</h2>
        To try the RESTAPI, please use a client like CocaRestClient or eqvivalent!<br/>
        There is an example class in restapi-test/phplist_restapi_helper.php if you like to try it in PHP.<br/>
        For examples check commands in restapi-test/main.php
    </p>

    <p>
        <h2>More information</h2>
        Please read more at Github!
        <a href="https://github.com/EkAndreas/phplistapi">https://github.com/EkAndreas/phplistapi</a>
    </p>

    <p>
        <h2>Issues</h2>
        All issues regarding the RESTAPI is handled at Github!
        <a href="https://github.com/EkAndreas/phplistapi">https://github.com/EkAndreas/phplistapi</a>
    </p>
<commit_msg>Updated docs, structure, and attribution<commit_after><?php

namespace phpListRestapi;

defined('PHPLISTINIT') || die;

include 'includes/common.php';

$plugin = $GLOBALS["plugins"][$_GET["pi"]];

$url = Common::apiUrl( $website );

?>

<h1>REST API</h1>

    <h2>Version 0.2.5</h2>
    <p>The plugin provides a REST API to phpList.<br/> Development by <a href="http://samtuke.com"><NAME>, <a href="http://phplist.com"><NAME></a>. Original development by <a href="https://twitter.com/ekandreas"><NAME></a> of Flowcom AB.</p>

    <h2>Commands</h2>
    <p>
        To discover all commands to this API just make a GET request or click here:<br/>
        <a href="<?php echo $url; ?>">phpList API Command Reference list</a><br/>
        The documentation is generated in realtime.
    </p>

    <h2>Access</h2>
    <p>
        Autentication required as admin in phpList.<br/>
        All requests to the RESTAPI is made by method POST.<br/>
        RESTAPI-Url to this installation:<br/>
        <a href="<?php echo $url; ?>"><?php echo $url; ?></a>
    </p>
    <p>
        First login to phpList with method POST and body parameters "login" and "password".<br/>
    </p>

    <h2>Client</h2>
    <p>
        To try the RESTAPI, please use a client like CocaRestClient or eqvivalent!<br/>
        There is an example class in restapi-test/phplist_restapi_helper.php if you like to try it in PHP.<br/>
        For examples check commands in restapi-test/main.php
    </p>

    <h2>More information</h2>
    <p>
        See the readme file in this plugin's root directory for further instructions (<code>README.md</code>).
    </p>

    <h2>Issues</h2>
    <p>
        Report issues to the central phpList <a href="https://mantis.phplist.com/">bug tracker</a>.
    </p>
{'fraction_non_alphanumeric': 0.14885171533881486, 'fraction_numerical': 0.009639920612418485, 'mean_word_length': 2.814054054054054, 'pattern_counts': {'":': 0, '<': 112, '<?xml version=': 0, '>': 112, 'https://': 7, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5490933', 'n_tokens_mistral': 1219, 'n_tokens_neox': 1173, 'n_words': 356}