MingleConnection
You can use the MingleConnection
data type to
post messages to various targets:
#define EngineVersion 5.0
#define RuntimeVersion 5.0
void MingleDemo()
{
string serviceEndpoint =
"http://192.168.47.43:7180/socialservice.svc/";
string tenant = "infor";
string userGUID = "4439909a-7ef6-4b06-98af-f90a8e0c0060";
string accessKey = "8C7A6E35A698440288850C436FA3A936";
string secretKey =
"cNUB91gr4HND26eO/hFqRUhrygXrmFfX/fjn5/49uNRM4iKfzDR8+w==";
MingleConnection connection = MingleCreateConnection(
serviceEndpoint,
tenant,
userGUID,
accessKey,
secretKey
);
MinglePostMessage(
connection,
"Test message from a client!",
MinglePrivacyLevelPrivate
);
WriteLine("Sent message to own feed.");
MinglePostMessageToOtherUser(
connection,
"2f22337e-5f8a-4827-a58e-688d86a26af4",
"Hello!!",
MinglePrivacyLevelPrivate
);
WriteLine("Sent private message to colleague feed.");
}
Refer to the Infor OS Portal or
Infor Ming.le documentation to learn how to obtain a user GUID
, an access key, and a secret key.
When posting messages, you can select one of these privacy levels:
-
MinglePrivacyLevelPrivate
: The message can only be seen by the recipient. -
MinglePrivacyLevelColleagues
: The message can be seen by the recipient and colleagues. -
MinglePrivacyLevelPublic
: The message can be seen by all users. -
MinglePrivacyLevelGroup
: The message can only be seen by the receiving group.
There is an implicit privacy level named MinglePrivacyLevelTargetList
. It is set automatically when you use one of the
Infor OS Portal functions accepting a StringArray
of user IDs and group IDs.