API: Responding to a friend request - ninetwozero/BF3-Battlelog GitHub Wiki
Url
http://battlelog.battlefield.com/bf3/friend/acceptFriendship/{UID}/ (Constants.URL_FRIEND_ACCEPT)
http://battlelog.battlefield.com/bf3/friend/declineFriendship/{UID}/ (Constants.URL_FRIEND_DECLINE)
Headers
X-Requested-With => XMLHttpRequest
Post data
post-check-sum => {checksum for the user}
Response
{
"data": {},
"message": "ACCEPTED",
"type": "success"
}
OR { "data": {}, "message": "ACCEPTED", "type": "success" }