samkat4u
Forum Replies Created
-
Forum: Plugins
In reply to: [JSON API User] adding new meta key values in update_user_metaohhh… Yeah… I found the error.
curl_setopt($ch1, CURLOPT_URL,$url); in this line, i should have to use $url1.
Thanks Ali, appreciating your efforts. 🙂
Forum: Plugins
In reply to: [JSON API User] adding new meta key values in update_user_metaHi 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 somethingcurl_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.
Forum: Plugins
In reply to: [JSON API User] usr registrationYes. Done it… working fine now. 🙂
Thanks for the help Ali
Forum: Plugins
In reply to: [JSON API User] usr registrationHi Ali,
Thanks for the reply, It is activated, still having the same issue.Thanks,
samkatForum: Plugins
In reply to: [JSON API User] usr registrationHi,
When i am trying http://localhost/wp-sam/api/get_nonce/?controller=user&method=register, the page is directly navigating to xampp’s home page.Thanks,
samkat