Ionic passing params and header on http

Dear All,

I am now trying to connect the Odoo with Ionic 5 app. I did api on Odoo side and can call using Postman.

below is my code but not success

how can I call using HTTPClient or HTTP?
quite beginner in Ionic.

Best Rgds,

Use HttpClient instead of HTTP. HTTP is a native plugin so it won’t work with the web.

constructor(private http: HttpClient) { }

yourMethodName(){, body).subscribe(
      (response) => {
      (err) => {

hi hirenkorat, thanks and but I want to do it get method.

In the future, please don’t post screenshots of text. Also, never ever ever hardcode secrets into your app source code like this. Anybody with a copy of the app binary has access to anything that credential can do - completely unfettered by what you allow it to do within the app.

noted and actually it came from textbox.