-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path:api:user-get.html
More file actions
43 lines (35 loc) · 1.61 KB
/
:api:user-get.html
File metadata and controls
43 lines (35 loc) · 1.61 KB
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
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- saved from url=(0052)http://14.63.171.66:8081/tleafstructure/user/signup? -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>User Signup Page</title>
<script src="http://code.jquery.com/jquery-2.1.0.min.js"></script>
<script type="text/javascript">
function push() {
console.log(this.email1);
var url = "http://localhost:8080/api/user";
$.ajax({
type : 'GET',
beforeSend: function ( request )
{
request.setRequestHeader( "X-Tleaf-User-Id", "344bc889c8bb44dd6e4bb845d40007b9" );
request.setRequestHeader( "X-Tleaf-Application-Id", "6b22f647ef8f2f3278a1322d8b000f81" );
request.setRequestHeader( "X-Tleaf-Access-Token", "6b22f647ef8f2f3278a1322d8b000210" );
},
url : url,
async : true,
contentType : 'application/json',
success : function(response) {
console.log(response);
alert(response);
},
error : function(xhr) {
alert('Error! Status = ' + xhr.status + " Message = "
+ xhr.statusText);
}
});
}
</script>
</head>
<body>
<button onClick="javascript:push()"></button>
</body></html>