session-timeout-ui-ct

version 1.1, approval status: PENDING, submitted by rafaelrds 1 year ago

This is a fork of Grails Session Timeout UI Plugin, by Lim Chee Kin. The only additional functionality is cross-tab communication, which allows the plugin to be used in multiple tabs without trouble.

swesb-client

version 0.1, approval status: PENDING, submitted by guohaohua 7 months ago

http://grails.org/plugin/swesb-client

grails-nexmo

version 0.1, approval status: PENDING, submitted by saopayne 1 month ago

# Grails-Nexmo Plugin A Grails plugin to allow applications send sms, lookup a number and make calls. with text-to-speech using [Nexmo's API](https://www.nexmo.com/). ## Methods ##### [__sendSms(String apiKey, String apiSecret, String callback, String to, String text, String from)__](https://github.com/saopayne/grails-nexmo/blob/master/grails-app/services/NexmoService#L129) This method allows you to send an SMS message to a mobile number. * Parameters * __to__ - The mobile number in international format * __text__ - Body of the text message (with a maximum length of 3200 characters) * __from__ (optional) - The number to send from * Returns * __status__ - The status code of the message * __id__ - The ID of the message #### [__call(String apiKey, String apiSecret, String to, String text, String from)__](https://github.com/saopayne/grails-nexmo/blob/master/grails-app/services/NexmoService#L153) This method uses text-to-speech to call your recipient and deliver a message. * Parameters * __to__ - The phone number to send the call to, in International Format * __text__ - The message to deliver during the call * __from__ (optional) - The number to send the call from. Must be a voice enabled inbound number associated with your account * Returns * __status__ - The status code of the message * __id__ - The ID of the message ## Usage You can proceed to use the plugin in a Grails controller or service by injecting the NexmoService bean, and calling the `sendSms` method. ### Example ```groovy class SampleController { // Inject the service def nexmoService def index() { def lookUpResult def smsResult def callResult try { // Lookup a particular number lookUpResult = nexmoService.lookup("apiKey", "apiSecret", "070707") // Send the message "hello Nexmo" to 0704303333 smsResult = nexmoService.sendSms("apiKey","apiSecret", "",0704303333", "Hello Nexmo") // Call the number and tell them a message callResult = nexmoService.call("020233323", "Have a great day! Goodbye.") catch (NexmoException e) { // Handle error if failure } } } ``` Here is an example response: ```groovy // Lookup [carrier:[name:carrierName, type:carrierType],country_code:countryCode] // SMS [ status: "0", id: "00000125" ] // Call [ status: "0", id: "14b75f2246e7c1a17d345449a20d93e5" ] ``` #### To contribute - Fork this repository. - Create a new branch and make additions as you deem fit. - Send in a PR with what the PR does.