|
RDOSocialConnector object |
RDOSocialConnector object is
represents an Outlook Social Connector (such as Facebook or LinkedIn).
This object accesses
data outside of Microsoft Outlook. Please make sure your usage satisfies the
licensing terms of the particular Social Provider (Facebook, LinkedIn, etc.)
Returned by:
RDOSocialConnectors.Item
The example below finds a LinkedIn
user with the specified email address and displays the user's full name.
userToFind = "user@domain.demo"
set Session = CreateObject("Redemption.RDOSession")
Session.MAPIOBJECT = Application.Session.MAPIOBJECT
set SocialConnector = Session.SocialConnectors.Item("Linkedin")
set persons = SocialConnector.FindPerson(userToFind)
for each person in persons
MsgBox person.FullName
next |
Properties
Methods
|
Derived from:
IDispatch
|
|
Properties |
|
GUID
|
String, read-only. A GUID uniquely representing the particular Social
Connector.
Facebook:
{EFDABF9A-7D2C-4BE6-A266-872EC6FC63E7}
LinkedIn:
{8E8005E8-B772-4FC0-81B8-C55E18DE4FA4}
Windows Live Messenger:
{D2B01241-99F4-416B-ADA1-D7330F70D171}
|
|
Name
|
String, read/only.
The name of the social network, e.g. "Facebook".
|
|
SocialNetworkIcon
|
RDOPicture, read-only. Returns the image
representing the social network icon (in most cases in the PNG format).
|
|
Version
|
String, read-onny.
Returns the social network provider version.
|
|
Url
|
String, read-only.
Returns the link to the Social Network website.
|
|
UserName
|
String, read-only.
The user name used to log to the social network.
|
|
|
Methods |
|
FindPerson(Address)
|
Finds and returns RDOSocialPersons
collection representing the social network users corresponding to the
address(es) passed as a parameter.
If no matches are found, the returned
RDOSocialPersons collection will be empty (RDOSocialPersons.Count
= 0)
Address - string. An email or a list of emails (separated by ";").-
string. An email or a list of emails (separated by ";").
|
userToFind = "user@domain.demo"
set Session = CreateObject("Redemption.RDOSession")
Session.MAPIOBJECT = Application.Session.MAPIOBJECT
set SocialConnector = Session.SocialConnectors.Item("Linkedin")
set persons = SocialConnector.FindPerson(userToFind)
for each person in persons
MsgBox person.FullName
next
|
GetActivities(Address, StartDate)
|
Returns the list of activities (RDOSocialActivities)
of the social network user(s) corresponding to the specified email
address(es).
Address - string. An email or a list of emails
(separated by ";").
StartDate - DateTime. the starting date of the range.
Note that the social provider can returns activities earlier than the
specified range.
|
userToFind = "user@domain.demo"
set Session = CreateObject("Redemption.RDOSession")
Session.MAPIOBJECT = Application.Session.MAPIOBJECT
set SocialConnector = Session.SocialConnectors.Item("Facebook")
set activities = SocialConnector.GetActivities(userToFind,
#10/1/2013#)
MsgBox activities.Count
|
GetLoggedOnUser
|
Returns RDOSocialPerson object
corresponding to the user logged in to the Social Network.
|
set Session = CreateObject("Redemption.RDOSession")
Session.MAPIOBJECT = Application.Session.MAPIOBJECT
set SocialConnector = Session.SocialConnectors.Item("Linkedin")
set person = SocialConnector.GetLoggedOnUser
MsgBox person.FullName
|
|