You are not logged in.
Hi,
Need to call Users.DoesUserExist Users.CreateUser via php rest call.
How we can achieve that.
Please help.
Regards,
Mohan
Offline
Hi Mohan,
Firstly, just to clarify for any future reader: these are methods in the internal JSON API, not in the REST API.
There is a PHP JSON API client available here: https://www.thirdlight.com/docs/display … PHP+Client
With that, you could then call:
$objAPI->Users_DoesUserExist(["username"=>$usernameToFind]);
and:
$objAPI->Users_CreateUser(["username"=>$usernameToCreate,"details"=> [
"name"=> $strName,
"description" => "Description or job title",
"email" => "user@domain.com"
], "welcomeEmail"=>true]);
There are additional options you can specify when creating a user - I would refer you to /docs/api/legacy.html on your Chorus site for further information.
Kind regards,
Dominic
Offline