You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#### How to call partner apis in background tasks?
98
+
99
+
Background tasks running under some consumer or webhook or under any queue can get partner client via method `get_partner_client`. It will return instance of `PartnerClient` as well.
100
+
101
+
> Here FdkClient `access_mode` should be **offline**. Cause such client can only access PlatformClient in background task.
To call partner api you need to have instance of `PartnerClient`. Instance holds methods for SDK classes. All routes registered under `partner_api_routes` blueprint will have `partner_client` under request context object which is instance of `PartnerClient`.
0 commit comments