how to add gtalk Contacts (General questions)
by zyq11111111, Monday, December 27, 2010, 22:28 (5080 days ago)
how to add gtalk Contacts
I try this code
wodXMPP1.GetContacts.Add (“ererer@gmail.com”)
but not work
pls give me help
tks
Re: how to add gtalk Contacts
by wodDamir, Monday, December 27, 2010, 23:02 (5080 days ago) @ zyq11111111
Hi,
What environment are you using?
Basically this should work:
[code]Dim cnt as XMPPContact
Set cnt = wodXMPP1.Contacts.Add your_gmail_contact
cnt.Subscribe[/code]
This is a syntax for VB. Please try applying the same in your environment. Also, I would suggest that you check up on the samples provided with the component.
Regards,
Damba
Re: how to add gtalk Contacts
by zyq11111111, Monday, December 27, 2010, 23:16 (5080 days ago) @ wodDamir
tks
it is work fine
but another questions
i add this contact
but at my contacts list this contact show as not Subscribed
Re: how to add gtalk Contacts
by wodDamir, Monday, December 27, 2010, 23:32 (5080 days ago) @ zyq11111111
Hi,
you need to be authorized by the other side in order for that status to change. When subscribe is called, authorization request is sent to the contact asking him to subscribe. Once he accepts your request, you are subscribed.
Regards,
Damba