Created
December 10, 2013 14:29
-
-
Save benbahrenburg/7891441 to your computer and use it in GitHub Desktop.
TiDev.io Safari Reading List Post
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var readinglist = require('bencoding.reading.list'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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