Http #51
-
if I use code that wiki.login(,) to login wiki but the wiki how to know your wiki website url? how to slove it? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
when i use Wiki wiki= new Wiki.Builder().withApiEndpoint().build(); . it will be wrong then the error is "Cannot read field "input" because the return value of "io.github.fastily.jwiki.core.WQuery.next()" is null" |
Beta Was this translation helpful? Give feedback.
-
I found the anwser! u should first var a String. such as "String url = "http://www.wiki.com". then make a wikiObject .use Wiki wiki= new Wiki.Builder().withApiEndpoint(HttpUrl.parse(url)).build(); lastly. u can use wiki.login() you can see the result of success! |
Beta Was this translation helpful? Give feedback.
I found the anwser! u should first var a String. such as "String url = "http://www.wiki.com". then make a wikiObject .use Wiki wiki= new Wiki.Builder().withApiEndpoint(HttpUrl.parse(url)).build(); lastly. u can use wiki.login() you can see the result of success!