Altenburger Benefizball
Passwort:
$(document).ready(function() { $('#pdcl-button').on('click', function() { var onComplete = function(response) { if(response.client_url) { // navigate to given client URL window.location.href = response.client_url; } else if(response.error) { // show error or else $('#pdcl-response').text(response.error.message); } };
$.ajax( { url: 'https://www.picdrop.de/api/alpha/clientlogin', type: 'POST', data: JSON.stringify({'domain_uuid':'{{ecd8a6f52dfaded9be07a6810848fbc2}}', 'client_key':$('#pdcl-input').val()}), contentType: 'text/plain; charset=UTF-8', dataType: 'json', success: onComplete } ); }); });