Answer the question
In order to leave comments, you need to log in
How to create a user on the portal, via the API?
The API describes how to create a user with a request.
My portal has an address - localhost
How do I correctly write a Post-request to programmatically create a user??
Answer the question
In order to leave comments, you need to log in
In the most elementary case, it will be like this, but this is only authorization
<?php
if( $curl = curl_init() ) {
curl_setopt($curl, CURLOPT_URL, 'http://192.168.1.221/API/2.0/AUTHENTICATION');
curl_setopt($curl, CURLOPT_RETURNTRANSFER,true);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, "userName=********@mail.ru&password=********");
$out = curl_exec($curl);
echo $out;
curl_close($curl);
}
?>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question