public static function send($path, $data = [], $method = "GET") { $request_url = self::$url . $path; $http = new HttpLib(); if ($method == "POST") { $res = $http->post($request_url, $data); } else { $res = $http->get($request_url, []); } return $res['body']; }