Final Webhook Management API Changes

- Updated Samples
- Additional Functional Tests
- Enabled Travis to do functional tests (with allowed failures) on each build
This commit is contained in:
japatel
2014-12-15 13:52:00 -06:00
parent fb9584ba66
commit d24a4afdb6
21 changed files with 439 additions and 38 deletions

View File

@@ -81,13 +81,14 @@
color: #FFF;
text-decoration: none;
}
/*
.string { color: green; }
.string { color: #428bca; }
.number { color: darkorange; }
.boolean { color: blue; }
.null { color: magenta; }
.key { color: red; }
*/
.key { color: slategray; font-weight: bold; }
.id { color: red; }
</style>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
@@ -103,16 +104,16 @@
$("#accordion .panel-collapse:last").collapse('toggle');
$(document.body).append('<footer class="footer"> <div class="container"> <div class="footer-div"> <ul class="footer-links"> <li> <a href="https://github.com/paypal/PayPal-PHP-SDK" target="_blank"><i class="fa fa-github"></i> Github</a></li><li> <a href="https://developer.paypal.com/webapps/developer/docs/api/" target="_blank"><i class="fa fa-book"></i> REST API Reference</a> </li><li> <a href="https://github.com/paypal/PayPal-PHP-SDK/issues" target="_blank"><i class="fa fa-exclamation-triangle"></i> Report Issues </a> </li></ul> </div></div></footer>');
/*
$(".prettyprint").each(function() {
$(this).html(syntaxHighlight($(this).html()));
});
*/
});
/* http://stackoverflow.com/questions/4810841/how-can-i-pretty-print-json-using-javascript
/* http://stackoverflow.com/questions/4810841/how-can-i-pretty-print-json-using-javascript */
function syntaxHighlight(json) {
json = json.replace(/&/g, '&').replace(/</g, '&lt;').replace(/>/g, '&gt;');
return json.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g, function (match) {
@@ -120,6 +121,10 @@
if (/^"/.test(match)) {
if (/:$/.test(match)) {
cls = 'key';
if (match == '"id":') {
console.log("Matched ID" + match);
cls = 'key id';
}
} else {
cls = 'string';
}
@@ -131,7 +136,6 @@
return '<span class="' + cls + '">' + match + '</span>';
});
}
*/
</script>
</head>
<body>