Player settings data: new endpoint? Add to profile?

Sort:
skelos

Hi,

What amount if any of a player's settings should be available via api.chess.com is debatable.

I have had an enhancement request for one of my scripts which reports players who are eligible to sign up for a match (not already registered, not a member of both teams).

On a member's profile page there is a "mail" icon if they accept PMs, generally. (It doesn't so far as I know go away if the member viewing the profile is blocked; you have to try to send a PM to learn that.)

The "mail" icon also shows or doesn't in the "mouseover" popup present in many places on the site.

So ... is there a way to get it via api.chess.com?

I don't think there is. My best idea so far (but merely a suggestion) would be to add a "settings" section to the player profile endpoint and include in it publicly visible settings. Vacation status would likely be another useful one.

Cheers!

andreamorandini

Dear @skelos, the problem with your request is that PubAPI aren't aware of the user who is watching the data, so we wouldn't be able to provide the correct data (we wouldn't be able to tell if someone has blocked you).

 

skelos

Ah, of course. Thank you for explaining.

Edit: I wasn't aware that the icon was visible/invisible on a per-user status on the website, but I don't look at profiles (can you?) while logged out, so ... yeah. Trickier than I envisaged.