Company | Newzulu Platform | Developer

Developer Template Documentation v4.12.4.15

Add friend


Add friend

/action/v2/addfriend

Adds a user as a friend. Requires an active session

Requires a form token

Requires a session token - the user must be logged in

Supports redirectUrl param of fm:Form component

Example

<fm:Form action="/action/v2/addfriend" method="post" > <input type="hidden" name="uid" value="555888" /> <button type="submit">Add to Friends</button> </fm:Form>

Supported params

Name Required Description
uid Required Id of the user being added to friends. Must be a valid user id in the project in Newzulu Platform

See also

<< 3.4.3 Add anonymous comment 3.4.5 Add media comment >>