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
I'm new to Moya and wondering how the following problem could be solved nicely:
Let's assume a user has several devices in his home, all of them exposing the same API - the URL to each device and the credentials for each device can't be known at compile time. The user can freely add/remove devices in an app.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello there,
I'm new to Moya and wondering how the following problem could be solved nicely:
Let's assume a user has several devices in his home, all of them exposing the same API - the URL to each device and the credentials for each device can't be known at compile time. The user can freely add/remove devices in an app.
Example:
http://user1:[email protected]/api/*
http://user2:[email protected]/api/*
http://user3:[email protected]/api/*
How would I manage this varyiing
baseUrl
and credentials with Moya?Thanks a lot for any pointers!
Beta Was this translation helpful? Give feedback.
All reactions