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

learn more… | top users | synonyms

0
votes
0answers
5 views

save base64 images alogside entity creation via services

I need to save and edit entities via services like {user, nodes, products ...etc} the problem comes with images posted form mobile apps encoded base64. I saved the file and stored the object in ...
0
votes
0answers
8 views

Unable to login to services due to session cookies not being passed in

This has been driving me nuts for days. I have an html5 app which logs the user into drupal via services 3.11 but I am unable to connect. Using the Chrome Postman plugin I can connect as expected. ...
0
votes
0answers
12 views

How do I override a service endpoint provided by a module in a feature?

I am using the Services module and Drupalgap, which provides a service endpoint by default. I want to make changes to the available services on the drupalgap endpoint, and I manage configuration on ...
0
votes
1answer
18 views

Issue while adding arguments to the custom services

I am adding one argument to the custom service named "streamtype" as follows function CMODULE_services_resources() { $api = array( 'oidar' => array( 'operations' => array( ...
0
votes
0answers
4 views

commerce services module unable to load entitywraper for product

I am posting products via services but price field didn't save despite other fields saved successfully the error returned is The requested URL returned error: 500 Internal Server Error : An error ...
0
votes
0answers
13 views

services authentication with oauth2 server

I used services module to to provide an api and web service for native mobile applications using drupal as backend for the apps. I need to make the authentication be done for one time and get an ...
0
votes
0answers
15 views

CSRF Validation Failed On Creating Node

I am connecting Drupal Services to iPhone. On sucessful Login i am getting session id , session name,token . Then I want To create node . I am posting token value in X-CSRFToken and ...
0
votes
2answers
14 views

request new password via services

I need request new password via services the url i used: <endpoint>/user/password?args['name']=test2 But it returns Access denied for user anonymous It's supposed to be used by non ...
0
votes
0answers
12 views

Why I can't add commerce product via services?

I need to add product via services, but I have strange issue with a price field. The case is that all fields saved correctly except price field amount and it returns: The requested URL returned ...
0
votes
1answer
22 views

what is the url i should use to edit user account via services module

I need to edit user account data via services module I tried endpoint/user, endpoint/user/UID, endpoint/user/UID/edit, endpoint/user/update, endpoint/user/edit with args like in user_resources.inc ...
2
votes
1answer
22 views

How can I implement a non-CRUD function in hook_service_resources()?

This question is similar to this question but I don't understand how the URLs are modified enough for the answer there to make sense to me. The module adds retrieve and index operations by default. ...
0
votes
0answers
13 views

hook_services_request_postprocess_alter didn't work

I couldn't implement neither hook_services_request_postprocess_alter nor hook_services_request_preprocess_alter in my custom module when the returned http code = 200 I see when calling function ...
0
votes
1answer
9 views

How do I access a function via services provided in a service resource module?

Just getting started with Services so this is probably an easy question. I'm attempting to allow users to access their private messages from a web app using this sandbox module. At this point, after ...
0
votes
0answers
15 views

PUT request services

I've been using the Drupal basic services module with REST from quite some time now. I would like to know if this possible: PUT request: http://.../endpoint/node/{X,Y,Z} Basically, what i want ...
0
votes
0answers
9 views

why is my simple node Service returning views.exposed_data

my simple Services endpoint uses the View3 & JSON data document settings in this screenshot: at least a few days ago the structure was simply... {}{ "nodes": [{node:{},..], "view": { "name": ...
0
votes
0answers
10 views

RSS view with pager

I have view with RSS feed enabled, but i cant figure out how to make RSS with pager like original page in view. View is simple, has title, body, but there are 500 entries so pager is a must. I have ...
0
votes
0answers
15 views

Services stopped working when upgrade to 7.x-3.11

I have a API that was working before I did the upgrade. It returns JSON, but after upgrade it only shows: Services Endpoint "my_test" has been setup successfully, and it never gets inside 'access ...
0
votes
0answers
17 views

Create comment with services 3.X on Android with json

Im developing one Android app. I'm trying to post a comment from the app to drupal via Services module, but i cant send a json data to the module, there is the java code: HttpClient httpclient = new ...
0
votes
0answers
8 views

Services: add uuid pid on comments

I'm migrating contents from drupal to drupal with services module (and services_uuid). I'm using UUIDs to matching every entity, but when I retrive a comment, services returns me only the id of the ...
1
vote
2answers
20 views

How to output XML schema with Services module?

I have set the REST server with the Services module. Also I've installed the Services Views module, created a new view that outputs the desired fields into XML. That's working fine. How can I add ...
0
votes
0answers
10 views

Retrive media youtube uri with services

I'm using Services to export file (Media 2.x), and I've file of type "video" managed by media_youtube module. When I retrive a file with Services, it doesn't return me the the youtube uri of the ...
0
votes
0answers
164 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
23 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
14 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
19 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
11 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
15 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). ...
1
vote
0answers
13 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
30 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
31 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
32 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
61 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
84 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
32 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
28 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
21 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
21 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
45 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
119 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
1answer
78 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
91 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
16 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
35 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
54 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
27 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
42 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
135 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 ...