Use FuelManager instance instead of global config for requests

119 Views Asked by At

fuel docs mention the possibility to create a FuelManager instance for not-global config:

Create separate managers using FuelManager()

However I haven't found a way to use an instance of FuelManager instead of the global one in making a request. What do I have to do?

1

There are 1 best solutions below

0
Michael On BEST ANSWER

FuelManager offers functions to make HTTP calls directly, so you can/should use the (configured) instance.
Note: Avoid e.g. Fuel#get since then you'd use the global FuelManagerconfig.