Support » Plugins » Hacks » Authentication: Moving data back and forth btwn WP & External Service

  • I hope to write a plugin that will enable me to use Mozilla’s new Popcornmaker media authoring tool from within WordPress ( ).

    Popcornmaker is a GUI layer on top of an underlying javascript library; it saves somewhat ocmplex media projects as JSON objects. What I’m planning to do is save that JSON object in a custom field that will be associated with a custom post type. When you create a new multimedia post, there will be some way to get out to an external Popcornmaker instance against which WordPress will first authenticate, and into which any existing JSON data will be loaded. When Popcornmaker saves a project, the resultant JSON object will then be saved into the post, and a template will take care of the (somewhat complex) display when the post is viewed.

    To do this I have to figure out a couple of things:

    (1) How to integrate the popcornmaker editor visually into the WP editor — I don’t have any idea how to do that yet but I’m hoping it won’t be too hard. I’m not worrying about that JUST yet.

    (2) how to send wordpress authentication data to Popcorn’s own authentication layer — I guess I can just get the user info with get_currentuserinfo(), and figure out what else Popcorn itself will need.
    (3) How to get the Popcorn data back into the wordpress post when I’m done. This is what I’m most worried about right now! I’m hoping it’s not so hard to get the authentication data to popcornmaker, but I don’t know how to get data BACK into wordpress.

    Has anyone done anything like this before — especially, grab external data from another site and feed it automatically into a meta field?

    Thanks so much for your help! –Matt

  • The topic ‘Authentication: Moving data back and forth btwn WP & External Service’ is closed to new replies.