DEV Community

loading...

How to get response return from another function in onFulfilled in guzzle promise

Avinash Dalvi
AWS Community Builder | Full Stack Developer | PHP + Angular + Python + AWS | Speaker | Blogger | Leadership I write blog at https://www.internetkatta.com
・1 min read

I am using local function to create promise. Trying to call external method in promise onFulfilled and returning response of method. When I am trying to resolve promise by passing parameter its printing response but not returning exact response, its returning something different. What is best way to get response…

Discussion (0)