Hi,

I am working on a REST service which needs authentication to access the 
rest API, I would like to know how to make a Rest API call which needs 
authentication to access it
I have searched and couldn't find how to make basic authorization in the 
$http header.

Example code:
 $http.get('https://api.github.com/events')
            $scope.jsonData = response;
        });

I would like to know how to include basic authorization credentials in the 
$http call
Tried header params
tried btoa 

Nothing seems to be working for me.

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to