· 9 years ago · Sep 11, 2016, 04:40 PM
1myApp.controller('homeCtrl',['$scope','$http',function($scope,$http){
2
3 console.log('App Start')
4 var secretKey = {
5 consumer_key: 'ck_bc51576e596ae1fbf535f8a3d60b281541407006',
6 consumer_secret: 'cs_44beee13f3eef60a9d5fb66142fc40a3ba1d2989'
7
8 }
9
10 $http({ method: 'GET',
11 url:'https://www.ng-il.com/shop/wp-json/wc/v1/products',
12 params: secretKey
13 }).then(function(res){
14 console.log(res)
15 })
16
17}]);