Cassie,
Thanks for the reply. I dug around a little and it seems like this
would be implemented in the 'createActivity' function of an
ActivitiesService. The problem I'm running into while trying to
implement something is that I don't know how to get message bundles or
substitutions into an ActivitiesService (PHP). I realize they are all
part of the Gadget object, but it doesn't seem like the gadget that
the request is from is accessible. Any ideas on where to start with
this? Thanks,
Brandon
On Mon, Jul 28, 2008 at 8:04 PM, Cassie <[EMAIL PROTECTED]> wrote:
> You've got the whole idea and syntax right - we just don't support this in
> Shindig yet.
> We would like to though - so feel free to send us a patch for implementing
> it!
>
> - Cassie
>
>
> On Fri, Jul 25, 2008 at 10:07 AM, Brandon Peters
> <[EMAIL PROTECTED]>wrote:
>
>> Hello,
>> I'm writing an Opensocial 0.8 app and I'm to the point now where I'm
>> trying to implement activity streams. This all seems to be going well,
>> and my activity streams get sent to the container, but I'm running
>> into a problem with the TITLE_ID activity field. From reading the
>> documentation, it seems to me that the TITLE_ID field is the name of a
>> <msg> element which I could use for substitution instead of specifying
>> a TITLE field, however, when I try creating an activity using the
>> TITLE_ID, the text never gets substituted. I'm not sure if it is a
>> problem with Shindig, or if I'm misunderstanding the purpose of
>> TITLE_ID, or that I'm simplying doing something wrong. I'm using
>> inline message bundles if that matters. Here is the section of my code
>> that applies to this:
>>
>>
>> <Locale>
>> <messagebundle>
>> <msg name="ADD_BOOKMARK">
>> ${Owner} has bookmarked an article.
>> </msg>
>> </messagebundle>
>> </Locale>
>>
>> ....
>>
>> var template_params = {
>> 'Owner': owner
>> };
>>
>> var params = {};
>> params[opensocial.Activity.Field.TITLE_ID] = 'ADD_BOOKMARK';
>> params[opensocial.Activity.Field.TEMPLATE_PARAMS] = template_params;
>>
>> var activity = opensocial.newActivity(params);
>> opensocial.requestCreateActivity(activity,
>> opensocial.CreateActivityPriority.HIGH, function() {});
>>
>> Any ideas?
>> Thanks,
>> Brandon
>>
>> --
>> Brandon Peters
>>
>
--
Brandon Peters