PHP code example of plurall / sdk
1. Go to this page and download the library: Download plurall/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/ */
plurall / sdk example snippets
Plurall\Integration\ThirdParty;
define("PLURALL_ENV", "staging");
define("PLURALL_TIMEOUT", 30000);
define("DEBUG", true);
$token = $_GET["token"];
$secret = "<YOUR_AMAZING_SECRET>";
try {
$hash = ThirdParty::encryptToken($token, $secret);
$userData = ThirdParty::getUser("YOUR_APP_NAME_ON_PLURALL", $hash);
var_dump($userData);
} catch (Exception $e) {
var_dump($e);
}