mirror of
https://github.com/logto-io/logto.git
synced 2025-01-20 21:32:31 -05:00
11 lines
429 B
TypeScript
11 lines
429 B
TypeScript
|
import { endpoint, staticConfigs } from './constant.js';
|
||
|
import type { PublicParameters, SendSms } from './types.js';
|
||
|
import { request } from './utils.js';
|
||
|
|
||
|
/**
|
||
|
* @doc https://help.aliyun.com/document_detail/101414.html
|
||
|
*/
|
||
|
export const sendSms = async (parameters: PublicParameters & SendSms, accessKeySecret: string) => {
|
||
|
return request(endpoint, { Action: 'SendSms', ...staticConfigs, ...parameters }, accessKeySecret);
|
||
|
};
|