vincere-io / restful-api-support

5 stars 0 forks source link

APIV2 - How to fetch placements created after X? #8

Open murilozilli opened 4 years ago

murilozilli commented 4 years ago

I am trying to fetch all placements created after a given month.

For now what I have is this although I think that maybe there is an easier way. 1- /api/v2/job/search/ to search for jobs passing published_date as query 2- /api/v2/position/{job_id}/placements to get placements of that job

Is there an easier way to fetch the data I need?

murilozilli commented 4 years ago

Also in doubt about how to retrieve responsible recruiter for that job.

Should I fetch job.internal_recruiter_contact_id or job.creator_id? What endpoint should I use than to collect extra information about the responsible recruiter like his email?

phamvannam commented 4 years ago

@murilozilli 2- /api/v2/position/{job_id}/placements to get placements of that job This endpoint to get all placements by job id with not filter time But we have a another endpoint to do that https://api.vincere.io/documentation.html#operation/getAppByFilter

phamvannam commented 4 years ago

Also in doubt about how to retrieve responsible recruiter for that job.

Hum, I'm not clear what you need. But Please follow field contact_id in https://api.vincere.io/documentation.html#operation/getAJob that is the contact of this job. and creator_id is the user creates job

kostyachum commented 3 years ago

It would be nice to have API to filter placements by placement date. I would guess it should be a pretty common case. Right now to get a list of placements (I need placement split actually) for some date range I need to:

  1. Search for applications in the placement stage in my date range;
  2. For each application get a list of all placements for a related job (and probably resolve the pagination as well)
  3. When placement application_id matches my current application I need to get placement split

So it is definitely a lot of hustle with a huge amount of API hits for something that sounds quite simple - a list of placements for a date range. At least API for revenue split by application would make sense, coz profit is already in API anyways.