黄舟2017-04-17 16:50:36
First of all, although I don’t know what ECShop is, as long as you can output json on the web page or display content, android can receive data.
1. ECShop serves as the server and customizes the interface to output json.
You need to understand some restful API design ideas.
Or you can also use the simplest json output.
On the android side, you only need to use some request libraries and some json parsing libraries. The data can be displayed.
2. Directly capture the content displayed by Ecshop, and then use Jsoup to parse the html (this crawler is similar and is not recommended for backends that you have control over)
ringa_lee2017-04-17 16:50:36
This requires you to develop an interface based on ecshop based on your own business. ecshop comes with some APIs that can be called by mobile phones, such as product list, product search, etc. However, they are relatively basic and may not fully meet your needs. You can use the existing interfaces If you want to develop new ones, you don’t have any development knowledge. Just know a little PHP and a lot of things have been packaged by ecshop
PHP中文网2017-04-17 16:50:36
If you are practicing on a mall project, ecshop is still a good choice. Many small and medium-sized enterprises still use ecshop to develop their mall app backends, which can basically meet the business needs of mall projects.
ringa_lee2017-04-17 16:50:36
Isn’t there an ecmobile in the ecshop series of products? Isn’t it a ready-made example? Its server lists a separate folder. Just download it and put it into the root directory of ecshop. This example is quite simple. Inside Beeframework is used to encapsulate the network, which is more suitable for novices.
伊谢尔伦2017-04-17 16:50:36
Any backend that provides RESTful API can provide backend support for the app
高洛峰2017-04-17 16:50:36
Well, ecshop is written in PHP, so at least you must be able to understand PHP code and be able to modify PHP code.
In addition, you need to provide API to the APP, so you need to understand the restful style.
That’s almost it.