0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-13 21:30:30 -05:00
logto/packages/connectors/connector-aliyun-sms/src/single-send-text.ts
Gao Sun 6b322a537c
refactor: add connector packages
the initial commit to move all connector packages to the main
repo.
2023-04-01 15:53:14 +08:00

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