Skip to:
Content
Pages
Categories
Search
Top
Bottom

BP API Access


  • barkins
    Participant

    @barkins

    I’m interested in adopting BuddyPress for my membership website.

    I’m hoping BuddyPress features can be accessed via API? Also, is it then possible to perform CRUD operations on profiles via API?

    I did find this https://github.com/buddypress/BP-REST however not sure if BuddyPress can just work with the WordPress REST API?

    Any insight would be greatly appreciated. Thanks

Viewing 2 replies - 1 through 2 (of 2 total)

  • barkins
    Participant

    @barkins

    I did just find this plugin: JSON API User WordPress Plugin, https://www.parorrey.com/solutions/json-api-user/

    Has anyone used it with BuddyPress? If so, how well did it work?


    Boone Gorges
    Keymaster

    @boonebgorges

    Hi @barkins – Unfortunately, BuddyPress doesn’t yet have a full set of CRUD endpoints for BP objects. The team is working on it, and we hope to start rolling out endpoints in the near future. BP-REST is the repo to follow for that.

    BP will work fine with the default WP REST API, if all you want to do is access a list of users. However, WP’s user endpoint won’t include any BP data, and you won’t be able to modify/add user data via this endpoint. That said, if your needs are fairly narrow, you can definitely write your own custom endpoint for fetching/updating BP profile data – it’s likely to be much simpler than what’d be required in BP itself, if your needs are pretty specific. Here’s some docs: https://developer.wordpress.org/rest-api/extending-the-rest-api/adding-custom-endpoints/

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar