PHP code example of draugiem / draugiem-php-sdk
1. Go to this page and download the library: Download draugiem/draugiem-php-sdk 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/ */
draugiem / draugiem-php-sdk example snippets
$draugiem = new DraugiemApi( 'YOUR_APP_ID', 'YOUR_APP_KEY' );
session_start();
$draugiem->cookieFix(); // Iframe cookie workaround for IE and Safari
$session = $draugiem->getSession();
if ($session) {
$user = $draugiem->getUserData(); //Get user info
}
"draugiem/draugiem-php-sdk": "1.3.*"
$draugiem = new DraugiemApi( 'YOUR_APP_ID', 'YOUR_APP_KEY' );