private function executeCurl($ch)
    {
        $response = [
            'body' => curl_exec($ch),
            'status_code' => curl_getinfo($ch, CURLINFO_HTTP_CODE)
        ];

        return json_decode($response['body'], true)['data'];
    }
private function executeCurl($ch)
    {
        $response = [
            'body' => curl_exec($ch),
            'status_code' => curl_getinfo($ch, CURLINFO_HTTP_CODE)
        ];

        return json_decode($response['body'], true)['data'];
    }
private function executeCurl ( $ ch ) { $ response = [ 'body' => curl_exec ( $ ch ) , 'status_code' => curl_getinfo ( $ ch , CURLINFO_HTTP_CODE ) ] ; return json_decode ( $ response [ 'body' ] , true ) [ 'data' ] ; }
Executes cURL and captures the response

@param $ch

@return array
Executes cURL and captures the response