Based on the discussion from my previous thread
The following code is the prototype I’m trying to implement:
I have the following questions:
- (Line 32) Are there any risks to create a client for every request? Should I use a singleton?
- (Line 33) Is this a correct way to create a token?
- (Line 34) How to tell if “$refreshToken” was successfully exchanged against the API?
- (Line 39) How to get the token values from $refreshToken?
- (Line 40) How to get the funding sources from $refreshToken?
Thanks in advance for any help you can provide, I will appreciate any suggestions.