Skip to:
Content

BuddyPress.org

Opened 10 months ago

Closed 3 months ago

#8982 closed enhancement (fixed)

Friendship requests via API

Reported by: mattiagrispo's profile mattiagrispo Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: REST API 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
10 months 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 10 months ago by mattiagrispo (previous) (next) (diff)

#3 @espellcaste
10 months ago

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

#4 @espellcaste
3 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to fixed
  • Status changed from new to closed

Closing this ticket as invalid.

Note: See TracTickets for help on using tickets.