diff --git a/README.md b/README.md index a43fa198..2cb0f242 100644 --- a/README.md +++ b/README.md @@ -85,6 +85,24 @@ message_created = client.messages.create( ) ``` +#### Send a message using powerpack instead of a source number + +```ruby +require 'rubygems' +require 'plivo' + +include Plivo + +client = RestClient.new +message_created = client.messages.create( + nil, + %w[your_destination_number_1 your_destination_number_2], + 'Hello, world!', + { url: 'http://example.com/api/callback/' }, + 'your-powerpack-uuid' +) +``` + ### Make a call ```ruby diff --git a/lib/plivo/resources/messages.rb b/lib/plivo/resources/messages.rb index a0f4b75c..dc6f3a24 100644 --- a/lib/plivo/resources/messages.rb +++ b/lib/plivo/resources/messages.rb @@ -61,6 +61,7 @@ def get(message_uuid) # @option options [String] :method The method used to call the url. Defaults to POST. # @option options [String] :log If set to false, the content of this message will not be logged on the Plivo infrastructure and the dst value will be masked (e.g., 141XXXXX528). Default is set to true. # @option options [String] :trackable set to false + # @param [String] powerpack uuid def create(src, dst, text, options = nil, powerpack_uuid = nil) valid_param?(:src, src, [Integer, String, Symbol], false) valid_param?(:text, text, [String, Symbol], true)