/* * soapui.js - https://github.com/nmasse-itix/soapui * version: 0.1 * * jQuery plugin to handle the "try it out" feature for SOAP Services * * License MIT * ----------------- * The MIT License (MIT) * * Copyright (c) 2016 Nicolas MASSE * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. * * Information * ----------- * * For information about how to use soapui, authors, changelog, the latest version, etc... * Visit: https://github.com/nmasse-itix/soapui */ (function(factory) { if(typeof module === 'object' && typeof module.exports === 'object') { module.exports = factory(require('jquery')); } else if (jQuery) { factory(jQuery); } else { console.error('no jQuery found!') } })(function($) { function threescale_authentication(select_node, soap_options) { $.ajax("/api_docs/account_data.json", { statusCode: { 200: function (data, textStatus, xhr) { var user_keys = data.results.user_keys; for (var i = 0; i < user_keys.length; i++) { var name = user_keys[i].name; var value = user_keys[i].value; select_node.append($("