use sgoendoer\Sonic\Sonic; use sgoendoer\Sonic\Configuration\Configuration; use sgoendoer\Sonic\Identity\EntityAuthData; use sgoendoer\Sonic\Identity\SocialRecordManager; use sgoendoer\Sonic\AccessControl\AccessControlManager; use sgoendoer\Sonic\examples\SocialRecordCachingExample; use sgoendoer\Sonic\examples\UniqueIDManagerExample; use sgoendoer\Sonic\examples\PersonAPIExample; use sgoendoer\Sonic\examples\LikeAPIExample; try { //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // setting Configuration //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // setting all configuration values to defaults Configuration::setVerbose(0); Configuration::setCurlVerbose(0); Configuration::setLogfile('sonic.log'); Configuration::setApiPath('/sonic/'); Configuration::setTimezone('Europe/Berlin'); Configuration::setPrimaryGSLSNode('130.149.22.135:4002'); Configuration::setSecondaryGSLSNode('130.149.22.133:4002'); Configuration::setRequestTimeout(10); Configuration::setGSLSTimeout(4); //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // importing SocialRecord objects to work with //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // load SocialRecords from files to instatiaze the Sonic framework $srp = SocialRecordManager::importSocialRecord(file_get_contents(__DIR__ . '/data/SRPlatform.json')); $platformSocialRecord = $srp['socialRecord']; $platformAccountKeyPair = $srp['accountKeyPair']; $platformPersonalKeyPair = $srp['personalKeyPair'];