Sha256: 738ddaa0b590fad016203f0ec75cc7246e3ad23e6b48abfd69020133a4609851

Contents?: true

Size: 308 Bytes

Versions: 37

Compression:

Stored size: 308 Bytes

Contents

#!/usr/bin/env ruby

$:.unshift '../../../../../lib'
require 'xmpp4r'
include Jabber

if ARGV.size != 2
  puts "Warning! This example UNREGISTERS user accounts!"
  puts "Usage: #{$0} <jid> <password>"
  exit
end

cl = Client.new(JID.new(ARGV[0]))
cl.connect
cl.auth(ARGV[1])
cl.remove_registration

cl.close

Version data entries

37 entries across 37 versions & 13 rubygems

Version Path
cerberus-0.8.0 lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/remove_registration.rb
cerberus-0.7.9 lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/remove_registration.rb
edavis10-cerberus-0.7.8 lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/remove_registration.rb
cerberus-0.7.8 lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/remove_registration.rb
cerberus-0.7.7 lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/remove_registration.rb
cerberus-0.7.6 lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/remove_registration.rb
cerberus-0.7.2 lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/remove_registration.rb
cerberus-0.7.5 lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/remove_registration.rb
cerberus-0.7 lib/vendor/xmpp4r/data/doc/xmpp4r/examples/basic/remove_registration.rb
xmpp4r-0.5 data/doc/xmpp4r/examples/basic/remove_registration.rb
mack-notifier-0.8.2 lib/gems/xmpp4r-0.4/data/doc/xmpp4r/examples/basic/remove_registration.rb
mack-notifier-0.8.3.1 lib/gems/xmpp4r-0.4/data/doc/xmpp4r/examples/basic/remove_registration.rb
mack-notifier-0.8.3 lib/gems/xmpp4r-0.4/data/doc/xmpp4r/examples/basic/remove_registration.rb
xmpp4r-0.3.2 data/doc/xmpp4r/examples/basic/remove_registration.rb
xmpp4r-0.4 data/doc/xmpp4r/examples/basic/remove_registration.rb
xmpp4r-0.3 data/doc/xmpp4r/examples/basic/remove_registration.rb
xmpp4r-0.3.1 data/doc/xmpp4r/examples/basic/remove_registration.rb