DEV Community

Avinash Dalvi
Avinash Dalvi

Posted on

1 1

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

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…

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay