- json_decode: documentation ( source)
- print_r: documentation ( source)
- http_build_query: documentation ( source)
<?php
$data = array();
$ch = curl_init( "https://api.myseotool.com/v2/campaigns" );
curl_setopt($ch, CURLOPT_USERPWD, '6619e67bc730e0b75c42c268bbf0e707');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $request);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query( $data ) );
$response = curl_exec($ch);
print_r( json_decode($response));