Open tacman opened 9 years ago
Currently the members endpoint doesn't return personal_data. It should.
I added personal_data (see https://github.com/survos/Survos/issues/2334) and got rid of the /members/applicants
endpoint. We can use /members?criteria[enrollment_status_code]=applicant
instead (https://github.com/survos/Survos/commit/536a547a60417849945cfe521cd746c00c86cd01)
I've moved /members/applicants/status
to /members/applicants/{action}
, where action
is "accept" or "reject", but I haven't changed it otherwise (https://github.com/survos/Survos/commit/7c7783071987eaac238fc92d32212b98fcd9d8b0).
@kcivey I updated member_applicants example according your changes https://github.com/survos/platform-api-php/blob/master/examples/member_applicants.php
We don't need a separate endpoint for applicants, we can get it from the members call.
getApplicants should be replaced with getMembers with a filter for applicants.
the loop should call a single action for each member, e.g.