Skip to content

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pinboard Node API

Node npm for pinboard.in

This is just a partial implementation of the api. The rest of the API will be wired up in the future.

Getting Started

Install the module with: npm install pinboard-api

var pin = require('pinboard-api');

Get Access Token

var required = {user: "username", password: "password"};

pin.getAcessToken( required, function(data) {
	console.log( data )
	//returns access_token
});

Get Update

var required = {user: "username", token: "access_token"};

pin.getLastupdate( required, function(data) {
	console.log( data )
	//returns time of last update
});

More info on update method

Add Bookmark

var required = {
	user: "username",
	token: "access_token",
	url: "http://www.example.com",
	title: "Title of page"
};

pin.addBookmark( required, options, function(data) {
	console.log( data );
	//returns done
});

'options' is an optional parameter and needs to be an object using the parameters of the pinboard.in add method

options = {
	tags: "tag1,tag2,tag3",
	toread: "yes",
	....
}

Delete Bookmark

var required = {user: "username", token: "access_token", url: "url"};

pin.deleteBookmark( required, function(data) {
	console.log( data )
	//returns done
});

More info on delete method

Get Recent Post

var required = {user: "username", token: "access_token"};

pin.getRecent( required, options, function(data) {
	console.log( data );
	//returns recent post
});

'options' is an optional parameter and needs to be an object using the parameters of the pinboard.in post_recent method

options = {
	tag: "tag1,tag2,tag3",
	count: 5,
	....
}

Get All Post

var required = {user: "username", token: "access_token"};

pin.getAll( required, options, function(data) {
	console.log( data );
	//returns all post
});

'options' is an optional parameter and needs to be an object using the parameters of the pinboard.in post_all method

options = {
	tag: "tag1,tag2,tag3",
	count: 5
}

License

Copyright (c) 2014 Tobias Wright. Licensed under the MIT license.

About

Node npm for pinboard.in

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages