protonmail: Change API endpoint for SendMessage.
This commit is contained in:
parent
9a6f7187a5
commit
71f1167182
|
@ -565,7 +565,7 @@ type OutgoingMessage struct {
|
|||
}
|
||||
|
||||
func (c *Client) SendMessage(msg *OutgoingMessage) (sent, parent *Message, err error) {
|
||||
req, err := c.newJSONRequest(http.MethodPost, "/messages/send/"+msg.ID, msg)
|
||||
req, err := c.newJSONRequest(http.MethodPost, "/messages/"+msg.ID, msg)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue