Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Proposal: Messaging changes
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 1 - 25 of 36 - Collapse all  -  Translate all to Translated (View all originals)   Newer >
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
bobby  
View profile  
 More options Oct 9 2008, 4:33 pm
From: bobby <bbiss...@gmail.com>
Date: Thu, 9 Oct 2008 13:33:19 -0700 (PDT)
Local: Thurs, Oct 9 2008 4:33 pm
Subject: Proposal: Messaging changes
Hello all,

This is a proposal for some messaging changes that I've come up with
while working on our own container at Project SocialSite (I'm also
robert.biss...@sun.com on the shindig-...@incubator.apache.org list).
There are three changes I'd like to suggest, and as background I refer
you to Ropu's writeup:
http://docs.google.com/View?docid=dfjz793x_187gm3prnch

Maybe these should be broken up into separate threads, but we can do
that if there is enough conversation on any of them to warrant it.

1. Changes to the OpenSocial unique ID format. This is currently the
container domain followed by a user's ID, for instance:
"example.com:abc123" This works well enough for people, but in
SocialSite we can send messages to groups (our definition of group
that is a collection of people with its own group profile page) as
well. In the future, there could be more types of recipients than just
these two.

I don't have a specific recommendation, but I'd like to see this made
more general. One idea is to change the format from "domain:id" to
"domain:optional_type:id" (or put the type first, so it looks more
like a URI scheme). Because colons are not allowed in usernames, there
shouldn't be any ambiguity in the string. Thus, a recipient could be
"person:example.org:abc123." Another idea is to simply use URIs as
identifiers -- since every person has a unique profile URL in the
OpenSocial API, this is an option. (In our project, a user and a group
could have the same ID, but they have separate URLs for their profile
pages.)

2. A sender field in the message. The current proposal, along with
some proposed standard methods, allow for sending messages to a
recipient. We have services for retrieving these messages as well, and
so we need to get the sender information somehow to present to the
user. While this could simply be an ID, I'd like to see more
information in the message, for example including a Person object in
the Message. That would allow showing a nice UI to the end user with
the sender's full name and a link to his/her profile without having to
parse the messages, grab the IDs, and make another request back to the
server for the senders' full info. Of course, the sender isn't needed
when sending since that information is already available.

I'm currently implementing this by adding a JSONObject sender field to
my message impl class, and it's passed over the wire by Shindig
through inspecting and calling all public getters. However, I'm
processing the JSON manually on the client end, and it would be nice
to have a jsonmessage.js object on the client to handle this (I sent a
beginning version of jsonmessage.js in a proposed patch as dicussed on
shindig-dev, but it doesn't include all of these ideas).

3. A 'data' (or 'payload,' 'attachment,' etc.) field in a message for
gadget-specific information. As an example, a request to join a group
in SocialSite needs to contain information about the group that the
sender is asking to join. While in this case there is no body of the
message and so the group info could be placed here, we could in the
future allow personal messages within a group request ("please let me
in! I'll bring pizza!").

Also, information in the body of the message is a simple string, so
the gadget displaying the message would have to parse this string for
data. If the data field were JSON instead, then this skips a step
while leaving the 'body' field open for human-readable information.
I've implemented this in our project in the same way I've added a
'sender' field -- by simply providing the info in a public getter
method and parsing the JSON in the client.

Cheers,
Bobby


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
anand sharma  
View profile  
 More options Oct 13 2008, 2:39 am
From: "anand sharma" <anandkumarsharm...@gmail.com>
Date: Mon, 13 Oct 2008 12:09:59 +0530
Local: Mon, Oct 13 2008 2:39 am
Subject: Re: [opensocial-and-gadgets-spec] Proposal: Messaging changes

Hi Bobby
Nice documentation on Shindig message service,
Actually i m trying to implement message service class and not getting idea
from where i should start, so would u please help me so that i can able to
write message service class .

Thx
Anand
PHP | PERL | Linux
anandkumarsharm...@gmail.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
bobby  
View profile  
 More options Oct 13 2008, 12:53 pm
From: bobby <bbiss...@gmail.com>
Date: Mon, 13 Oct 2008 09:53:45 -0700 (PDT)
Local: Mon, Oct 13 2008 12:53 pm
Subject: Re: Proposal: Messaging changes

> Actually i m trying to implement message service class and not getting idea
> from where i should start, so would u please help me so that i can able to
> write message service class .

Rodrigo Gallardo has started working on the message service in
Shindig, so
that code might be a good place to look:

http://codereview.appspot.com/5702

I saw this on the shindig-...@incubator.apache.org email list, so that
might
also be a good place to ask. I'm implementing it in our own container
for
Project SocialSite, which you're welcome to browse, but the code is
pretty
specific to our container except for where it plugs into the Shindig
service.
You can see my code here if you'd like: http://tinyurl.com/46yszc

Cheers,
Bobby


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott Seely  
View profile  
 More options Oct 27 2008, 3:58 pm
From: Scott Seely <sse...@myspace.com>
Date: Mon, 27 Oct 2008 12:58:46 -0700 (PDT)
Local: Mon, Oct 27 2008 3:58 pm
Subject: Re: Proposal: Messaging changes
We have 1 +1 (submitter). Any other votes/comments?

On Oct 13, 9:53 am, bobby <bbiss...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ropu  
View profile  
 More options Oct 28 2008, 5:14 am
From: Ropu <rovagn...@gmail.com>
Date: Tue, 28 Oct 2008 17:14:37 +0800
Local: Tues, Oct 28 2008 5:14 am
Subject: Re: [opensocial-and-gadgets-spec] Re: Proposal: Messaging changes

+1

but im also a submitter,

--
.-. --- .--. ..-
R  o  p  u

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott Seely  
View profile  
 More options Nov 3 2008, 12:40 pm
From: Scott Seely <sse...@myspace.com>
Date: Mon, 3 Nov 2008 09:40:32 -0800 (PST)
Local: Mon, Nov 3 2008 12:40 pm
Subject: Re: Proposal: Messaging changes
Does anyone have anything extra to add to this discussion? It seems
like no one is against the idea but that the original proponent has
dropped off the thread.

I will call the thread dead in Wednesday (11-5) if we don't see some
more discussion.

On Oct 28, 1:14 am, Ropu <rovagn...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
bobby  
View profile  
 More options Nov 3 2008, 3:32 pm
From: bobby <bbiss...@gmail.com>
Date: Mon, 3 Nov 2008 12:32:32 -0800 (PST)
Local: Mon, Nov 3 2008 3:32 pm
Subject: Re: Proposal: Messaging changes

> Does anyone have anything extra to add to this discussion? It seems
> like no one is against the idea but that the original proponent has
> dropped off the thread.

Hi,

Didn't mean to give the impression that I had dropped off the thread.
I thought your "1 +1 (submitter)" covered me. Am still in favor of the
proposal.

Cheers,
Bobby


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
snoopdave  
View profile  
 More options Nov 8 2008, 9:55 am
From: snoopdave <snoopd...@gmail.com>
Date: Sat, 8 Nov 2008 06:55:51 -0800 (PST)
Local: Sat, Nov 8 2008 9:55 am
Subject: Re: Proposal: Messaging changes
+1 for getting these changes into OpenSocial v0.9.

- Dave

On Nov 3, 3:32 pm, bobby <bbiss...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Lindner  
View profile  
 More options Nov 10 2008, 4:16 pm
From: Paul Lindner <plind...@hi5.com>
Date: Mon, 10 Nov 2008 13:16:08 -0800 (PST)
Local: Mon, Nov 10 2008 4:16 pm
Subject: Re: Proposal: Messaging changes
I went through and merged the two proposals here:

http://wiki.opensocial.org/index.php?title=Messaging_API_Changes

Comments?

On Nov 8, 6:55 am, snoopdave <snoopd...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Louis Ryan  
View profile  
 More options Nov 12 2008, 12:04 pm
From: Louis Ryan <lr...@google.com>
Date: Wed, 12 Nov 2008 09:04:47 -0800
Local: Wed, Nov 12 2008 12:04 pm
Subject: Re: [opensocial-and-gadgets-spec] Re: Proposal: Messaging changes

Im a general +1 on this.

Some notes:

- Message does not contain a  msg collection id, is this intentional as it
seems useful
- In the examples the message ids are URLs not URNs?
- Is anyone actually using body_id and title_id ? Maybe we can just drop
these
- What is the body of the response to POST /messages/{guid}/@outbox when
item was created? The entity itself?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
bobby  
View profile  
 More options Nov 12 2008, 2:28 pm
From: bobby <bbiss...@gmail.com>
Date: Wed, 12 Nov 2008 11:28:56 -0800 (PST)
Local: Wed, Nov 12 2008 2:28 pm
Subject: Re: Proposal: Messaging changes

> I went through and merged the two proposals here:

> http://wiki.opensocial.org/index.php?title=Messaging_API_Changes

> Comments?

Hi Paul,

Can we keep the original URIs that include inbox/outbox as we had
before?

--- begin ---
Recipients can request messages by requesting them from their 'inbox'
collection for received messages or 'outbox' collection for sent
messages. If {msgid} is omitted, all messages are returned.

GET /messages/{guid}/inbox/{msgid}
GET /messages/{guid}/outbox/{msgid}

Recipients can remove messages by sending a DELETE request to either
the inbox or outbox. A message may also be updated with a PUT request
(i.e., marking the messages as 'read'). In a DELETE or PUT request,
{msgid} is required.
--- end ---

If you'd prefer not using "inbox" and "outbox," then I'd like to see
some other comments at least.

The status strings that we had used before were "READ" and "UNREAD" --
do you think those should be standardized? I can see a potential
problem with something like "SPAM" since a message could be both read
and spam at the same time. We could have I guess any number of status
fields (e.g., one specifically for read/unread), but I don't want to
propose making too big a change now.

Thanks,
Bobby


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Lindner  
View profile  
 More options Nov 12 2008, 3:22 pm
From: Paul Lindner <plind...@hi5.com>
Date: Wed, 12 Nov 2008 12:22:12 -0800
Local: Wed, Nov 12 2008 3:22 pm
Subject: Re: [opensocial-and-gadgets-spec] Re: Proposal: Messaging changes

On Nov 12, 2008, at 11:28 AM, bobby wrote:

>> I went through and merged the two proposals here:

>> http://wiki.opensocial.org/index.php?title=Messaging_API_Changes

>> Comments?

> Hi Paul,

> Can we keep the original URIs that include inbox/outbox as we had
> before?

inbox semantics are available as @all
outbox is available as @outbox

This conforms to the existing opensocial norms that designate special  
collection names with an @ prefix.

I got rid of that syntax once I added support for generic message  
collections.  I'm willing to be flexible here, I just want to insure  
that opensocial required collections are distinct from container  
optional collections.

> The status strings that we had used before were "READ" and "UNREAD" --
> do you think those should be standardized? I can see a potential
> problem with something like "SPAM" since a message could be both read
> and spam at the same time. We could have I guess any number of status
> fields (e.g., one specifically for read/unread), but I don't want to
> propose making too big a change now.

Correct this is a messy area.

Long term goal would be to use atompub style categorization to use  
defined terms tagged to each message.

http://atompub.org/rfc4287.html#element.category

For now I'm happy to stick with READ/UNREAD/DELETED and ignore the  
spam aspect.

> Thanks,
> Bobby

Paul Lindner
plind...@hi5.com

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Lindner  
View profile  
 More options Nov 12 2008, 4:41 pm
From: Paul Lindner <plind...@hi5.com>
Date: Wed, 12 Nov 2008 13:41:15 -0800
Local: Wed, Nov 12 2008 4:41 pm
Subject: Re: [opensocial-and-gadgets-spec] Re: Proposal: Messaging changes

On Nov 12, 2008, at 9:04 AM, Louis Ryan wrote:

> Im a general +1 on this.

> Some notes:

> - Message does not contain a  msg collection id, is this intentional  
> as it seems useful

Sounds fine.  It would need to be an array, since messages can live in  
multiple collections.

> - In the examples the message ids are URLs not URNs?

I'll go over this section.  I actually have the code running in the  
sample container, so it's getting easier to get samples.

> - Is anyone actually using body_id and title_id ? Maybe we can just  
> drop these

We use them to provide internationalized and templatized messages.  In  
my opinion these are only of interest for message submission.

> - What is the body of the response to POST /messages/{guid}/@outbox  
> when item was created? The entity itself?

Right now it's just a simple 201 created response, I believe.  Since  
an outbox can have multiple recipients there's no sense in returning  
what you posted.  The IDs are going to be different for each user.

Paul Lindner
plind...@hi5.com

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
bobby  
View profile  
 More options Nov 13 2008, 4:16 pm
From: bobby <bbiss...@gmail.com>
Date: Thu, 13 Nov 2008 13:16:58 -0800 (PST)
Local: Thurs, Nov 13 2008 4:16 pm
Subject: Re: Proposal: Messaging changes

> > Can we keep the original URIs that include inbox/outbox as we had
> > before?

> inbox semantics are available as @all
> outbox is available as @outbox

> This conforms to the existing opensocial norms that designate special  
> collection names with an @ prefix.

That sounds good, and we're fine with the @xyz semantics. One minor
thing: could we change "@all" to "@inbox" or something else? I don't
want someone to be confused that "all" should return, well, all
messages, including sent ones. I think I see what you're going for: in
my email reader, I have only one "box" for sent messages and many
"boxes" for all my incoming stuff (they could be boxes, folders,
etc.). I'm just wary of the connotations of "all."

That sounds good to me.

Cheers,
Bobby


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ropu  
View profile  
 More options Nov 13 2008, 10:19 pm
From: Ropu <rovagn...@gmail.com>
Date: Fri, 14 Nov 2008 10:19:42 +0700
Local: Thurs, Nov 13 2008 10:19 pm
Subject: Re: [opensocial-and-gadgets-spec] Re: Proposal: Messaging changes

> - What is the body of the response to POST /messages/{guid}/@outbox when
> item was created? The entity itself?

> Right now it's just a simple 201 created response, I believe.  Since an
> outbox can have multiple recipients there's no sense in returning what you
> posted.  The IDs are going to be different for each user.

its possible to return an array that states the result of each message?

since when sending it to multiple recipients, not necessary all will success
or fail

so someting like this

{
  {"id1" : "Success"},
  {"id2" : "Fail"},
...
  {"idN" : "Success"}

}

besides that, im +1

--
.-. --- .--. ..-
R  o  p  u


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott Seely  
View profile  
 More options Nov 14 2008, 11:31 am
From: Scott Seely <sse...@myspace.com>
Date: Fri, 14 Nov 2008 08:31:01 -0800 (PST)
Local: Fri, Nov 14 2008 11:31 am
Subject: Re: Proposal: Messaging changes
Several edits have been made to the thread. By my count, the only post
mod votes are from Paul Lindner (he's editing) and Ropu.

+2

(please correct me if I made a mistake)

On Nov 13, 7:19 pm, Ropu <rovagn...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ropu  
View profile  
 More options Nov 14 2008, 11:38 am
From: Ropu <rovagn...@gmail.com>
Date: Fri, 14 Nov 2008 23:38:57 +0700
Local: Fri, Nov 14 2008 11:38 am
Subject: Re: [opensocial-and-gadgets-spec] Re: Proposal: Messaging changes

bobby?

--
.-. --- .--. ..-
R  o  p  u

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
bobby  
View profile  
 More options Nov 17 2008, 9:05 am
From: bobby <bbiss...@gmail.com>
Date: Mon, 17 Nov 2008 06:05:38 -0800 (PST)
Local: Mon, Nov 17 2008 9:05 am
Subject: Re: Proposal: Messaging changes

> bobby?

I'd like to change @all to @inbox (or anything else that couldn't be
mistaken for implying "every message"), but if others like the "all"
then it's just a string and doesn't materially change the proposal.

So I'm +1

Cheers,
Bobby


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Lindner  
View profile  
 More options Nov 17 2008, 3:57 pm
From: Paul Lindner <plind...@hi5.com>
Date: Mon, 17 Nov 2008 12:57:32 -0800
Local: Mon, Nov 17 2008 3:57 pm
Subject: Re: [opensocial-and-gadgets-spec] Re: Proposal: Messaging changes
Okay, @inbox it is.

Suggest wording is:

   @inbox contains all messages inbound to user
   @outbox contains all messages sent by the user

Posting to @outbox appends/sends new messages.

Spec change updated here:

http://wiki.opensocial.org/index.php?title=Messaging_API_Changes

On Nov 17, 2008, at 6:05 AM, bobby wrote:

>> bobby?

> I'd like to change @all to @inbox (or anything else that couldn't be
> mistaken for implying "every message"), but if others like the "all"
> then it's just a string and doesn't materially change the proposal.

> So I'm +1

> Cheers,
> Bobby

Paul Lindner
plind...@hi5.com

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Lindner  
View profile  
 More options Nov 20 2008, 5:41 pm
From: Paul Lindner <plind...@hi5.com>
Date: Thu, 20 Nov 2008 14:41:38 -0800
Local: Thurs, Nov 20 2008 5:41 pm
Subject: Re: [opensocial-and-gadgets-spec] Re: Proposal: Messaging changes
This is a difficult issue depending on how pure you want your REST  
semantics.

Submission through an @outbox endpoint results in multiple entities  
being created, which means that you can't return the location of the  
newly created entity in a Location: header or as a the actual  
representation of the item in the post response.

Also some systems might queue up requests and immediately return a  
success code, which complicates matters.

I think we need to give some thought to how this might work, because  
I'd like to see the same response format used for activity creation as  
well.

So for 0.9 I'd propose simple 201/403 responses for POST requests, and  
try to come up with a standardized way to respond to write requests.

On Nov 13, 2008, at 7:19 PM, Ropu wrote:

Paul Lindner
plind...@hi5.com

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Lindner  
View profile  
 More options Nov 20 2008, 5:43 pm
From: Paul Lindner <plind...@hi5.com>
Date: Thu, 20 Nov 2008 14:43:28 -0800
Local: Thurs, Nov 20 2008 5:43 pm
Subject: Re: [opensocial-and-gadgets-spec] Re: Proposal: Messaging changes
BTW, specification on the wiki is updated for @inbox/@outbox naming..

On Nov 13, 2008, at 1:16 PM, bobby wrote:

Paul Lindner
plind...@hi5.com

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott Seely  
View profile  
 More options Nov 20 2008, 5:59 pm
From: Scott Seely <sSe...@myspace.com>
Date: Thu, 20 Nov 2008 14:59:17 -0800
Local: Thurs, Nov 20 2008 5:59 pm
Subject: RE: [opensocial-and-gadgets-spec] Re: Proposal: Messaging changes
Another option would be to return the URL for the sent message in
/messages/{guid}/[moral equivalent of sent items]

And each failure would come back to the sender as separate messages.

This is how e-mail systems work today. Is there a reason this doesn't
work for OpenSocial?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Lindner  
View profile  
 More options Nov 20 2008, 8:10 pm
From: Paul Lindner <plind...@hi5.com>
Date: Thu, 20 Nov 2008 17:10:52 -0800
Local: Thurs, Nov 20 2008 8:10 pm
Subject: Re: [opensocial-and-gadgets-spec] Re: Proposal: Messaging changes
I think we should spend our time working out an extensible way to  
return error responses.  The OpenSocial spec covers collections in  
exacting detail, but relegates error responses to section 13 HTTP  
response codes...

The JSON-RPC protocol is much better in this respect as we can attach  
error metadata with the response.  Something like this:

   "error" : {
      "code" : "409",
      "message" : "Delivery Error",
      "data" : {
          "deliveryStatus" : { "id1" : "200", "id2": "403", "id3":  
"500"}
      }
    }

is fairly straightforward.  A similar response format for REST would  
be very useful for solving these issues.

So let's get our error responses sorted out, then add the appropriate  
error response formats for each request type.

On Nov 20, 2008, at 2:59 PM, Scott Seely wrote:

Paul Lindner
plind...@hi5.com

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott Seely  
View profile  
 More options Nov 21 2008, 9:06 am
From: Scott Seely <sSe...@myspace.com>
Date: Fri, 21 Nov 2008 06:06:43 -0800
Local: Fri, Nov 21 2008 9:06 am
Subject: RE: [opensocial-and-gadgets-spec] Re: Proposal: Messaging changes
In the case of sending a message, it will be sufficient to queue the
message to the e-mail system (or equivalent) and then return. I don't
think we should assume that containers will block on sending a message
to a large group.

Consider the case of sending a message to a group of 250 users. To make
sure that the site performs well, the messaging system will submit the
request to send to that 250 messages and then return a response. The
requests will then be processed through some mechanism that accepts a
throttle so that burstiness doesn't cause the system to fall apart. In
this case, returning status on all 250 messages isn't just hard, it's
impossible (ok, it is at least untenable). Delivery error would have to
be sent to the user later, probably as a message from the system to the
user about the errors.

That said, v.NEXT should get some treatment on error handling. Paul-- do
you want to kick off that thread?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Lindner  
View profile  
 More options Dec 2 2008, 3:54 pm
From: Paul Lindner <plind...@hi5.com>
Date: Tue, 2 Dec 2008 12:54:37 -0800
Local: Tues, Dec 2 2008 3:54 pm
Subject: Re: [opensocial-and-gadgets-spec] Re: Proposal: Messaging changes
I certainly can get something going for error handling for v.NEXT.

I'd like to get some feedback for some potential small tweaks to the  
Mesaging API.  At hi5 we've put the draft protocol into production and  
are working with one partner who is developing against it.

Here's the smallish set of changes:

* Add new messaging types -- FRIEND_REQUEST, MEDIA_COMMENT
* Add support for media comments at the message collection and message  
level.
   ** For message collections and messages allow MEDIAITEM fields as a  
singular ID that links with the Media/Albums proposal.
   ** Also recommend that url type 'photo' is a link to an originating  
photo, and type 'thumbnail' a link to the thumbnail.

* Add descriptive text stating that:
    -- While each container can support any number of message  
collections each should support retrieving specific types of messages  
from the @inbox and @outbox message collections.  This will allow  
application authors to support the differing message types in a  
standard way.  To get specific messages filtered by type use the  
collection options as follows:

   filterBy=type filterOp=equals filterValue={publicMessage|
privateMessage|notification|...}

* Question -- should we modify the JS API  for newMessage(BODY,  
OPT_PARAMS) to newMessage(PARAMS) ?

* Question -- right now we have a standard urls parameter for People  
that I've adopted for messages and message collections.  This maps  
quite cleanly to Atom <link rel="xxx" href="yy"/>  It's missing the  
type attribute, which could specify the mime type.  For message  
collections we want to support a the equivalent of

    rel="alternate" type="application/vnd.xhtml+xml" href="url..."

FYI -- If anyone wants to see this API in action you can check out the  
following unauthenticated URLs for hi5's CTO:

List of message collections:

   http://api.hi5.com/social/rest/messages/1000?format=xml

PhotoComments -- aggregate, with a count limit

   http://api.hi5.com/social/rest/messages/1000/photoComments?count=2&fo...

Profile Comments:

   http://api.hi5.com/social/rest/messages/1000/profile?format=xml

Profile Comments, specific Ids:

   http://api.hi5.com/social/rest/messages/1000/profile/3700597152,34231...

Profile Comments, with updatedSince parameter:

   http://api.hi5.com/social/rest/messages/1000/profile?format=xml&updat...

If you grab a security token from Firebug you can add that to the URL  
and request private messages like this:

   http://api.hi5.com/social/rest/messages/XXXXX/inbox?st=YYYYYYYY

where XXXXX is the hi5 uid and YYYYYY is the security token

We also support notification, and a bulk inbox.  Soon we'll have  
friend requests and other features in this test bed.

Would appreciate further comments and +1s if people think this is the  
correct way to go.

On Nov 21, 2008, at 6:06 AM, Scott Seely wrote:

Paul Lindner
plind...@hi5.com

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Messages 1 - 25 of 36   Newer >
« Back to Discussions « Newer topic     Older topic »