如何在Grails中实现Nexmo插件?

时间:2019-07-19 07:07:51

标签: grails grails-plugin nexmo

BuildConfig.groovy中的已编译插件

compile ':nexmo:1.0'

完成了Config.groovy

nexmo {
    endpoint = "https://rest.nexmo.com/"
    format = "json"

    api {
      key    = "f7d014g9" // Your Nexmo API Key
      secret = "Ofgn01tyOki5Dh1U" // Your Nexmo API Secret
    }

    test {
      // This must be a verified number in your Nexmo account
      phone_number = "9000000000"
    }

    sms {
      default_from = "9000000000"
    }
  }

我试图在成功注册后向用户发送成功消息

谢谢。

0 个答案:

没有答案