Skip to content

Error while retrieve the data #28

@BUHARIMOHAMEDISMAIL

Description

@BUHARIMOHAMEDISMAIL

I'm using the below code to retrieve the data.I'm getting an 401 unauthorized error.

	var url = 'https://xxx.yyy.zzz-gtgl.com/obdo/newsfeedinteg';
	var auth = $base64.encode("newsfeed:newsfeed@123"), 
    headers = {"Authorization": "Basic " + auth};
	$http.get(url, {headers: headers}).success(function (resp) {
		console.log(resp);
	 }).error(function (err) {
        console.log(err);
    });

When i was checking in postman it's working fine and get the json response.
In postman I'm enter the username and password in Basic Auth field which comes under Authorization and content-type as application/json finally send the POST request.

Please assist me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions