{"action":"created","issue":{"url":"https://api.github.com/repos/arenanet/api-cdi/issues/43","labels_url":"https://api.github.com/repos/arenanet/api-cdi/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/arenanet/api-cdi/issues/43/comments","events_url":"https://api.github.com/repos/arenanet/api-cdi/issues/43/events","html_url":"https://github.com/arenanet/api-cdi/pull/43","id":90701165,"number":43,"title":"Proposal of v2/chat","user":{"login":"StrategistXIV","id":10036839,"avatar_url":"https://avatars.githubusercontent.com/u/10036839?v=3","gravatar_id":"","url":"https://api.github.com/users/StrategistXIV","html_url":"https://github.com/StrategistXIV","followers_url":"https://api.github.com/users/StrategistXIV/followers","following_url":"https://api.github.com/users/StrategistXIV/following{/other_user}","gists_url":"https://api.github.com/users/StrategistXIV/gists{/gist_id}","starred_url":"https://api.github.com/users/StrategistXIV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StrategistXIV/subscriptions","organizations_url":"https://api.github.com/users/StrategistXIV/orgs","repos_url":"https://api.github.com/users/StrategistXIV/repos","events_url":"https://api.github.com/users/StrategistXIV/events{/privacy}","received_events_url":"https://api.github.com/users/StrategistXIV/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-24T14:58:48Z","updated_at":"2015-06-24T15:07:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/arenanet/api-cdi/pulls/43","html_url":"https://github.com/arenanet/api-cdi/pull/43","diff_url":"https://github.com/arenanet/api-cdi/pull/43.diff","patch_url":"https://github.com/arenanet/api-cdi/pull/43.patch"},"body":"I bet this is a pretty trick API to implement, but I think it could greatly enhance the GW2 Guild and general community. The API would basically consist of 3 API endpoints\r\n\r\n`/v2/chat/receive` - This endpoint receives all the Guild and whisper messages that are cached for a specific amount of time.\r\n`/v2/chat/send/whisper` - This endpoint allows users to send whispers\r\n`/v2/chat/send/guild` - This endpoint allows users to send messages in Guild chats.\r\n\r\nThere are a few things I am still not sure about:\r\n\r\n- Is this implementable at all? (Especially the sending part of the messages)\r\n- Which character is displayed when sending the messages.\r\n- Which formats for strings and time to use. (I can imagine some talk in a language with weird signs, so we should probably at least use UTF-16 if I remember correctly, I am not sure how detailed the time internally is stored)\r\n- For how long are things cached, it would be great if it could be cached for maybe a day, or a few hours.\r\n\r\nI wonder what you guys think about this."},"comment":{"url":"https://api.github.com/repos/arenanet/api-cdi/issues/comments/114901221","html_url":"https://github.com/arenanet/api-cdi/pull/43#issuecomment-114901221","issue_url":"https://api.github.com/repos/arenanet/api-cdi/issues/43","id":114901221,"user":{"login":"Teranas","id":4856033,"avatar_url":"https://avatars.githubusercontent.com/u/4856033?v=3","gravatar_id":"","url":"https://api.github.com/users/Teranas","html_url":"https://github.com/Teranas","followers_url":"https://api.github.com/users/Teranas/followers","following_url":"https://api.github.com/users/Teranas/following{/other_user}","gists_url":"https://api.github.com/users/Teranas/gists{/gist_id}","starred_url":"https://api.github.com/users/Teranas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Teranas/subscriptions","organizations_url":"https://api.github.com/users/Teranas/orgs","repos_url":"https://api.github.com/users/Teranas/repos","events_url":"https://api.github.com/users/Teranas/events{/privacy}","received_events_url":"https://api.github.com/users/Teranas/received_events","type":"User","site_admin":false},"created_at":"2015-06-24T15:07:45Z","updated_at":"2015-06-24T15:07:45Z","body":"As mention by @darthmaim at PR #25: A chat API is something that was already discussed. (See https://forum-en.guildwars2.com/forum/community/api/API-CDI-2015/page/2#post4813732)\r\n\r\nHowever, i don't think that HTTP(S) is the right protocol to provide a chat api. It's not designed for short messages and instant messaging.\r\n\r\nOther protocols like IRC or XMPP fit much better for that use case."}}