diff --git a/sgx-bwmsgsv2.rb b/sgx-bwmsgsv2.rb index b602001eeb5c59c8b7f468fd27a4420d22d5437c..627c9baff6b45b9e88298f22cc4c9bc6b490490d 100755 --- a/sgx-bwmsgsv2.rb +++ b/sgx-bwmsgsv2.rb @@ -92,6 +92,7 @@ module SGXbwmsgsv2 ] def self.run + # TODO: read/save ARGV[7] creds to local variables client.run end @@ -213,6 +214,7 @@ module SGXbwmsgsv2 # begin hack for running V2 messages along with V1 voice url_prefix = 'https://api.catapult.inetwork.com/' # TODO: set token and secret to vals provided at startup + # TODO: replace pth's user_id with user_id from ARGV[7] else # TODO: error end @@ -1036,11 +1038,11 @@ at_exit do puts "Soprani.ca/SMS Gateway for XMPP - Bandwidth API V2\n"\ "==>> last commit of this version is " + `git rev-parse HEAD` + "\n" - if ARGV.size != 7 + if ARGV.size != 7 and ARGV.size != 8 puts "Usage: sgx-bwmsgsv2.rb "\ " "\ " "\ - " " + " [V1_creds_file]" exit 0 end