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

learn more… | top users | synonyms

0
votes
0answers
12 views

how to pass session id with services using ajax

i am trying to get authenticated data after login with services module. ive a drupal services set up at openshift and the htmls are in my devices. i managed to login, get authenticated, get the ...
0
votes
0answers
8 views

REST Services Module - how to create custom URLs/paths

I have been playing with the Services module for a couple of days. According to general REST API best practices, the GET URL paths I should use are: /buildings /buildings/4 /buildings/4/rooms ...
0
votes
0answers
12 views

How to ensure Content-Type header in Services response?

I need to set my Content-Type header to "application/json; charset=utf-8" in Services responses. I have tried drupal_add_http_header() in my callback, in _services_request_postprocess_alter() and in ...
0
votes
0answers
15 views

My resource action is marked oauth2 but is seeing the anonymous user

Consider an Oauth2 server with oauth2_loginprovider and client configured with a scope ifttt. The client can login and authorize with Oauth2 correctly. The client needs the server to implement the ...
0
votes
1answer
8 views

Commerce Integrate with Third Party?

I'm trying to integrate Drupal Commerce to a File Maker. Why ? Because my client staffing have been using File Maker for over 15+ years. We are trying to integrate both systems. So my goal is to be ...
1
vote
1answer
13 views

Services: reduce amount of infomation returned from standard service actions

I have a Drupal 7 Services that my frontend call when I want to get (for example) all comments of node XYZ. All works, but I want to reduce informations that this call return (yes, from the backend). ...
0
votes
0answers
6 views

Multiple Entity Reference creation using Services and Autocomplete Widget

This is in reference to: Entity Reference create problem with REST server using Services and How to use Services to create new node with Entity Reference field? What if I want to create multiple ...
0
votes
0answers
20 views

Dynamic Web Service Endpoints

I'm trying to find a way to use dynamic web service URLs - I want to query a RESTful server, and get some data, however the type/quantity of data changes based on user input. I looked into the Feeds ...
1
vote
1answer
30 views

what is the purpose of “_services_controller_execute_preserve_user_switch_anonymous”

I have been having a problem persisting the authenticated session after a successful registration using Services 7.x.3.11 in Drupal 7. I've sort of solved that issue by commenting out the call to ...
1
vote
0answers
28 views

How to detect REST API request?

I have one defined endpoint in Services. I need to detect if request origin is browser or REST client app in hook_user_login implementation to prevent custom redirect when using service. My solution ...
0
votes
0answers
40 views

How to edit Services json response of successful register.json

How can you edit the Services' json response of successful register.json to include the user's OR system's auto-generated password, plus any token? I've tried a variety of combinations of the ...
4
votes
0answers
64 views

Services' register.json does not login the user or return the user's session/token/password

I have tried far too many variations to list here, but the basic point is I cannot get the user logged in immediately after registration via Services. I have tried a fresh Drupal 7.33 install with ...
0
votes
1answer
26 views

How to retrieve specified fields using services?

Using services we can retrieve list of all nodes with different filters and we can get a specific node as well. But is there any way we can specify the fields we would like to retrieve ? Eg: ...
1
vote
0answers
25 views

Making a 'contains' type GET query over a REST API, with Services?

I've installed Services (and Services Views) so I can expose my drupal site as a RESTful API. All my filters are working, but not the one that queries a taxonomy term array. Here is an example JSO: ...
0
votes
0answers
17 views

know the url path of a file loaded via file upload

I need to know in real time (with JavaScript) the destination URL of a file that I loaded via file upload in the page to create nodes. What I need to do is pass this URL to a jQuery plugin that load ...
0
votes
0answers
18 views

Why create node gives me error 406?

I have this code: node = { title : 'Nuovo inserimenti configuratore', "body":{ "und":[{ ...
0
votes
1answer
19 views

Is there any way in drupal to get all primary links through views?

My objective is to get the primary links or any kind of menus items, to be shown as JSON, so that an app could consume it and show it. I tried it using views and I have services module and ...
0
votes
1answer
25 views

Service request with OAuth (Invalid signature error)

I'm making a service request(POST) with curl and OAuth signature. I have created a signature with the following code: $signature_method = new OAuthSignatureMethod_HMAC(strtolower('SHA1')); ...
0
votes
0answers
79 views

Testing on localhost with CORS module

I use Services module from a Webview in a mobile app. On the device, my requests are fine. In the simulator, I get: Failed to load resource: Origin http://192.168.2.163:8100 is not allowed by ...
0
votes
0answers
6 views

hello. I want to create a page to serve drupal files from a drupal site via web services. Which hooks do I need? To create custom web services [duplicate]

I want to create a page to serve drupal files from a drupal site via web services. Which hooks do I need? To create custom web services.
0
votes
0answers
50 views

Services 3 Session authentication CSRF Validation with Persistent Log in

I am trying to use Services 7.x-3.11, the latest stable available to authenticate and access Drupal 7.34. Accessing from mobile devices with Native coding. I want to keep the user authenticated ...
0
votes
1answer
84 views

how could the global $user be different between the Drupal interface and Services module?

If i do: hook_node_view($node, $view_mode, $langcode) { global $user; var_dump($user); die(); // i get the correct dump of the current pre-authorized user } HOWEVER, ...
0
votes
0answers
14 views

Drupal 7 services module - add inline item attributes

I'm creating a custom API resource called pages which hooks up to a custom content type. function curatorapi_services_resources() { $api = array( 'pages' => array( 'operations' => array( ...
0
votes
1answer
27 views

Removing cached reference to missing table: services_user?

When trying to update user profiles via the Services module (not via drupal) - calling mysite.com/drupalgap/user/1.json as a POST with correct parameters - I'm getting the following error: 500 ...
1
vote
1answer
23 views

Services custom resources issues - IIS, MSSQL

This really is two issues, but possibly both are related. Main issue: I have a custom resource setup in Services, the endpoint seems to be "mostly" working. The endpoint is api/ada/ and my resource ...
0
votes
0answers
45 views

Module for Send Data via Rest service xml & json format

I used drupal with oracle. Currently i Used Services Module to send rest services from my env. The services module not working with oracle. So is there any another module in drupal to send rest ...
0
votes
0answers
25 views

modify password_reset or request_new_password?

When building a mobile app, and using services3 and/or my custom module, I have a specific requirement: I want anonymous users to be able to receive their password, in plaintext, in their email, if ...
0
votes
0answers
36 views

Draggableviews and Services Views: Reordering Nodes through Ajax/Draggable Content not working in Services View

I have successfully set up a view ("Essential Questions Review Pane") that reflects the updated order of nodes based on a draggable view from another version of that same view ("Essential Questions ...
0
votes
1answer
99 views

Get Instagram realtime count likes

Here is how the application is structured: A cronjob runs every 3 hours making the Instagram Recent Media call -https://api.instagram.com/v1/tags/myhashtag/media/recent?access_token=ACCESS-TOKEN If ...
0
votes
0answers
25 views

REST login rejected with valid credentials

I can get a valid response from the server with the following url http://example.com/mysite/my_path/my_alias/retrieve?api-key=my_key the following code returns a 401 $base_url = ...
0
votes
1answer
44 views

Drupal Services 3.x - Custom error output

Is there a way to control the output in the drupal services? Example, if a argument that is required, it not provided in the call, I get the following output as a JSON array. Missing required ...
-1
votes
2answers
216 views

Drupal & Services (REST): how to session authentication [closed]

I have Drupal 7 and Services 3.10 and I want to use Session Authentication. So i have, in my services resource, checked the "login" action for the user resource. Now calling the "base_url" + ...
0
votes
0answers
17 views

Name space in rest service

I'm using the Services module for rest services. Is it possible to add my custom namespace in rest XML output.
0
votes
0answers
39 views

parameter for getting body content of drupal node

I'm using Services module for rest services. When i am passing this url $base_url/rest/node?fields=title,nid&parameters[nid]=18 I got this result <result is_array="true"> ...
0
votes
1answer
53 views

How to update taxonomy term of a node using services

I have created a new node using Services 3 module successfully, the code is below { "type":"page", "title":"New test page", "taxonomy": { "tid" :"367928" } } Configuration: Drupal ...
0
votes
1answer
47 views

Endpoint services with url alias name

Is it possible the to view xml/json format data with url alias name instead of endpoint_path/node/1 or endpoint_path/node/2
0
votes
1answer
151 views

custom service respond me : 401 Unauthorized: Missing required argument foo

I have this custom service: function zbs_services_resources() { return array( 'productQuestionForm' => array( 'actions' => array( 'send' => array( 'help' => ...
0
votes
1answer
52 views

how do you alter queries for node/# to select entity-referenced node titles instead of just target_id?

I am using Drupal 7 Services and the generic call of services/node/#. Unfortunately that only gives me the target_id as a property of every field with type entity reference; and my interface does need ...
0
votes
1answer
41 views

Services, OAuth and a mobile app

I'm struggling with Drupal, OAuth and a (Cordova) mobile app I'm developing. I've made a custom module and it exposes data to the Services module. What I want to do now is get that data into my mobile ...
1
vote
1answer
54 views

POST taxonomy item using Services module

I want to POST a new taxonomy item. I'm using Postman in Chrome to test, I'm logged in fine, and I'm posting RAW JSON: { "name": "building", "description": "", "vocabulary" : { "id" : 1, ...
0
votes
0answers
27 views

Why would error / warning / success messages stack up when using a Service?

I have a mobile app that uses Drupal as an API. As you navigate the site everything works as normal with appropriate messages on errors, warnings, and successful form submissions. After doing that a ...
0
votes
0answers
70 views

Drupal 7 Services REST - DELETE Request

I'm trying to delete user account via REST api. Here is my code: $service_url = 'http://www.example.com/rest/user/login'; // .xml asks for xml data in response $post_data = array( ...
0
votes
0answers
159 views

Drupal 7 - Services Module - Updating a user field with XML

I will try to convey this with as much detail as possible. I am trying to update a field I added to the user. Let's call the field field_test_field, it is an integer field. This is what I'm doing so ...
1
vote
2answers
137 views

Import a custom field type record and relate it to a node

I've created a module for a custom field type which selects images from cloudinary. Is there a way to dynamically add entries as part of an import script? I've tried updating the database directly, ...
0
votes
1answer
39 views

Services custom GET operation

How to create custom GET resource operation? I tried many variants in hook_services_resources() but didn't find the solution. Is there way to do this? I want get some data from url ...
0
votes
1answer
25 views

DeployAuthenticationException: Authentication error when try to push the content

I have two sites on my localhost registration and testing. I want to push the content (node having type article) from testing to registration.I am using Deploy module to do this, by following this ...
0
votes
1answer
63 views

csrfToken: reget without logout user

I have a site where I use AngularJS to connect to Services module paths. Now, we know that I need to send (for every put connection) the CSRF token into headers request, and this token is linked to ...
0
votes
1answer
67 views

how to get the response in JSON format?

I am using Drupal 7 Services to expose an API, The following is the code I am using to get some of the datails and It is giving the response interms of Arrays, But I don't want the response to be in ...
0
votes
0answers
21 views

Can only create node using Services module if authenticated user has “Bypass content access control” permission

I am using the services module with REST to create nodes remotely. I have just created a new role for the users who will be authenticated through services. I can create a new node fine when the user ...
0
votes
1answer
141 views

Drupal Services 3 Post new node with Image Field and Entity Reference (returns status 200, nid:null)

I'm trying to create a new node using Drupal 7 + Services 3. The node type is 'activity_photo' has an image field, and a reference to a node. This is what I'm posting to the service { ...