Discussions
Error al importar propiedades
over 2 years ago by Eugenia Chielli(edited)
Hola!
Estoy probando importar propiedades y me arroja el error "Unexpected error has ocurred No JSON object could be decoded."
Les comparto el CURL armado en PHP:
'http://www.tokkobroker.com/property_importer/', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_POSTFIELDS =>'{"url": "https://media.emeterra.com.ar/dev/feeds/tokkobroker/exports/1-1.json","callback_url": "https://api-dev.emeterra.com.ar/tokkobroker/1/properties/import/callback"}', CURLOPT_HTTPHEADER => array( 'Authorization: asdasdasd', 'Content-Type: application/json' ), )); La apikey es la que saque de la cuenta. ¿Me pueden ayudar? Gracias! $response = curl_exec($curl); curl_close($curl); echo $response;