Javascript API Documentation


For usage in other langauges, see our URL API.


Usage

// Install via npm
npm install --save thum.io

// For use in Node.js or in browser with Webpack or Browserify
var thum = require('thum.io');
var thumURL = thum.getThumURL({
  url: 'https://www.facebook.com',
  width: 1200,
  auth: {
    type: 'md5',
    secret: process.env.THUM_IO_SECRET,
    keyId: 500,
  },
});


GitHub Repo

Visit our JS API GitHub respository for a full list of options or to open an issue.



For any questions or feedback regarding the JS API, email support@thum.io.