public static function deleteDept($accessToken, $id) { $response = \util\Http::get("/department/delete", array("access_token" => $accessToken, "id" => $id)); return $response->errcode == 0; }
public static function getUserInfo($accessToken, $code) { $response = \util\Http::get("/user/getuserinfo", array("access_token" => $accessToken, "code" => $code)); return json_encode($response); }
public static function activeSuite($suiteAccessToken, $authCorpId, $permanentCode) { $response = \util\Http::post("/service/activate_suite", array("suite_access_token" => $suiteAccessToken), json_encode(array("suite_key" => SUITE_KEY, "auth_corpid" => $authCorpId, "permanent_code" => $permanentCode))); return $response; }
public static function getTicket($accessToken) { $response = \util\Http::get('/get_jsapi_ticket', array('type' => 'jsapi', 'access_token' => $accessToken)); return $response->ticket; }