Bored? Looking to kill some time? Want to chat with other SMF users? Join us in IRC chat or Discord
Started by Andre N, November 10, 2011, 09:29:31 PM
Quote from: Kindred on February 14, 2013, 07:24:49 AMummm... If I read it correctly, you are doing the exact opposite. You are attempting to get the SMF user data, not set it...
Quote from: Andre N on December 20, 2011, 10:58:41 AMIf you're on the same domain, use the regular API, which will let you login and logout easily. http://www.simplemachines.org/community/index.php?topic=453008.0Otherwise I'd recommend examining jquery's smf login method and duplicating that.
<?require_once('lib/SmfRestClient.php');$secretKey = 'Secret Key here';$api = new SmfRestClient($secretKey, 'raw');$api->login_user('webgab');$result = $api->get_userInfo();var_dump($result);?>
Quote from: Arantor on February 15, 2013, 07:41:11 AMWhy not just have *one* login system and be done with it? Much lighter on the system, uses less bandwidth too.