Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.