You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.
Robin De Schepper edited this page Dec 9, 2018
·
5 revisions
Create App User
$user = $box->User->createAppUser("Red Robin");
$user->request(["is_sync_enabled","is_platform_access_only"]); // Request some fields from the User object.$user->delete(["notify"=>false, "force"=>true]);
Get info about user on this token
$user = $box->User->request();
echo "My name is ".$user->name."\n";
if($user->request(["is_platform_access_only"])->is_platform_access_only) {
echo "Beep boop I am a robot and my generated email address is ".$user->login."\n";
} else {
echo "And I logged in with my opposable thumbs to ".$user->login."\n";
}