appdotnet / api-spec

App.net API Documentation is on the web at https://developers.app.net. Source for these docs is in the new-docs branch here. Please use the issue tracker and submit pull requests! Help us build the real-time social service where users and developers come first, not advertisers.

Home Page:https://developers.app.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Extensible interactions

cgiffard opened this issue · comments

I'm beginning work on a new, non-microblogging app that relies on the ADN File API.

I'd love to record custom interactions against files - views, or plays, for instance - and be able to save those back into the user interactions stream. While yes, I could record the plays myself, no other apps would get the benefit of that. I feel like creating custom interactions is the best way of doing this, long term.

{
    "action": "play",
    "event_date": "2012-07-16T17:23:34Z",
    "objects": [
        { ... (file object) ... }
    ],
    "users": [
        (list of users who played file)
    ]
}

Here's a very rough mockup of how the feature could display in Wedge:

Example of play interaction in wedge

To be clear, I'm not asking for "play" and "view" to be added as interactions. I'd like a way to register new interactions, and use them in a cross-client manner. I agree this is a difficult problem to solve, but I think it's going to be more important in future.

+1