Semantics3 API with AngularJS Authentication

I am in the process of learning AngularJS. I am creating a mobile application using bootstrap 3.1.0.

Mostly I want to use the Semantics3 API and display products in a list. How can I do this when the Semantics3 API requires authentication through OAuth. I already have my keyAPI and secret, but I don’t know how to successfully execute the API call from my Angular controller.

At the moment, my code looks like this:

savvyShop.controller('ProductsCtrl', function($scope) {
    $scope.apiResult = $http.get('https://api.semantics3.com/v1/products?q={"cat_id":13658,"brand":"Toshiba","model":"Satellite"}')
});
+3
source share
1 answer

, ( AJAX). , - , Javascript . , API JSONP, . , 3 .

script, - Semantics3. , URL-, . , $http.get AngularJS .

+4

All Articles