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
0
votes
1 answer

Prevent Arbitrary file download in Drupal 7

Drupal vurnebilyty: It is possible to download any file that is readable by the webserver. The problem lies in the fact that the file download functionality offered by the web application does not correctly verify the parameter sent by the user that…
0
votes
1 answer

Sending multiple arguments to Drupal REST Services from iPhone

I am trying to access a Drupal service that takes more than one argument. The method is views.get and the server I'm using is REST 6.x-2.0-beta3. I am retrieving data from the server for 0 or 1 arguments with no trouble. Any argument after the…
lauren
  • 58
  • 6
0
votes
0 answers

Drupal 7.59 images not download in android app

I have update my drupal version from 7.4 to 7.59. after that i can able to see my image files in browser, but i cannot download thoese image via my Android apps. It was working fine in my old drupal version can you please suggest any solution…
Manikandan
  • 844
  • 15
  • 31
0
votes
0 answers

Drupal Services Token Lifetime

We have built a mobile app using Phonegap. The login flow is as follows: User logs in with username/password Services returns a token Token is saved locally using localstorage All future requests are made with this token without issues Now this is…
0
votes
1 answer

Query string in drupal service custom resources

I am trying to use query string structure in drupal services API. it's not working for me. I have also search most of the solutions, but all failed. here is m drupal code: function rapid_services_resources() { $resources = array( 'get_data'…
Vishal Kamal
  • 1,104
  • 2
  • 10
  • 35
0
votes
1 answer

Drupal 7 REST services - Suppress API output of NULL

I've an API service callback function which ties up with its own module template to give an HTML output. As per my understanding, default content type of API output is application/json, so I had to override it manually to text/html. However, I'm…
Knowledge Craving
  • 7,955
  • 13
  • 49
  • 92
0
votes
1 answer

Drupal services Unable to log in as authenticated user

I am unable to log in as an authenticated user to Drupal services. I have tried the setting for 'basic authentication', for 'http authentication', and for no authentication, it seems to make no difference. I am using administrator login details.…
Dimitri T
  • 921
  • 1
  • 13
  • 27
0
votes
1 answer

Drupal Services - Direct file URL instead of file resource reference

I am using Drupal services and services_entity module to build a web service. The problem is that when a file is attached to an entity using fields, etc, the service endpoints display the file as resource reference as: array ( resource: file, …
Jigarius
  • 394
  • 3
  • 16
0
votes
0 answers

Drupal 7 five star module services. How to?

Is there any services module available for drupal five star rating module. I am using services to create product etc,.. But I have searched the internet about drupal five star module services. Is there any module available in drupal with services…
Praveen Srinivasan
  • 1,562
  • 4
  • 25
  • 52
0
votes
1 answer

Using a key with the Drupal Services module

I'm testing the Drupal services module and it's working fine. I now switched from no key to a key authentication, and the system generated this key for me afw92iej83foijofn23. When I inspect node.get at…
Kamo
  • 3,547
  • 2
  • 19
  • 20
0
votes
1 answer

Not able to hit 2nd services with generated Token

I have been provided with two services in which ist service is used for login purpose and it will return an xml node token which i to be added as the header in all other services call, In the attached sample code there are two functions in function…
abhi
  • 1,059
  • 9
  • 19
0
votes
1 answer

Register new user as authenitcated user in drupal using xml-rpc

I'm trying to write PHP script for adding new users in drupal 7 using services module. So far I managed to create one, but as a anonymous user. When I run the script with administrator only permissions, I get Notice: Access denied for user…
Vesna
  • 37
  • 4
0
votes
2 answers

drupal using node.save with XMLRPC call to another site. "Access Denied" message

I have a piece of code on 1 drupal site to create a node another drupal site in a multi-site setup. It looks like I'm getting the sessionid and logging in just fine, but when trying to create a "page" node, I get "Access denied". Under Services ->…
EricP
  • 1,459
  • 6
  • 33
  • 55
0
votes
1 answer

How use session authentication in drupal Services module

I have Drupal 7 and Services 3.x (3.10). In the /admin/structure/services page, i have create an endpoint and my custom module: function webServices_services_resources() { $api = array( 'customers' => array( 'retrieve' => array( 'help' =>…
Tom
  • 4,007
  • 24
  • 69
  • 105
0
votes
1 answer

Get Image path in drupal

may be this question has been asked earlier but i have not found an appropriate answer for this. I have image uri path and i want to create a web services in drupal. From android when i call this webservices i will send the uri then i want to get…
rupesh
  • 2,865
  • 4
  • 24
  • 50