const Core = require('@alicloud/pop-core');

var client = new Core({
  accessKeyId: 'accessKeyId',
  accessKeySecret: 'accessKeySecret',
  endpoint: 'https://dysmsapi.aliyuncs.com',
  apiVersion: '2017-05-25'
});

var params = {
  "RegionId": "cn-hangzhou"."PhoneNumbers": "Mobile phone Number"."SignName": "Project name - display as SMS [Project name]"."TemplateCode": "SMS template number to be created."."TemplateParam": "{\"code\":\"1234\"}"// You are applying for mobile registration with verification code:${code}, valid for 5 minutes! } var requestOption = { method:'POST'
};

client.request('SendSms', params, requestOption).then((result) => {
  console.log(JSON.stringify(result));
}, (ex) => {
  console.log(ex);
})
Copy the code