Пример #1
0
 public static function deleteDept($accessToken, $id)
 {
     $response = \util\Http::get("/department/delete", array("access_token" => $accessToken, "id" => $id));
     return $response->errcode == 0;
 }
Пример #2
0
 public static function getUserInfo($accessToken, $code)
 {
     $response = \util\Http::get("/user/getuserinfo", array("access_token" => $accessToken, "code" => $code));
     return json_encode($response);
 }
Пример #3
0
 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;
 }
Пример #4
0
 public static function getTicket($accessToken)
 {
     $response = \util\Http::get('/get_jsapi_ticket', array('type' => 'jsapi', 'access_token' => $accessToken));
     return $response->ticket;
 }