2. π Example: Retrieving All Members (GET Request)
Description:
In this example, youβll retrieve the list of members from your MemberPress site.
Steps:
- In Postman, set the request method to GET.
- Enter the URL:
https://your-site.com/wp-json/mp/v1/members - In the Authorization tab, select Bearer Token and add your API Key.
- Click Send.
Expected Response:
The API should return a JSON response with member information, such as:
[
{
"id": 1,
"username": "johndoe",
"email": "johndoe@example.com",
"status": "active"
},
{
"id": 2,
"username": "janedoe",
"email": "janedoe@example.com",
"status": "active"
}
]