client->clients()->stats()->get(null, $query_params); echo $response->statusCode(); echo $response->body(); echo $response->headers(); //////////////////////////////////////////////////// // Retrieve stats by a specific client type. # // GET /clients/{client_type}/stats # $query_params = json_decode('{"aggregated_by": "day", "start_date": "2016-01-01", "end_date": "2016-04-01"}'); $client_type = "test_url_param"; $response = $sg->client->clients()->_($client_type)->stats()->get(null, $query_params); echo $response->statusCode(); echo $response->body(); echo $response->headers();