PHP code example of robuust / craft-teamup

1. Go to this page and download the library: Download robuust/craft-teamup 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/ */

    

robuust / craft-teamup example snippets




return [
    // General
    'apiToken' => '', // YOUR API TOKEN
    // Section
    'sectionHandle' => 'YOUR_EVENT_SECTION_HANDLE',
    'entryTypeHandle' => 'YOUR_EVENT_ENTRY_TYPE_HANDLE',
    // Fields
    'eventIdField' => 'YOUR_EVENT_ID_FIELD', // PlainText
    'locationField' => 'YOUR_EVENT_LOCATION_FIELD', // PlainText
    'startDateTimeField' => 'YOUR_EVENT_START_DATETIME_FIELD', // DateTime
    'endDateTimeField' => 'YOUR_EVENT_END_DATETIME_FIELD', // DateTime
    'unitField' => 'YOUR_EVENT_UNIT_FIELD', // PlainText
    'descriptionField' => 'YOUR_EVENT_DESCRIPTION_FIELD', // Redactor
    'attachmentsField' => 'YOUR_EVENT_ATTACHMENTS_FIELD', // Assets
];