WP HTTP API call response
This my solution: $url=”##MYURL##?api_token=##APIKEY##”; $args = array( ‘headers’ => array( ”,’cache-control’ => ‘no-cache’, ‘content-type’ => ‘application/json’ ), ‘body’ => ‘{“pass”:{“serial_number”:”123456″,”Name”:”Michele”,”Date”:”2017/11/11″,”Type”:”Abb.Annuale”,”Issued”:”Genn.2016″,”Al”:”Dic.2018″,”Number”:”0123456789412″}}’, ); $response = wp_remote_post( $url, $args ); $body = wp_remote_retrieve_body( $response ); var_dump($body);