Connect with ThingLink

We launched our developer program quietly a few months ago. The Thinglink SDK, as you could call it, allows you to create your own Rich Media Tags simply and make them available to all Thinglink users.

Today we’re doing a couple of major improvements to our developer offering. First, we’re allowing the tags you create to be sticky, i.e. the tags can have a close button and they won’t go away when the user moves the mouse out of the tag. This is especially useful if you developed a video player or a similar application.

Example

<script type=”text/javascript”

src=”//www.thinglink.com/jse/thinglink.js”></script>

<script>

thinglink.setSticky(true);

</script>

 

Check out the deeper documentation at http://www.thinglink.com/help/Thinglink%20Javascript%20Library

Second, we released a Developer Preview of Thinglink Connect. Thinglink Connect is a simple library which makes it very easy to add Thinglink to any platform. It uses the industry standard OAuth2 –specification (or at least a very close approximation of revision -16 of it.)

 

Here’s an example how you would use it e.g. with JQuery 

<script src=”//www.thinglink.com/jse/tlconnect.js”></script>

<script>

TLC.init({

client:'[YOUR CLIENT ID]’,

user: ‘[ANY USER ID]’,

isOwner: true,

redirectUri: ‘http://mysite.com/thinglink/redirecturi.html’

});

</script>

<div class=”thinglinkConnect”></div>

 

First, we load the tlconnect.js script. In this case, we do it synchronously. Second, we initialize the TLC object which is created by the tlconnect.js script. We put in the client id (which you can get from your Developer page on www.thinglink.com/developer) , an user ID (which is an opaque string from you), the isOwner parameter specifying that yes, the user currently logged in on your site is also the person responsible for editing this site. Then, finally the OAuth2 –specified redirect URI.

Third, we add just a simple DIV which is replaced by TLC.init() with a nice little “Thinglink Connect” icon if the user isn’t yet logged in.

Check out the full documentation at http://www.thinglink.com/help/Developer. There are a lot more options, functions and tweakeroos available to ease your integration.  Please remember that this is a developer preview, so things might still be changing around a bit. If you want to influence the library and the API, now’s the time. We welcome comments at http://support.thinglink.com.

Oh yeah, and I almost forgot: we now support oEmbed on all of our image pages. It’s a quick hack, but let us know if you’re finding it useful. This should make it far easier to embed Thinglinked images if your platform supports the oEmbed standard.

ThingLink CTO Janne Jalkanen, @ecyrd

 

Share This Post
Related Posts
ThingLink Unplugged to Extend Classroom Walls
Thinglink at the Stockholm Furniture Fair
How to Find & Cite 360 Images with Kathy Schrock