These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

Mail Remote UI API question

Author
Layne Rockefeller
School of Applied Knowledge
Caldari State
#1 - 2016-10-07 16:14:26 UTC
I see that post requests for the new remote mail ui go to ~can't post the html~ but being new to the documentation, I have no idea where to find the params for passing subject, body, or list of recipients along to the server. What special params or headers are required for this post request?
Blacksmoke16
Imperial Academy
#2 - 2016-10-07 18:20:27 UTC
Here is what works as generated from postman.

The url= can be used to have things linked such as corp ads, players etc in the template generated from the POST request. recipients is an array of objects like {"id": charID_of_recipient}.


POST /characters/CHAR ID/ui/openwindow/newmail/ HTTP/1.1
Host: crest-tq.eveonline.com
Content-Type: application/vnd.ccp.eve.NewMail-v1+json
Authorization: bearer YOUR_TOKEN
Cache-Control: no-cache
Postman-Token: ced2dbde-453f-a80b-8757-f288799cac5c

{
"subject": "Hello",
"body": "< url=recruitmentAd:98430171//118808 >SeckDeck Industries - The best of the best < /url >",
"recipients": [{"id": 2047918291}]
}
Layne Rockefeller
School of Applied Knowledge
Caldari State
#3 - 2016-10-09 02:28:19 UTC
Thanks!