private static function createRequest($type, $url, $token, $data = null) { $requestAttributes = APIRequestHelper::getRequestAttributes($url, $token, $data); $client = new Client(); $res = $client->request($type, $requestAttributes['url'], $requestAttributes['properties']); return $res; }