HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/debout/debout.nl/vendor/mollie/mollie-api-php/examples/profiles/list-profiles.php
<?php
/*
 * Using OAuth access token to list profiles of an account.
 */
try
{
    /*
     * Initialize the Mollie API library with your OAuth access token.
     */
    require "../initialize_with_oauth.php";

    /*
     * Get the all the profiles for this account.
     */
    $profiles = $mollie->profiles->page();
    foreach ($profiles as $profile)
    {
        echo '<div style="line-height:40px; vertical-align:top">';
        echo htmlspecialchars($profile->name) .
            ' - ' . htmlspecialchars($profile->website) .
            ' (' .  htmlspecialchars($profile->id) . ')';
        echo '</div>';
    }
}
catch (\Mollie\Api\Exceptions\ApiException $e)
{
    echo "API call failed: " . htmlspecialchars($e->getMessage());
}