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
brontes3d-xmpp4r-0.4 data/doc/xmpp4r/examples/basic/remove_registration.rb
bryanl-xmpp4r-0.3.2 data/doc/xmpp4r/examples/basic/remove_registration.rb
edavey-xmpp4r-0.4.1 data/doc/xmpp4r/examples/basic/remove_registration.rb
edavey-xmpp4r-0.4.2 data/doc/xmpp4r/examples/basic/remove_registration.rb
edavey-xmpp4r-0.4 data/doc/xmpp4r/examples/basic/remove_registration.rb
heipei-xmpp4r-0.3.2 data/doc/xmpp4r/examples/basic/remove_registration.rb
ln-xmpp4r-0.5 data/doc/xmpp4r/examples/basic/remove_registration.rb
mojodna-xmpp4r-0.4.0.2 data/doc/xmpp4r/examples/basic/remove_registration.rb
mojodna-xmpp4r-0.4.0.3 data/doc/xmpp4r/examples/basic/remove_registration.rb
seanohalpin-xmpp4r-0.4.1 data/doc/xmpp4r/examples/basic/remove_registration.rb
xmpp4r-0.5.6 data/doc/xmpp4r/examples/basic/remove_registration.rb
xmpp4r-0.5.5 data/doc/xmpp4r/examples/basic/remove_registration.rb
gmcmillan-xmpp4r-0.6.2 data/doc/xmpp4r/examples/basic/remove_registration.rb
gmcmillan-xmpp4r-0.6.1 data/doc/xmpp4r/examples/basic/remove_registration.rb
gmcmillan-xmpp4r-0.6 data/doc/xmpp4r/examples/basic/remove_registration.rb
gmcmillan-xmpp4r-0.5 data/doc/xmpp4r/examples/basic/remove_registration.rb
mad-p-xmpp4r-0.6.3 data/doc/xmpp4r/examples/basic/remove_registration.rb
mad-p-xmpp4r-0.6.2 data/doc/xmpp4r/examples/basic/remove_registration.rb
mad-p-xmpp4r-0.6.1 data/doc/xmpp4r/examples/basic/remove_registration.rb
mad-p-xmpp4r-0.6.0 data/doc/xmpp4r/examples/basic/remove_registration.rb