-
Notifications
You must be signed in to change notification settings - Fork 1
/
call.html
85 lines (75 loc) · 2.92 KB
/
call.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<html>
<head>
<script type="text/javascript" src="https://system.na1.netsuite.com/core/media/media.nl?id=9985&c=TSTDRV1275821&h=5036f344c5a30de930c5&_xt=.js"></script>
<script>
var url = '/app/site/hosting/restlet.nl?script=941&deploy=1';
$(document).ready(function() {
$.ajax({
url: 'https://rest.na1.netsuite.com/app/site/hosting/restlet.nl?script=941&deploy=1&k=1',
method: 'GET'
//,
//headers: {
// 'Accept': "*/*",
// 'Accept-Language': 'en-us',
// 'Authorization': 'NLAuth nlauth_account=TSTDRV1275821, [email protected], nlauth_signature=password, nlauth_role=14'
//}
}).then(function(data) {
console.log('ok');
});
});
//var hd = {
// 'Accept': "*/*",
// 'Content-Type': 'application/json',
// 'Authorization': 'NLAuth nlauth_account=TSTDRV1275821, [email protected], nlauth_signature=password, nlauth_role=14'
//};
// $('#container').load('http://google.com'); // SERIOUSLY!
//$.ajax({
// url: 'https://rest.na1.netsuite.com/app/site/hosting/restlet.nl?script=941&deploy=1&k=1',
// method: 'GET',
// data: hd,
// success: function(res) {
// var headline = $(res.responseText).find('a.tsh').text();
// alert(headline);
// }
//});
// $.ajax({
// url: 'https://rest.na1.netsuite.com/app/site/hosting/restlet.nl?script=941&deploy=1',
// dataType: "jsonp",
// headers: {
// 'Accept': "*/*",
// 'Content-Type': 'application/json',
// 'Authorization': 'NLAuth nlauth_account=TSTDRV1275821, [email protected], nlauth_signature=password, nlauth_role=14'
// },
// success: function (data) {
// console.log(data)
// alert(data);
// }
//});
//$(document).ready(function() {
// $.ajax({
// type: "GET",
// contentType: "application/json",
// dataType: "json",
// url: url,
// beforeSend: function (xhr) {
// //var base64 = Base64.encode(username + ":" + password);
// xhr.setRequestHeader("Accept", "*/*");
// xhr.setRequestHeader("Content-Type", "application/json");
// xhr.setRequestHeader("Authorization", "NLAuth nlauth_account=TSTDRV1275821, [email protected], nlauth_signature=password, nlauth_role=14");
// xhr.withCredentials = true;
// },
// error: function (data) {
// alert("error");
// },
// success: function (data) {
// alert("success");
// }
// });
//});
</script>
</head>
<body>
<div id="container">
</div>
</body>
</html>