Hi,
I have used Rest API OAuth 1a to create a new leads.
http://develop.fashionlearn.me/allprojectthorughajax
after authenticating the app,it redirecting to my following callback url ,
http://develop.fashionlearn.me/createleads?oauth_token=bloq464byhsk4888s84c04o4cos804kkskc8c8o0ko0kggc0c&oauth_verifier=1fex3sv652tc84kg804cok8g4s044scw80so0owwow0ggwo00
i have written the code here to create a new leads,but it showing me 404 from mautic on my page.
$id=$_GET["oauth_verifier"];
$curl = curl_init();
$data = array(
'firstname' => 'Joce',
'lastname' => 'Nuunes',
'email' => 'jocenunes@fashionlearn.com.br',
'ipAddress' => $_SERVER,
'owner'=>$id
);
curl_setopt_array($curl, array(
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_URL => 'http://162.243.61.31/leads/2899',
CURLOPT_USERAGENT => 'Codular Sample cURL Request',
CURLOPT_POST => 1,
CURLOPT_POSTFIELDS => $data
));
$resp = curl_exec($curl);
curl_close($curl);
Hi,
I have used Rest API OAuth 1a to create a new leads.
http://develop.fashionlearn.me/allprojectthorughajax
after authenticating the app,it redirecting to my following callback url ,
i have written the code here to create a new leads,but it showing me 404 from mautic on my page.
$id=$_GET[“oauth_verifier”];
$curl = curl_init();
$data = array(
‘firstname’ => ‘Joce’,
‘lastname’ => ‘Nuunes’,
‘email’ => ‘jocenunes@fashionlearn.com.br’,
‘ipAddress’ => $_SERVER[‘REMOTE_ADDR’],
‘owner’=>$id
);
curl_setopt_array($curl, array(
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_URL => ‘http://162.243.61.31/leads/2899’,
CURLOPT_USERAGENT => ‘Codular Sample cURL Request’,
CURLOPT_POST => 1,
CURLOPT_POSTFIELDS => $data
));
$resp = curl_exec($curl);
curl_close($curl);
Can anyone please tell me,
why i am getting response
after while creating a new leads using outh 1a.
{“error”:{“message”:“parameter_absent”,“code”:400}}
Duplicate of https://www.mautic.org/community/index.php/2729-url-not-found-after-authenticating/p1#p8135 . Please, do not spam the same questions all over this forum otherwise you’ll piss the people answering it.
Yes, I apologize.