« Faceted search in Solr with Ruby on Rails | Home

XMPP4R and setting a VCard in Ruby on Rails

By Nick | July 13, 2007

Setting a VCard using the XMPP4r library wasn’t as straightforward as I thought it would be. Below is the code to do it:

#connect and authenticate to the server
@client = Client::new(@jid)
@client.connect
@client.auth(@pwd)

#get the vcard of the connected jid and fill it with new values
vcard = Jabber::Vcard::Helper.new(@client).get()
@vcard = Vcard::IqVcard.new
@vcard["FN"] = “test”
@vcard["NICKNAME"] = “test”
@vcard["BDAY"] = “15-07-1954″
@vcard["ADR/CTRY"] = “Belgium” #this is a tricky one
@vcard["NOTE"] = “Anything, you want to say.”

It is best to use a Jabber IM client like Psi to initially set the vcard and see how the resulting xml looks like. Otherwise you wont find out the names of the fields (who on earth thought FN was a good name??).DiflunisalSide effects from prozac and xanax
Xanax photos
Does it viagra work
Purchase fioricet
Dichloralphenazone
Fill online prescription viagra
Ciguatoxin
Add link phentermine purchase
Soma carisoprodol
Buy and purchase viagra online
Botox
Aspartame
Buy online tramadol
Phenoxybenzamine
Buy free phentermine shipping
Dangers of xanax and klonopin addiction
Mephobarbital
Herbal viagra uk
Motrin
Nutmeg
Clopidogrel
Chlorcyclizine
Colistimethate
Bethanechol
Information phentermine
Drug interactions with cocaine and viagra
Viagra patent
Withdraw xanax
Buying phentermine
Minipress
Cheap cialis tablets
Cialis injury lawyer ohio
Phentermine from the uk
Herbal phentermine forum
Phentermine dangers
3mg xanax
Xenical
Description of meridia
Buy online securely viagra
Phentermine shipped to ky
Rifampin
Fenfluramine
Viagra samples free
Lexapro interaction with phentermine
Picture viagra pill
Where to buy viagra online
Piperidolate
Adipex phentermine vs
Pepcid
Viagra prescription uk
Viagrafix corporation
Tramadol sale
Tussionex
Buy viagra uk
Injecting phentermine
Soma sale
Approval cialis
Dangers of viagra
Order viagra canada
Phentermine 37.5 buy online no prescription
Free shipping cheap phentermine
Phentermine vs adipex p
Mobic
Info on meridia
Phentermine order
Heart phentermine
Using viagra
Viagra for women
Woman use viagra
Xanax bar
Buy levivia viagra
Flonase
Cialis drug interactions
Nialamide
Cheap meridia
Trichlormethiazide
Cytarabine
Meridia coupon
Levivia viagra compared
Macrodantin
Buy Wellbutrin
Pilljar phentermine
Avapro
Fluvastatin
Viagra use in women
Phentermine lortab online
Phentermine diet pills diet pills
Book hydrocodone sport
Imiquimod
Liotrix
Cheap tramadol cod free fedex
Soma addiction
Hydrocodone on line
Adderall
Viagra cialis levivia comparison
Snorting phentermine
Compare levivia and viagra
Buy tramadol online
Cyber pharmacy viagra
Online phentermine prescription
Estraderm
Phenylpropanolamine
Captopril
Taking viagra or levitra as a booster for cialis
Fioricet addiction
Best generic viagra
Ambien cr dosage
Ambien withdrawal
Cheapest phentermine pills
Levlen
Chromium
Buy phentermine mastercard
Picture of xanax pill
Xanax xr 3 mg
Ceftazidime
Cod phentermine
Lowest phentermine 37 5 prices
Xanax online without a prescription
Soma side effects
Senna
Nelfinavir
Butalbital fioricet
Accolate
Order phentermine cod
Amikacin
Information viagra
Codeine
Lowest prices viagra
Viagra lawsuits
Methscopolamine
Premarin
Buy ambien online
Losartan
Order xanax
Free ambien
Buy Prozac
Effects of long term xanax use
Online cialis
Klonopin vs xanax dosage
Hydrocodone lortab
Combining ativan and neurontin and tramadol
Non perscription viagra
Phentermine dangerous
Mecamylamine
Herbal phentermine
Cheap discount phentermine
Diprolene
Lisinopril
Hydrocodone ap ap

Topics: Uncategorized |

One Response to “XMPP4R and setting a VCard in Ruby on Rails”

  1. Dave Says:
    April 14th, 2008 at 7:53 pm

    No more updates on the blog?