url.URL 不是构造函数类型错误:url.URL 不是构造函数

时间:2021-05-19 02:42:57

标签: twilio

sendMessage(business){
    const accountSid = 'yyyyyyyyyyyyyyyyyyyyyyy';
    const authToken = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
    const client = new Twilio(accountSid, authToken);
    client.messages
      .create({
         body: 'Hello sir/Madam , Please be notified that your business has been successfuly Registerred on Imuka Online platform,login with your email and phone number as password,http://app.imuka.co/#/login ',
         from: '+15017122661',
         statusCallback: 'http://postb.in/1234abcd',
         to:business.phone
       })
      .then(message => console.log(message.sid));
  
  
   }

url.URL 不是构造函数类型错误:url.URL 不是构造函数是我得到的错误

0 个答案:

没有答案