New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tumblrrr

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tumblrrr

A wrapper for Tumblr's API

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Tumblrrr

Usage

The basics is passing the blog hostname as first argument and for methods requiring api_key, a second argument using your application's OAuth Consumer Key. For OAuth authorization you will also have to set the token_secret, token_access_key and token_access_secret.

You can get more info reading the docs.

var tumblr = require('tumblr'),
    staff = tumblr('staff');

/*
    staff = tumblr('staff', 'key', 'secret', 'access_key', 'access_secret');

    or

    staff = tumblr({
      hostname : 'staff',
      key : 'key',
      secret : 'secret',
      access_key : 'access_key',
      access_secret : 'access_secret'
    });
*/

Demo

var tumblr = require('tumblr'),
    staff = tumblr('staff');

staff.avatar(function(json) {
  console.log(json);
});

Tips

After setting the token_key and the token_secret you can call the instance variable OAuthAuthorizationURL which will return the url for connecting the Tumblr account with the application.

After accepting the connection, it will redirect for your application's callback URL with an oauth_verifier as parameter and with that you can set the access variables to your instance using setOAuthVerifier.

var tumblr = require('tumblr'),
    staff = tumblr('staff', 'key', 'secret');

staff.setOAuthVerifier('verifier');

// then you will have
console.log(staff.access_key, staff.access_secret);

License

See LICENSE

Keywords

FAQs

Package last updated on 22 Nov 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc