skip to Main Content

Xcode – translate POST request to API in PHP to Swift

Hello I'm trying to translate POST request api code written in php: <?php $methodParams = '{ "date_confirmed_from": 1407341754, "get_unconfirmed_orders": false }'; $apiParams = [ "method" => "getOrders", "parameters" => $methodParams ]; $curl = curl_init("https://api.baselinker.com/connector.php"); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_HTTPHEADER, ["X-BLToken:…

VIEW QUESTION

Xcode errors disappear

I am having issues with errors in Xcode. I have purposely set errors in my code just so the errors show up, but they only appear for 5 seconds then disappear. Which is making debugging extremely difficult. Is this a…

VIEW QUESTION
Back To Top
Search