Questions tagged [drupal-services]

The Services module provides a standardized solution for integrating external applications with Drupal.

The Services module provides a standardized solution for integrating external applications with Drupal.

Service callbacks may be used with multiple interfaces like REST, XMLRPC, JSON, JSON-RPC, SOAP, AMF, etc. This allows a Drupal site to provide web services via multiple interfaces while using the same callback code.

56 questions
4
votes
1 answer

Android App - Drupal Services

I am trying to upload data from my Android app to my Drupal website. I know how to develop PHP code that will parse GET/POST data and save it to a database. But, when it come to Drupal and CCK fields it is abit more challenging. From my research,…
sisko
  • 9,604
  • 20
  • 67
  • 139
4
votes
3 answers

How to change Drupal services default response format to JSON?

I'm using Drupal services with REST server to provide API. Previously I only work with 1 type of response, JSON, so I didn't need extra extension ".json" to the URL. Now I have to add new formatter, XML. Then the problem begin, all API without any…
3
votes
1 answer

Drupal 7 - cannot get services endpoints to show

I am at my wit's end trying to decipher why this isn't working. I'm attempting to set up a REST server from my Drupal 7 instance. Currently focusing on no authentication required (I'll set that up once I manage to get it talking). Here's the…
Aron
  • 382
  • 1
  • 12
3
votes
1 answer

Drupal services module JSON response fetched: Backbone.js model attributes turn into string

I've set up web services using Drupal's services module. It outputs JSON for me which I am requesting through a Backbone.js front-end application. I'm having issues with this set-up. If I request data through Backbone.js' fetch method of a model,…
Vanderstaaij
  • 541
  • 5
  • 13
2
votes
1 answer

How do I get the full URI (i.e. not "streamwrapped") for a Drupal node field in a single request to the Services module?

Preface I'm building a Drupal site that doubles as a content-serving endpoint for a mobile app written in Flex. The CMS is responsible for storing a number of items that have, among other fields, a field for an image that represents the node (like a…
Chris Lambe
  • 111
  • 7
2
votes
1 answer

json rpc client for services module drupal

I am trying to create a json rpc client to access drupal services provided by services module for titanium. function connect() { var loader = Titanium.Network.createHTTPClient(); var url = "http://10.0.2.2/service/services/json"; …
Piyuesh Kumar
  • 436
  • 5
  • 21
2
votes
1 answer

Angular2 and Drupal 7 Service API Authentication

I am using the Drupal 7 Services API (v7.x-3.17) to connect with an Angular2 front-end. I am having trouble getting the authentication working properly. When I login I receive all of the correct data back (session_name, sessid, token, etc…). …
2
votes
0 answers

Drupal Services session authentication not working with Angular 2 (Error 406: user is not logged in)

I have front-end with Angular and its connected to drupal backend. I am using drupal services module for rest api. Issue is when I logg in using rest , I can get all session details like session_name , sessid and token. In Angular , for all further…
UzUmAkI_NaRuTo
  • 565
  • 3
  • 8
  • 20
2
votes
1 answer

Disabling Krumo in Drupal Services

When I inspect a method in drupal services, I get the output formatted with something called Krumo. It wasn't like this before, it was just an array dump. I'm not sure what happened to cause this Krumo to get activated. Is there a way I can turn it…
Kamo
  • 3,547
  • 2
  • 19
  • 20
2
votes
1 answer

Drupal as the Services layer only

It's possible to the Services layer of Drupal to get nodes, etc. but is there a way to restrict Drupal to being a Services layer, where the front end would be entirely something else not Drupal/PHP. Is there a way to prevent Drupal from lading…
Kamo
  • 3,547
  • 2
  • 19
  • 20
2
votes
1 answer

Angular $http useCredentials return error

I am trying to build an AngularJS frontend for a Drupal 7 website. The problem is that, when I set useCredentails to true, I get this error. Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at…
2
votes
0 answers

Sanitize text input in Drupal Services

We have enabled Services with REST server on Drupal. Our end point collects various text fields through the web service and creates a custom content type node (based on CCK type). Later our custom content type node is displayed to the users using…
user3043805
  • 245
  • 2
  • 10
2
votes
1 answer

Registration with profile picture using services in Drupal

I've been trying to upload a user profile picture during the user registration using Service 3 and so far I haven't had any luck. I tested passing a hard coded fid in the field "picture" and also tried to pass the fields "filemime", "filename", etc.…
Fran Ruano
  • 143
  • 1
  • 7
1
vote
2 answers

How to get price of product in Drupal Commerce using Services module?

I installed Services Module and REST Server to get list of products and details. I can only get product display nodes and product id, but how to get product price and availability info from Drupal Commerce. List of all nodes (including product…
Android Guru
  • 23
  • 1
  • 5
1
vote
2 answers

Services module to build a XML server to show on android app

I am doing something which seems to be a rocket science till now. I want to show the latest content of a Drupal website on an Android application. I just don't want to show the RSS feeds, but I want to also show the proper nodes and new users added…
abhishek
  • 1,434
  • 7
  • 39
  • 71
1
2 3 4