16 lines
360 B
TypeScript
16 lines
360 B
TypeScript
import LarkBaseService from "./base"
|
|
|
|
class LarkAuthService extends LarkBaseService {
|
|
getAk(appId: string, appSecret: string) {
|
|
return this.post<{ tenant_access_token: string; code: number }>(
|
|
"/auth/v3/tenant_access_token/internal",
|
|
{
|
|
app_id: appId,
|
|
app_secret: appSecret,
|
|
}
|
|
)
|
|
}
|
|
}
|
|
|
|
export default LarkAuthService
|