You are here: Ektron Namespace > Web Services API > Ektron.Services Namespace > Classes > Friends Class > Friends Methods > AddFriend Method > AddFriend
Ektron CMS400.NET API Documentation
ContentsIndexHome
PreviousUpNext
Friends.AddFriend Method (long, long, long)

Adds a user to another user's friends list in a specific sub directory. 

This method can be accessed through the Friends.asmx file located in:

~/Workarea/webservices/WebServiceAPI/Community/Friends.asmx
C#
[SoapHeader("AuthHeader")]
[SoapHeader("RequestInfoHeader")]
[WebMethod(MessageName = "AddFriend for directory", Description = "Adds a user to aother user's friends list in a specific sub directory.")]
public void AddFriend(long friendUserId, long userId, long directoryId);
Visual Basic
<SoapHeader("AuthHeader")>
<SoapHeader("RequestInfoHeader")>
<WebMethod(MessageName = "AddFriend for directory", Description = "Adds a user to aother user's friends list in a specific sub directory.")>
Public Function AddFriend(friendUserId As long, userId As long, directoryId As long) As void
Parameters 
Description 
friendUserId 
The user ID of friend to add to users friends list. 
userId 
The ID of user adding friend. 
directoryId 
The ID of directory to place friend into. 
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at [email protected].
Copyright (c) 2008. All rights reserved.
What do you think about this topic? Send feedback!