mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 12:45:52 +03:00
[GH-ISSUE #292] Getting Error when hit the uber api in AngularJS #172
Labels
No labels
bug
cocoapod
duplicate
enhancement
feature-request
help wanted
help wanted
invalid
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/OAuthSwift#172
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ivishal3258 on GitHub (Oct 14, 2016).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/292
Getting error 401 while hitting the uber api in AngularJS. Please help me out here.
Object {message: "No authentication provided.", code: "unauthorized"}
code
:
"unauthorized"
message
:
"No authentication provided."
When i trying to hit the uber api i'll error mention above. Please help me out here.
$http.get('https://api.uber.com/v1/products?latitude=37.7759792&longitude=-122.41823',{
headers:{
'server_token': '',
'client_id': '',
'client_secret': ''
}).success(function(response){
/$scope.names=response.products;/
console.log(response);
})
.error(function(response) {
console.log('error');
console.log(response);
$scope.names = 'Error: ' + response;
});
@phimage commented on GitHub (Oct 14, 2016):
AngularJS? here is a swift project... not javascript