[GH-ISSUE #292] Getting Error when hit the uber api in AngularJS #172

Closed
opened 2026-03-03 16:46:22 +03:00 by kerem · 1 comment
Owner

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;
});

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; });
kerem 2026-03-03 16:46:22 +03:00
  • closed this issue
  • added the
    invalid
    label
Author
Owner

@phimage commented on GitHub (Oct 14, 2016):

AngularJS? here is a swift project... not javascript

<!-- gh-comment-id:253830284 --> @phimage commented on GitHub (Oct 14, 2016): AngularJS? here is a swift project... not javascript
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/OAuthSwift#172
No description provided.