Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "data": null,
- "status": -1,
- "config": {
- "method": "POST",
- "transformRequest": [
- null
- ],
- "transformResponse": [
- null
- ],
- "data": {},
- "url": "http://api.elpozon.com/rest/login",
- "headers": {
- "Accept": "application/json",
- "Content-Type": "application/json;charset=utf-8"
- }
- },
- "statusText": ""
- }
- $scope.intentoDeLoginPozon = function(){
- var datapost = {
- method: 'POST',
- data: {
- user : $scope.username,
- pass: $scope.password
- },
- url: 'http://api.elpozon.com/rest/login',
- headers:{
- 'Accept': 'application/json'
- }
- };
- $http(datapost).then(function successCallback(response){
- $scope.mensaje = response;
- }, function errorCallback(response){
- $scope.error = response;
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement