sorare / api

Sorare API documentation
155 stars 49 forks source link

users() - Users slug change - Add param ids #515

Open jmallot21 opened 1 year ago

jmallot21 commented 1 year ago

Good morning,

I'm currently having a problem with manager slugs. In fact, each manager can choose to modify their nickname on the Sorare site. However, this also modifies their slug.

I would like to be able to update my database when a slug is modified. To do this, is it possible for you to provide a userUpdated subscription for example?

Or, add an ids:[] parameter to the users() method? Which would allow me to regularly browse the list of all managers in order to retrieve the nicknames/slugs that have been modified. image

This point would allow me to maintain consistency between Sorare and the SorareNbaJet base.

Thanks in advance.

redox commented 1 year ago

We're currently discussing about adding more subscriptions; this wasn't part of them but I assume makes sense. I'll bring upir point to the team discussion.

jmallot21 commented 1 year ago

Cool, great news. It will be very useful for the project.

Indeed, browse all the users to find out which one has been modified is really not optimized. It takes a lot of time and requires a lot of resources on both sides.

jmallot21 commented 11 months ago

Were you able to discuss it with the team? Is this feasible?

jmallot21 commented 4 months ago

New subscriptions : userWasUpdated() ?