How can Android connect to the Drupal service?

I am writing an Android program and I need to connect to the Drupal service in order to allow data or send data. How can i do this?

Many thanks!!!

+3
source share
3 answers

I do not have a link, but I know that there has recently been talk about using the Services module to integrate drupal with a mobile application. There is an article article on the drupal website that also discusses this.

+2
source

I wrote an article with detailed instructions on how to integrate Drupal with Android.

xml-rpc. xml-rpc Android (, Redstone lib . , Drupal-Android).

xml-rpc , :

  • user.login - ,
  • user.logout -

Node CRUD:

  • node.retrieve - retrieve
  • node.create - node
  • node.update - node
  • node.delete - node
  • node.index -

CRUD Drupal (, , , taxonomy_terms), "node" . : "file.create" - , "file.index" - ..

, "user.login", , sessid session_name .

session_name+"="+sessid

cookie . , " " Drupal. .

, : Drupal Android: .

+2

Sorry, I don’t know anything about Drupal services. But assuming they are HTTP-based services (like the REST service), Android uses the Apache HTTP library, see here for HTTP protocols.

0
source

Source: https://habr.com/ru/post/1726034/


All Articles