PHP code example of drieam / eduframe-php-client
1. Go to this page and download the library: Download drieam/eduframe-php-client 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/ */
drieam / eduframe-php-client example snippets
ection = new \Eduframe\Connection();
ection = new \Eduframe\Connection();
// Set this in case you need an access token for your requests.
$connection->setAccessToken('ACCESSTOKEN');
// Set up a new Eduframe instance and inject the connection
$client = new Eduframe\Client( $connection );
// Example: Get courses
$courses = $client->courses()->all();
// Example: Get courses with le: Create a lead
$lead = $client->leads();
$lead->company_name = 'Drieam';
$lead->first_name = 'Luuk';
$lead->middle_name = 'van';
$lead->last_name = 'Hulten';
$lead->address = $client->addresses([
'address' => 'Don Boscostraat 4',
'postal_code' => '5611 KW',
'city' => 'Eindhoven',
'country' => 'NL',
]);
$lead->save();
composer