Consider using existing
Tapatalk API (this "mobiquo mod" is already installed in this phpbb3!).
It uses XML-RPC for communication protocol:
https://tapatalk.com/api.php
And several java implementations already exist:
https://github.com/francescomuia/tapatalk-api
This particular project doesn't have "new_topic", but you can add it, I guess:
Code: Select all
// see TopicService.java
public class TopicService extends TapatalkBaseService
{
//...
public void newTopic(.........) throws TapatalkApiException
{
this.invokeFuntion(TopicFunction.NEW_TOPIC, .........);
}
}
Then, you could add something like this to your rusEFIconsole java code:
Code: Select all
TapatalkServices ts = new TapatalkServices(urlOfOurRusEfiForum);
ts.getUserService().login(loginName, password);
String[] ids = ts.getForumService().getIdByUrl(forumUrl);
ts.getTopicServices().newTopic(.......);
It requires "(String forum_id, byte [] subject, byte [] text_body, String prefix_id, ..........)"
See the description of all these fields:
https://tapatalk.com/api/api_section.php?id=3#new_topic
There's also "reply_post", etc.
You just need to study those xml field names - and voila!
So, what I'm trying to say is that there's no need to write your own php code - it's already there!
