esi / esi-issues

Issue tracking and feature requests for ESI
https://esi.evetech.net/
209 stars 23 forks source link

Chat channel data and text (and motd?) endpoints. #103

Closed Ligraph closed 7 years ago

Ligraph commented 7 years ago

It would be nice to get an endpoint to read chat channel data, and text. I assume you would only be able to read channels that the character who's auth you are using has access to. This way I don't have to read chatlogs.

An endpoint to set the MOTD (and maybe other settings) would also be great (if you have the roles for the channel ofc).

ghost commented 7 years ago

This seems like it would be relatively simple, in XML or CREST (can't remember which at this moment) you were able to collect the channels that users were in, seems it would be simple to just associate the channel ID from that request with a request to a 'channel' API to get all the information you requested above, and maybe more? Would be nice to get a channels user list (obviously only those visible).

Great idea, hope it gets accepted!

polarina commented 7 years ago

@rottjr for clarification, the XML API shows only channels you own or are an operator of.

ghost commented 7 years ago

@polarina thanks for the clarification. Would it not be possible to include all active chat channels? Then attach a character ID to an owner field so the developer knows if they would have access to a chat owner endpoint IE: /chat/{channel ID}/owner/ using the bearer auth as security? I could be off point, but this seems like a logical path. Then if they aren't the owner pull public data like the MOTD and currently visible users through the /chat/{Channel ID}/. This could pose an opportunity (if implemented) to collect active channels through this endpoint IE: /chat/channels/{character ID}/ and maybe even join channels from out of game apps via a post or put IE: /chat/channels/{character ID} with the channel ID as the post content or put content.

Just ideas.

ddavaham commented 7 years ago

Could this be used to pull in Local and therefore get a list of current users in Local? What would the cache timer on an endpoint like this be?

On Nov 19, 2016 12:35, "rottjr" notifications@github.com wrote:

@polarina https://github.com/polarina thanks for the clarification. Would it not be possible to include all active chat channels? Then attach a character ID to an owner field so the developer knows if they would have access to a chat owner endpoint IE: /chat/{channel ID}/owner/ using the bearer auth as security? I could be off point, but this seems like a logical path. Then if they aren't the owner pull public data like the MOTD and currently visible users through the /chat/{Channel ID}/. This could pose an opportunity (if implemented) to collect active channels through this endpoint IE: /chat/channels/{character ID}/ and maybe even join channels from out of game apps via a post or put IE: /chat/channels/{character ID} with the channel ID as the post content or put content.

Just ideas.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ccpgames/esi-issues/issues/103#issuecomment-261727583, or mute the thread https://github.com/notifications/unsubscribe-auth/AGz6brF9ukF2yBPnBdTn4l9oYAuGdHvzks5q_zNugaJpZM4K3Jde .

NathenSample commented 7 years ago

@ddouglas493 Local would either have such a cache time that it wouldn't be useful for anything or it'd have a shot cache timer and be abused as a new pseudo logserver.

Neither are good.

christianjgreen commented 7 years ago

I think it would be best to mirror the XML api's method were you could only pull custom channels the user has access to. This includes a list of ops, members, and the MOTD.

SpeedProg commented 7 years ago

would be nice to be able to set MOTDs for channels you have operator.

DaneelTrevize commented 7 years ago

Hello, could we get clarity on what Staging means for this issue atm, I don't see anything for channels in https://esi.tech.ccp.is/dev/?datasource=singularity but know that Spectre Fleet would be hugely positively impacted by a writable channel MOTD endpoint. It could revolutionise our fleet scheduling & consistent communication with our community, and help remove the need to give newer junior FC Operator access.

edit: found "GET /latest/characters/{character_id}/chat_channels (v1)" scheduled for 2017-03-30 here https://github.com/ccpgames/esi-issues/projects/2

Robbilie commented 7 years ago

With possible changes to the chat system coming I don't see them investing time into writing endpoints for a soon to be replaced system, unless they have it done already I don't see it being released before the new chat system :)

aquarhead commented 7 years ago

We've added https://esi.tech.ccp.is/latest/#!/Character/get_characters_character_id_chat_channels for parity with XML api. If you have problem using it or new feature request please open new issues.

DaneelTrevize commented 7 years ago

Can I just ask why this didn't appear in /dev or for the sisi datasource prior to being live for TQ? Is that out of the ordinary?

a-tal commented 7 years ago

that's normal. the versions of the endpoints are for spec changes. when a new endpoint is introduced, it will have versions v1, latest, legacy and dev. then if/when a breaking change to that endpoint is introduced, it will come in as v2 and dev, with a migration to latest at some announced point in time.