Skip to content

Creating Friendships

raw1z edited this page Mar 6, 2012 · 1 revision

Creating friendships

To create a new friendship with another user use the method called invite() :

@john.invite @jane
@peter.invite @john
@peter.invite @jane
@victoria.invite @john

The invite() method return true if the friendship successfully created, otherwise it returns false. The friendships remain in pending state until they are approved by the user requested. To approve the friendship created above use the method called approve() :

@jane.approve @john
@john.approve @peter
@jane.approve @peter

As invite(), approve() return true if the friendship was successfully approved or false if not.