Hi Ali,
Thanks for prompt response. In step 2 i am using api/user/register endpoint and in step 3 i am using api/user/update_user_meta. Following is my curl code:
$ch1 = curl_init(); // Initiate cURL
$url1 = $site_url.”api/user/update_user_meta/”; // Where you want to post data
curl_setopt($ch1, CURLOPT_URL,$url);
curl_setopt($ch1, CURLOPT_POST, true); // Tell cURL you want to post something
curl_setopt($ch1, CURLOPT_POSTFIELDS, “cookie=”.$res_data->cookie.”&insecure=cool&meta_key=billing_phone&meta_value=”.$billing_phone);
curl_setopt($ch1, CURLOPT_RETURNTRANSFER, true); // Return the output in string format
$output1 = curl_exec ($ch1); // Execute
print_r($output1);
curl_close ($ch1);
I am getting cookie from step 2 response.