0
        $userid= '1' ;
        $conid='21' ;
        $lid= '139';
        $key = 'outcome';
        $values = 'yes,no';
        $bools= 'false';
        $datefrom= '2018-01-01';
        $dateto = '2018-01-01' ;
$ch = curl_init('https://api.call.com/get_field_response_count?userid='.$userid.'&conid='.$conid.'&lid='.$lid.'&key='.$key.'&values='.$values.'&bools='.$bools.'&datefrom='.$datefrom.'&dateto='.$dateto.'');


        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

        $result = curl_exec($ch);

when i try this from postman i get results but when i try them form a php script using variables i dont get a result i think i figured that it has something to do with the way m sending my variables

3
  • @riggsfolly how is it the same :? Commented Jun 21, 2018 at 0:07
  • You are curling to a https site, so you need to look at the parameters you are required to pass to curl to make it work with https Commented Jun 21, 2018 at 0:08
  • @RiggsFolly thank you :) Commented Jun 21, 2018 at 0:10

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.