Back to project page drupalForAndroidSDK.
The source code is released under:
GNU General Public License
If you think the Android project drupalForAndroidSDK listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.druCloud.drupalforandroidsdk; /* w w w . j a va 2 s . c o m*/ import org.apache.http.NameValuePair; import org.apache.http.message.BasicNameValuePair; /** * Created by jimmyko on 10/13/13. */ //To-do support session auth public class DrupalServicesNode extends DrupalServicesBase implements DrupalServicesResource { //To-do a method for annoynmous consuming resource public DrupalServicesNode(String baseURI, String endpoint) { super(baseURI, endpoint); this.setResource("node"); } @Override public String create(BasicNameValuePair[] params) { return this.httpPostRequest(this.getURI(), params); } @Override public String retrieve(int id) { return this.httpGetRequest(this.getURI() + "/" + id); } @Override public String update(int id, BasicNameValuePair[] params) { return this.httpPutRequest(this.getURI() + "/" + id, params); } @Override public String delete(int id) { return this.httpDeleteRequest(this.getURI() + "/" + id); } @Override public String index() { return this.httpGetRequest(this.getURI()); } }