0

I am running this piece of code to see the response from api but it is throwing Ajax not a function error

PS: I am using dummy url for posting on public platform perspective

var plan;
var settings = {
  "url": "https://benefits-pas-stage.abc.com/PlanAvailability/web/facilities/100/plans/medical",
  "method": "GET",
  "timeout": 0,
  "headers": {
    "Authorization": "UGxhbkF2YWlsYWJpbGl0eVRvb2wyMDE3MDI="
  },
};
 $.ajax(settings).done(function (response) {
   plan = response;
console.log(response);
});
Nidhi
  • 25
  • 6

0 Answers0