Reputation: 11
I have to install grails twilio plugin on grails 2.3, plugin available here https://github.com/Novadge/grails-twilio
Can someone help me to install this plugin on my grails 2.3 project?
Upvotes: 0
Views: 116
Reputation: 2678
As given in the documentation you can install plugin by adding twillo configuration in the config.groovy
file -
twilio {
// Enter your host address
host = 'https://api.twilio.com'
apiID = 'enter your api Id'
apiPass = 'enter your api password'
smsUrl = '/2010-04-01/Accounts/' + apiID + '/Messages.json'
number = ""
}
and other relevent dependent components under the dependencies
in BuildConfig.groovy
like -
dependencies {
.
.
//twilio plugin
compile "org.grails.plugins:twilio:0.1"
compile(group:'org.apache.httpcomponents',name:'httpclient',version:'4.3.6')
compile(group:'org.apache.httpcomponents',name:'fluent-hc',version:'4.3.6')
compile(group:'org.apache.httpcomponents',name:'httpclient-cache',version:'4.3.6')
compile(group:'org.apache.httpcomponents',name:'httpmime',version:'4.3.6')
.
.
}
Upvotes: 1
Reputation: 3595
You have to add this to your BuildConfig.groovy
compile "org.grails.plugins:twilio:0.1"
Documentation here: https://grails.org/plugin/twilio
Upvotes: 3