requestSendMessage(recipients, message, opt_callback)
@MySpace where we are treading carefully with this for the server to server requests
Sending a message on behalf of a user:
- The user must grant the application specific permission to do so and be able to readily revoke it
- Quotas applied to apps even so
Sending a message to a user
- The user must have the app installed and/or ( ;-) ) grant permission to the app to do so and be able to readily revoke it.
- Quotas unnecessary obviously
~Paul
> <link rel="alternate" href="http://app.example.org/invites/{msgid} <http://app.example.org/invites/%7Bmsgid%7D>
> <http://app.example.org/invites/%7bmsgid%7d> "/>
> <content>Click <a href="http://app.example.org/invites/{msgid} <http://app.example.org/invites/%7Bmsgid%7D>
> <http://app.example.org/invites/%7bmsgid%7d> ">here</a> to review your
> invitation.</content>
> </entry>
>
> ...
>
> 201 Created
> Location: /messages/{uid}/outbox/{msgid}
>
> <entry xmlns="http://www.w3.org/2005/Atom">
> <title>You have an invitation</title>
> <id>{msgid}</id>
> <link rel="alternate" href="http://app.example.org/invites/{msgid} <http://app.example.org/invites/%7Bmsgid%7D>
> <http://app.example.org/invites/%7bmsgid%7d> "/>
> <content>Click <a href="http://app.example.org/invites/{msgid} <http://app.example.org/invites/%7Bmsgid%7D>
Sorry if I'm being slow here, but for the REST API, should the {msgid}
be supplied by the caller? Where is the {msgid} being generated?
If it is being generated by the caller, then the request body already
contains the Atom <id>, <link>, and <content>, which seem to be what
matter, so the {msgid} seems superfluous. Am I missing something?
--gh
--gh