Addition to hi5-lifecycle: invitePingUrl

One common request we've gotten was to return more information about invites to developers. To do this, we've implemented a new lifecycle event for the hi5-lifecycle feature called invitePingUrl. Here's sample usage along with the two previous events, install and remove. This should be added into ModulePrefs:

<Optional feature="hi5-lifecycle">
    <Param name="installPingUrl" value="http://yourserver/handleInstall"/>
    <Param name="removePingUrl" value="http://yourserver/handleRemove"/>
    <Param name="invitePingUrl" value="http://yourserver/handleInvite"/>
</Optional>

This is a good time for a refresher on the existing events, so here's what to expect from each event:

NAME                   FIRES                METHOD       PARAMS
installPingUrl        After install         POST             uid = userid of installing user
removePingUrl      After uninstall     POST             uid = userid of uninstalling user
invitePingUrl         After invite          POST            uid = userid of inviter, sent_ids = userids successfully sent to

One other note -- these pings are not currently signed. This has been requested by several developers and we do have a feature request open for this, although we don't have an ETA on that being completed at the moment.

Hope you find this useful.

2 Comments

Why not use OAuth for signing the pings?

This is on our roadmap. We are close to announcing OAuth support and after that can enable this as well.

Leave a comment

Recent Entries

  • OpenSocial 0.8 Moved To Live Environment

    We have now finished the migration of the Platform in production to OpenSocial v0.8. We'd like to thank the developers who helped test 0.8 while...

  • Translation Service for OpenSocial Applications on hi5

    Reaching a Wider Audience: Community-based Translations for Applications Hi5 has a large audience in Spanish-speaking markets, Thailand, Romania, Portugal, and many other countries. How much...

  • OpenSocial 0.8 In Beta On hi5

    Following close behind the release of the OpenSocial 0.8 specification two months ago, we have been hard at work implementing it, and are happy to...

  • Statistics API Available on Sandbox

    The Statistics API that we announced two weeks ago is available on sandbox. Please use the endpoints described in the earlier post, prefixed with http://sandbox.hi5.com/rest....

  • hi5 Providing Library For Templates

    The hi5.template library is a browser side, Javascript library which enables you to fuse Javascript data and logic into your HTML. It simplifies writing...

Close