New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proposal for v2/account/mails #25
Conversation
Update from original master
The items need to include quantity as well. The other proposals are using the format -
EDIT: Also, hmm, I'm gonna have to dig around to see if we store sent messages in an easily-retrievable way. I'm not really sure how that subsystem works. |
Just added the 'count' property and transformed items to objects. |
This looks good! This might be a silly question, but is there a possibility this could also be extended so that we could send mail with this API? I would change the endpoint into v2/account/mail (without the s) though. |
Agreed. Ability to send mail to game through the API would be incredibly useful. |
As long as it's restricted to guild members On Wed, Jun 24, 2015, 08:17 Mike Harvey notifications@github.com wrote:
|
If there is a possibility (Which I think would be hard to implement) then we need to make sure that bots cannot use this API to spam. I think we would have a few possibilities: At one point it might be 'easy' to put a limit on the about of mails you can send for some amount of time, but this isn't fool proof. I heard stories about people owning multiple bots, which could potentially all be used for this case together. Another thing we might do is limiting the sender to only send to specific persons:
A combination of the above could also be possible. I do think that we would face the same issue if we would implement a Chat API. Which would allow us to see things on the chat. Personally I think a Chat API could really enhance the community (especially Guilds) since people would also talk to each other outside the times they can play GW2, which would strengthen the bond of the guild. |
I created a PR for the chat API darthmaim: #43 |
Mail age needs to also be consider, an epoch timestamp would be ideal. |
Since this was bumped, I should probably give an update with some additional givens:
Given these constraints, the usefulness of a mail endpoint seems really limited to me. |
Okay, so I ended up writing a bit that pulls data from the mail queue, so the API can view the mail before it's actually delivered (delivery requires login). With this, the API can show the 10 messages displayed in the UI, and the first 90 messages in the delivery queue (assuming the delivery queue can get that deep -- not entirely sure). The read-only restriction isn't ever going to change, though. I think the ability to read up to 100 messages (without requiring login to read new messages) greatly changes the usefulness of the endpoint, though. I forgot about this PR and ended up opening another one, so this is superseded by #518. |
Hi there,
and again a new proposal. This time for an endpoint that enables us to request ingame mails.
I hope it's possible to provide us this data.
Please let me know what you think.
~ Teranas