-1

POST /authentication/login

Content-Type: application/json

Accept: application/json

{

"dsCredentials": {

"tenantName": "...",
"userName": "...",
"password": "...",
"applicationInfos": {
  "applicationName": "...",
  "applicationVersion": "...",
  "serverName": "...",
  "requestID": "..."
},
"mfaCode": "..."

}

}

Stitch
  • 3
  • 1

1 Answers1

0

you can use cURL, for example

  $data = [
    'username'      => $username,
    'email'         => $email,
    'password'      => $password
];

//open connection
$ch = curl_init();

//set the url, number of POST vars, POST data
curl_setopt($ch,CURLOPT_URL, $url);
curl_setopt($ch,CURLOPT_POST, count($data));
curl_setopt($ch,CURLOPT_POSTFIELDS, http_build_query($data));

//So that curl_exec returns the contents of the cURL; rather than echoing it
curl_setopt($ch,CURLOPT_RETURNTRANSFER, true); 

//execute post
$result = curl_exec($ch);
echo $result;
Quyen Anh Nguyen
  • 1,204
  • 13
  • 21