public static function getOrder($id) { $params['do'] = 'getOrder'; $params['orderId'] = $id; $curlResult = Curl::get_data(Config::JSON_URL . self::SERVICE, http_build_query($params), ContentType::header_content_urlencoded); return $curlResult; }
public static function getDistibuterList($addressId) { $params['do'] = 'getDistributerList'; $params['addressId'] = $addressId; $curlResult = Curl::get_data(Config::JSON_URL . self::SERVICE, http_build_query($params), ContentType::header_content_urlencoded); return json_encode($curlResult); }
public static function searchAddress($cityName) { $params['do'] = 'searchAddress'; $params['city'] = $cityName; $curlResult = Curl::get_data(Config::JSON_URL . 'AddressServlet', http_build_query($params), ContentType::header_content_urlencoded); return json_encode($curlResult); }
public static function getSubCategoryById($parentId) { $params['do'] = 'getSections'; $params['parentId'] = $parentId; $curlResult = Curl::get_data(Config::JSON_URL . Category::SERVICE, http_build_query($params), ContentType::header_content_urlencoded); return $curlResult; }
public static function login($mail, $pass) { $params['do'] = 'login'; $params['mail'] = $mail; $params['pass'] = $pass; $params["type"] = "admin"; $curlResult = Curl::get_data(Config::JSON_URL . User::SERVICE, http_build_query($params), ContentType::header_content_urlencoded); return $curlResult; }
public static function getProductListBySection($sectionId, $distributerId) { $params = array('do' => 'getProductList', 'sectionId' => $sectionId, 'distributerId' => $distributerId); $curlResult = Curl::get_data(Config::JSON_URL . ProductList::SERVICE, http_build_query($params), ContentType::header_content_urlencoded); return $curlResult; }
public static function getSections() { $params['do'] = 'getSections'; $curlResult = Curl::get_data(Config::JSON_URL . self::SERVICE, http_build_query($params), ContentType::header_content_urlencoded); return json_encode($curlResult); }