API Reference

Friends.addFriend

Adds a new friend-relationship between two users.


Syntax

bool friends.addFriend ( int uid1, int uid2 = NULL, bool autoConfirm = false, bool twoWay = true )

Arguments

NameTypeRequiredDefault valueDescription
uid1intRequirednoneThe ID of the user that will be added as a friend
uid2intOptionalNULLIf uid2 is not specified the current logged in user will be used here
autoConfirmboolOptionalfalseSet this to true to automatically confirm the friend-relationship status
twoWayboolOptionaltrueMake the friendship bidirectional

Response

Upon success the response will be 1.

NameTypeDescription
responseINTThe response will be 1.

Sample Response

Code examples

0 comments

Be the first to comment on addFriend.

Add a Comment

  • captcha