Monday, November 08, 2010 at 12:04 AM.
system.verbs.builtins.opmlEditor.prefs.validateTwitterLogin
on validateTwitterLogin () {
<<Changes
<<8/6/08; 7:50:26 AM by DW
<<Created.
local (pta = html.getpagetableaddress ());
if pta^.method == "POST" {
if twitter.authenticate (user.twitter.prefs.username, user.twitter.prefs.password) {
s = "<font color=\"green\">The username/password combination checks out with Twitter.</font>"}
else {
s = "<font color=\"red\">Twitter rejected the username/password combination.</font>"};
return (s)}
else {
return ("")}}
This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.