-
Notifications
You must be signed in to change notification settings - Fork 4
/
apitest.html
33 lines (32 loc) · 1.12 KB
/
apitest.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<html>
<head>
<title>API Integration Sample</title>
<script type="text/javascript" src="https://monetizelead.com/client/demo/integration/choice.integration-min.js"></script>
<script>
function api_callback(response)
{
$('#message').html("status:" + response.status + "<br/>" + "message: " + response.message);
console.log(response);
}
</script>
<style type="text/css">
input[type='text']{
width:50%;
}
span{width:200px;display:inline-block;}
</style>
</head>
<body>
<form>
<input data-api='apiKey' type="hidden" name="apiKey" value="ab3df-34fcf-34fab-9bc23-44af8"/>
<p><span>Name:</span><input type="text" data-api='name' name="name"/></p>
<p><span>Email:</span><input type="text" data-api='email' name="email"/></p>
<p><span>Phone:</span><input type="text" data-api='phone' name="phone"/></p>
<p><span>ZipCode:</span><input type="text" data-api='zipcode' name="zipcode"/></p>
<input type="hidden" data-api="leadTypes" value="test"/>
<input type="button" id="btn" data-api='lead-gen' value="Invoke API"/>
<br/>
<span id="message"></span>
</form>
</body>
</html>