Category : restful-url

I’m using cURL in PHP to POST and I want to get the respstat value from the below response. Here’s the code <?php $curl = curl_init(); $username = "testing"; $password = ‘testing123’; $merchid = "496160873888"; curl_setopt_array($curl, array( CURLOPT_URL => ‘https://fts-uat.cardconnect.com/cardconnect/rest/auth’, CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => ”, CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, ..

Read more

I wanted to make this HMAC request working. But the api is responding with: Array ( [ResultCode] => 401 [ResultMessage] => Unauthorized request [ResultDetails] => Public Key Required ) The Documentation of api requires this: POST https://<endpoint>/<version>/course HTTPS/1.1 InstellingsNr: 999999, 999998 Timestamp: 2014-10-01T00:00:00.000Z Authentication: 411bd3009903c241cd2318c:d87fcd241d20478f2ff06dc32ccfda6d9 Accept: application/json Content-Type: application/json Content-Length: 87 { "schoolYear": "2014-15", "startDate": ..

Read more