sfreiberg / gotwilio

Twilio library for Go (golang).
BSD 2-Clause "Simplified" License
342 stars 136 forks source link

Couldn't send sms #17

Closed Keatooon closed 7 years ago

Keatooon commented 7 years ago

package main

import ( "github.com/sfreiberg/gotwilio" )

func main() { accountSid := "xxx" authToken := "xxx" twilio := gotwilio.NewTwilioClient(accountSid, authToken)

from := "+xxxxxxxxxx"
to := "+xxxxxxxxx"
message := "Welcome to gotwilio!"
twilio.SendSMS(from, to, message, "", "")

}

Keatooon commented 7 years ago

Have upgraded my account and purchase a phone number... anything else to configure?

kevinburke commented 7 years ago

What error message are you getting?

On Sun, Jul 16, 2017 at 04:30 Keatooon notifications@github.com wrote:

Have upgraded my account and purchase a phone number... anything else to configure?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sfreiberg/gotwilio/issues/17#issuecomment-315600074, or mute the thread https://github.com/notifications/unsubscribe-auth/AAOSI4opcJkpk1KLI8yEMsgDiqimAvhsks5sOeYvgaJpZM4OZQdP .

--

-- Kevin Burke 925.271.7005 | kev.inburke.com

Keatooon commented 7 years ago

{400 Permission to send an SMS has not been enabled for the region indicated by the 'To' number: +60xxxxxxxxxx. 21408 https://www.twilio.com/docs/errors/21408}

Keatooon commented 7 years ago

Sorry it's my mistake, enabled the region makes it work