0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-20 21:32:31 -05:00
logto/packages/connectors/connector-aliyun-sms/src/single-send-text.ts

11 lines
429 B
TypeScript
Raw Normal View History

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);
};