简体   繁体   English

使用App Inventor进行XML-RPC HTTP请求?

[英]XML-RPC HTTP request with App Inventor?

I am trying to build out an app that will communicate with Tapatalks API, it uses XML-RPC HTTP requests, I can do post/get requests with the web component. 我正在尝试构建一个将与Tapatalks API进行通信的应用程序,它使用XML-RPC HTTP请求,我可以通过Web组件发布/获取请求。 I cannot find anything on modifying the web component/Blocks to create said XML-RPC encoding. 在修改Web组件/块以创建所述XML-RPC编码时,我找不到任何东西。 Any resources? 有资源吗? Tips of what to search, or insight would be appreciated. 有关搜索内容或见解的提示将不胜感激。

This is the API php code I am trying to interact with https://github.com/tapatalk/tapatalk-phpbb3/blob/master/root/mobiquo/function/login.php 这是我尝试与https://github.com/tapatalk/tapatalk-phpbb3/blob/master/root/mobiquo/function/login.php交互的API php代码

Here is my app blocks currently and I am getting a code 200 这是我当前的应用阻止,我得到的代码是200

Here is my blocks editor : http://imgur.com/uEyOb8i 这是我的积木编辑器: http : //imgur.com/uEyOb8i

What you tried looks very strange, but at least you tried something ;-) ... You somehow mixed a POST and GET request, there is no header defined and where is the xml format? 您尝试的内容看起来很奇怪,但是至少您尝试了一些;-) ...您以某种方式混合了POST和GET请求,没有定义头,并且xml格式在哪里?

Probably it helps to read this first: What is a XML-RPC Request 首先阅读以下内容可能会有所帮助: 什么是XML-RPC请求

Then concerning App Inventor you can try to use the following blocks. 然后关于App Inventor,您可以尝试使用以下块。
EDIT: update of the screenshot to make things clearer. 编辑:屏幕截图的更新使事情变得更加清晰。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM