-
Notifications
You must be signed in to change notification settings - Fork 0
/
Index2.html
50 lines (35 loc) · 1.17 KB
/
Index2.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
<!DOCTYPE html>
<html>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<body>
<div ng-app="myApp" ng-controller="customersCtrl">
< <ul>
<li ng-repeat="x in myData.records">
<p>https://app.webinarjam.com/api/v2/register?webinar_id=462ba6387e&api_key=5692ae3ed0c7886ad784c2d2e33001ac1c8837b89fae83cf4019020951697bf3&schedule=0&name={{ x.Name + '& email=' + x.Email }} </p>
</li>
</ul>
</div>
<script>
var app = angular.module('myApp', []);
app.controller('customersCtrl', function($scope, $http) {
$scope.myData = [];
$http.get("json.json").success(function (response) {
$scope.myData = response;
//console.log(response.records[2].Name);
angular.forEach(response.records, function(value, key) {
//console.log(key, value);
$http.post("https://app.webinarjam.com/api/v2/register",{
"webinar_id" :"8b51d4be86",
"api_key" : "5692ae3ed0c7886ad784c2d2e33001ac1c8837b89fae83cf4019020951697bf3",
"schedule" : "0",
"name" : value.Name,
"email" : value.Email
}).success(function (response) {
})
//console.log(value.Name);
});
});
});
</script>
</body>
</html>