Skip to:
Content

BuddyPress.org

Opened 3 years ago

Closed 3 years ago

#8982 closed enhancement (fixed)

Friendship requests via API

Reported by: mattiagrispo Owned by:
Priority: normal Milestone:
Component: REST API Version:
Severity: normal Keywords:
Cc:

Description

Hi I'm developing an app in flutter where I managed to send the friend request from user A to user B, but I don't understand the logic to apply to accept the request. At the moment I was thinking of using the /buddypress/v1/friends/$requestId endpoint to return the request id and change is_confirmed from 0 to 1. but it doesn't work

Change History (4)

#2 in reply to: ↑ 1 @mattiagrispo
3 years ago

Replying to imath:

Hi there’s a specific endpoint about it, have you looked at ​https://developer.buddypress.org/bp-rest-api/reference/friends/#let-the-logged-in-member-accept-a-friendship ?

yes I had seen it, but after retrieving the user id that sends the request I don't know what else to do

Version 1, edited 3 years ago by mattiagrispo (previous) (next) (diff)

#3 @espellcaste
3 years ago

@mattiagrispo This error indicates there is no friendship request between those users.

#4 @espellcaste
3 years ago

  • Milestone Awaiting Review
  • Resolution → fixed
  • Status new → closed

Closing this ticket as invalid.

Note: See TracTickets for help on using tickets.