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)

Adds a user to another user's friends list. 

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", Description = "Adds a user to another user's friends list.")]
public void AddFriend(long friendUserId, long userId);
Visual Basic
<SoapHeader("AuthHeader")>
<SoapHeader("RequestInfoHeader")>
<WebMethod(MessageName = "AddFriend", Description = "Adds a user to another user's friends list.")>
Public Function AddFriend(friendUserId As long, userId As long) As void
Parameters 
Description 
friendUserId 
The user ID to add to users friends list. 
userId 
The ID of the user adding friend. 
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!