Skip to content

Instantly share code, notes, and snippets.

@benbahrenburg
Created December 10, 2013 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benbahrenburg/7891441 to your computer and use it in GitHub Desktop.
Save benbahrenburg/7891441 to your computer and use it in GitHub Desktop.
TiDev.io Safari Reading List Post
var readinglist = require('bencoding.reading.list');
var result = readinglist.add({
url:"http://bbc.com",
title:"BBC News",
previewText:"An Example"
});
if(result.success){
alert("Successfully added to your reading list");
}else{
alert("Something went wrong " + result.message);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment