Automatically select which URL to use, instead of always using the testing one
Description
Description
Revisions and Commits
Revisions and Commits
rLIBWFJVA WildFyre Java Libary | |||
rLIBWFJVAb67b13c4a9d1 Merge branch 'T394-production-api-2' into 'master' |
Status | Assigned | Task | ||
---|---|---|---|---|
Resolved | CLOVIS | T383 Blank slate | ||
Resolved | CLOVIS | T384 Multiplatform Support | ||
Open | CLOVIS | T393 Connect to the API | ||
Resolved | CLOVIS | T394 Automatically select between the production URL or the testing URL |
Event Timeline
Comment Actions
This should not be automatically selected. Instead it should default to production and the API base constructor should take a URL to change the base request URL.
Comment Actions
So something like
fun connect(username: String, password: String, url: String = "https://api.wildfyre.net/") // In tests val api: () -> WildFyre get() = { WildFyre.connect(testing_username, testing_password, testing_api) }