This file contains hidden or 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
| #!/usr/bin/perl | |
| use 5.006; | |
| use SOAP::Lite 'trace', 'debug' ; | |
| # Sample code to create a new email test using Litmus' Reseller Api | |
| # This sample uses SOAP:Lite, available at: http://www.soaplite.com/ | |
| $api_key = "api-key"; |
This file contains hidden or 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
| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" | |
| "http://www.w3.org/TR/html4/strict.dtd"> | |
| <html lang="en"> | |
| <head> | |
| <title>Option A</title> | |
| <style type="text/css"> | |
| .button { | |
| -webkit-box-shadow:rgba(0,0,0,0.2) 0 1px 0 0; | |
| -moz-box-shadow:rgba(0,0,0,0.2) 0 1px 0 0; |
This file contains hidden or 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
| <?php | |
| /* Here is some generic error handling code, not related to actual sample */ | |
| set_error_handler('my_error_handler'); | |
| set_exception_handler('my_exception_handler'); | |
| function my_exception_handler($e) { | |
| exit('Houston! We have a problem: <br />'.$e); | |
| } |
This file contains hidden or 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
| require 'open-uri' | |
| require 'nokogiri' | |
| base_url = "http://srr.org" | |
| doc = Nokogiri::HTML(open("http://www.srr.org/events/thursday-night-run/index.php")) | |
| divisions = ["Men's Open", "Women's Open", "Men's Masters", "Women's Masters"] | |
| results = [] | |
| doc.xpath('//a[starts-with(@href, "/events/thursday-night-run/")]').each do |node| | |
| href = node['href'] |
This file contains hidden or 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
| require 'open-uri' | |
| require 'nokogiri' | |
| # This is the original parsing script that inspired this app. | |
| # Left here for reference and debug/troubleshooting. | |
| # | |
| def crawl(doc, base_url, name_to_match) | |
| base_url = "http://srr.org" | |
| results = [] |
This file contains hidden or 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
| <?php | |
| /* Here is some generic error handling code, not related to actual sample */ | |
| set_error_handler('my_error_handler'); | |
| set_exception_handler('my_exception_handler'); | |
| function my_exception_handler($e) { | |
| exit('Houston! We have a problem: <br />'.$e); | |
| } |
This file contains hidden or 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
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> | |
| <head> | |
| <meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
| <title></title> | |
| </head> | |
| <body> | |
| <div> |
This file contains hidden or 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
| #!/usr/bin/perl | |
| use 5.006; | |
| use SOAP::Lite 'trace', 'debug' ; | |
| # Sample code to create a new email test using Litmus' Reseller Api | |
| # This sample uses SOAP:Lite, available at: http://www.soaplite.com/ | |
| $api_key = "api-key"; |
This file contains hidden or 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
| import suds | |
| from suds import WebFault | |
| from suds.client import Client | |
| from suds.xsd.sxbasic import Import | |
| import logging | |
| logging.basicConfig(level=logging.INFO) | |
| logging.getLogger('suds.client').setLevel(logging.DEBUG) | |
| # Sample code to create a new email test using Litmus' Reseller Api |
NewerOlder