PHP code example of marbles / craft-teamleader

1. Go to this page and download the library: Download marbles/craft-teamleader library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

marbles / craft-teamleader example snippets


/**
 * Teamleader config.php
 *
 * This file exists only as a template for the Teamleader settings.
 * It does nothing on its own.
 *
 * Don't edit this file, instead copy it to 'craft/config' as 'teamleader.php'
 * and make your changes there to override default settings.
 *
 * Once copied to 'craft/config', this file will be multi-environment aware as
 * well, so you can have different settings groups for each environment, just as
 * you do for 'general.php'
 */

return [

    // Teamleader integration clientId
    "clientId" => '',

    // Teamleader integration clientSecret
    "clientSecret" => '',

    // Base Url of the app, this is needed to make your redirect uri
    "baseUrl" => '',

    // Id of the department where the invoices need to be saved
    "departmentId" => '',

    // Id of the tax rate you need for your invoices
    "taxRateId" => '',
];