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

learn more… | top users | synonyms

2
votes
3answers
79 views

Get a message if insert into table works

My db_insert (and another db_merge) work great, I can populate my table well (also using a post http) now i want to get a message : success => when insert is ok fail => if not (if duplicated ...
0
votes
1answer
19 views

Menu access callback function called multiple times

I have following menu defined with access callback function. As You can see this is a hack so I can use REST via GET ( normally Services do not offer this ). All my endpoints are defined ...
0
votes
1answer
31 views

How can I use batch process in drupal without browser?

How can I use batch process in Drupal without browser? I want to use batch process in headless Drupal.
0
votes
0answers
17 views

Is nesting supported in Drupal's dynamic query?

I created a custom plugin to expose data - in XML or JSON - through REST API and am using dynamic query to generate data from the database. In Drupal's dynamic query, I was wondering if it is ...
0
votes
1answer
41 views

Services GET request of more than one resource

I'm working with services 7.x-3.12, I need to create a web service in order to get a kind of "associative request" between : books(table stored in db) and categories(another table) those two tables ...
2
votes
0answers
29 views

Create a commerce product and add it to cart using Services

I am using commerce_services module and poster as addon in firefox for my services. I want to create a commerce product and add it to cart using Services. I don't know what are the parameters and url ...
0
votes
0answers
20 views

Drupal deployment error

I am using deploy module and while sending node from one Environment to another environment i am facing below error EntityMalformedException: Missing bundle property on entity of type node. in ...
1
vote
1answer
19 views

Two Factor Authentication for admin/OAuth2 for REST API

I am building a "headless" Drupal application. The front-end is in AngularJS using OAuth2 to authenticate to the REST API that I have built. A client did a security audit and wanted additional ...
0
votes
2answers
63 views

Services authentication in Drupal 7 [on hold]

I can't get it work. I can post via ajax username and password so Service will return sessid, session_name and user object, that part works. Now I make a call to get nodes which are protected but all ...
1
vote
0answers
53 views

Post/Upload file using Drupal Services Module without base64 (Using REST multipart/form-data )

I am sure its possible in Drupal also. Here is the reference for Java code http://stackoverflow.com/questions/5723429/use-rest-client-to-call-multipart-form-data-rest-web-service and ...
0
votes
0answers
20 views

Persistent login using services

I am currently using services module and I have an android app. I am logging in using the login api, and I can go all the things provided by services. However after a few hours or few days, I can no ...
1
vote
1answer
22 views

Get all fields for a content type using REST

Is there any way to get all fields attached to an entity in D8 (including widget types), using REST services? I've tried the following endpoints, but none of them had the list of fields: ...
0
votes
0answers
13 views

REST based authoring facility

I intend to use Drupal for a news portal. We have a strong system which is exposed as REST based services in J2EE. Does Drupal have a capability to consume already developed REST services as a ...
0
votes
1answer
28 views

Strip HTML tags from Field Collections in Services Views

I'm trying to strip the HTML tags from a JSON response I generated using Services Views, but I'm not having any luck so far. I have a content type with a Field Collections field in it that is ...
0
votes
2answers
18 views

How to make my Drupal custome Service return data on GET?

I have defined few Drupal custom Services and they are working fine via POST requests. But one of them needs to be available via GET. This one: function rooms_services_services_resources() { ...
1
vote
1answer
20 views

How to alter Services Views result

How can I alter services views result. Using services view I can easily produce Json data. I have tried function hook_views_post_execute. This hook is working for simple views but not with services ...
0
votes
1answer
14 views

Drupal services forbbiden error on put but not on post

I'm using Drupal Services Module to upload data to my site. It works good on local host, and I can do PUT and POST without problems. But after upload my site to a shared hosting, I can do POST, but ...
0
votes
1answer
49 views

How do I enable CORS on Drupal 7 Service endpoint?

I tried to call a Drupal service endpoint, exposed by the Services module, using ionic which is built on Cordova. I ran 'ionic serve', so it wasn't serving from the file system but had an actual ...
0
votes
1answer
21 views

How to programatically change file user owner

I'm using drupal services module. I can upload files through web services but the problem is all created files has the same owner, that is, the user of the web services. I would like to change this ...
0
votes
0answers
6 views

Downloading a file using Services Views

I've created an API using the Services Module (by way of the Services Views Module) that I am accessing via a Single Page Application. In this application, users need to be able to download a ...
0
votes
1answer
21 views

No response from Services Entity API when added '.json' to the end of alias

While configuring Services module, when I add '.json' to the end of the resource alias I get an emtpy page. Other resources that are not provided via Services Entity API output json the same way. The ...
0
votes
1answer
32 views

Drupal 7 + Services : Error 500 on user registration (Integrity constraint violation: 1048 Column 'uid' cannot be null)

I'm still working on user registration with Drupal 7 and Services 3 and I got a weird Error 500 : Integrity constraint violation: 1048 Column 'uid' cannot be null Here is the code I'm using : ...
0
votes
1answer
20 views

Deleted files for node are being included in view for services

We are using the services module to provide a JSON feed for our internal portal to pick up our articles. The page view that provides all files for each node uses the File Usage: Content relationship. ...
0
votes
2answers
67 views

D8 services errors - No route found for the specified formats : */*

I'm trying to get data from a Drupal 8 website to Go application.I created a view that it would display title and body on json format. Here is an example Th when the Go application try to get the ...
0
votes
2answers
56 views

Drupal 7 + Services 3 : anonymous user can't access user/register endpoint (401 access denied)

I'm using Services for providing an external webapp to register new user to the Drupal server. I'm able to login from the webapp, create node and post comment. But I can't have access to user ...
1
vote
1answer
41 views

How to get a Drupal 7 Services 3 custom resource to fire

I have a service endpoint defined in a custom module, as well as a custom resource. They both appear in the Services admin pages, with the resource and its operation checked. When I hit ...
1
vote
2answers
21 views

How to provide link to styled image in a services feed

On our Drupal 7 site, we use the the services module to provide a feed for our internal news to pick up. With services, you create a view for all the data to provide. It is current giving the location ...
1
vote
2answers
60 views

Phonegap user login

I am trying to login from a PhoneGap application. For that purpose, I've got the below code: $('#submit').click(function () { $.ajax({ url: ...
1
vote
1answer
57 views

JSON format for creating users with custom fields using services

I am using Services module to register new users. My registration form has some custom fields like text field, radio buttons and select list. The following is the data I am sending: { "name" : ...
2
votes
2answers
74 views

How to check validity of one time login url by Drupal 7 Services module?

I am developing a client side application and using AngularJS for this. I successfully registered a user. Now my problem is that I cannot find a way to check the validity of one time login url or any ...
1
vote
0answers
18 views

Services 3 - how to create a file in the private files directory

Is there a way to save files to the file endpoint but to the private folder rather than the public.
1
vote
1answer
34 views

Setting OG with Services module

I am trying to POST a node to my site and make it group member. POST body looks like this: { "title":"Update", "type":"mesurement", "uid":"4", "og_group_ref": { "und": [{ ...
1
vote
1answer
16 views

Does the Services module implement caching on GET requests?

Before I build a REST server with the Services module, I'd like to know if the responses to the GET requests are being cached? I searched Google and it seems that caching wasn't implemented, however, ...
1
vote
0answers
15 views

Services + Entity Reference - New revision vs. published revision

I'm using Services to deploy nodes from Site A to Site B, using UUID as the key to keep them synced. If the node exists on Site B, I do a PUT to update it, and if it doesn't exist, I do a POST to ...
0
votes
0answers
51 views

Services: 404 Could not find the controller

I have a strange problem. This is my code: function bd7_services_services_resources() { return array( 'get' => array( 'index' => array( 'help' => 'Ritorna le ...
1
vote
2answers
58 views

REST Server with my module service returns 404

I have set up my drupal REST using REST Server and services. Also I have created my own module which implements hook_services_resources(). I have configured REST with to use my resource and node. ...
1
vote
1answer
43 views

Can you get the itok value programmatically?

I appreciate the 7.20 security measure that requires a itok parameter for generating new images, but I need to expose that to Services / AJAX driven projects. Can you get the image token ...
0
votes
0answers
22 views

Use Services module to send email?

I have a non-Drupal site that has a sign-up form. I'm using the Services module to submit user creation requests via ajax. This works very well. Now I need to add a secondary action that will send a ...
1
vote
0answers
40 views

Setting Drupal Image Field via Services, and image won't attach to node?

I'm uploading an image via my iOS app and setting a created node's image field to the image through Drupal Services. Everything appears to be correct (see uploaded photo from 'Recent Logs'). However ...
1
vote
0answers
39 views

Where can I start debugging php for the user/create action in the Services module?

I'm trying to create a user via the REST API. I was able to do it successfully using the REST Client Firefox plugin, but when I actually try to call the URL via code, I get no response. No errors, ...
0
votes
0answers
28 views

GENERATE PDF WEBFORMS DRUPAL [duplicate]

I istalled webform2pdf and tcpdf for download forms and i create form i cconfigure webform2pdf but when i Click in download pdf on the form that i was created i have a error say : Fatal error: Call ...
1
vote
2answers
40 views

privatemsg and services fully integration

Does there exist any module even sandbox or starting point module (not ublished on drupal.org) to help achieve privatemsg crud operations over services module.
0
votes
1answer
68 views

Services 3 - updating a custom field in a user account

I'm using Postman in Chrome to test my services. I'm sucessfully able to create user accounts using the following: Headers: Content-Type /application/x-www-form-urlencoded X-CSRF-Token ...
1
vote
1answer
47 views

Create commerce product through web services

I want to create products using commerce services resource module. At this moment, I can create a product calling the resource .../product with POST, but It seems that It only creates a product ...
1
vote
0answers
34 views

How to call Ubercart functionality using drupal 7 rest services?

I am using Drupal 7 with Services module for our phonegap application. In that web application we are using Ubercart module for payment gatway method. I am fetching product list from web service but ...
4
votes
1answer
196 views

Authenticated REST requests becoming anonymous user

I'm new to the services and rest_server modules (and RESTful APIs altogether.) As I understand it though, the steps are basically this: Send a post request to /api/user/login with the username and ...
0
votes
1answer
40 views

Drupal 7 Time out when trying to delete user using Services REST API

I am using Drupal 7 and the Services module to manage user. Logging in and creating users works just fine. However, when I try a delete request I either get this response: <b>Fatal ...
1
vote
1answer
44 views

What's wrong with my GET request? (Commerce Services, REST)

I'm developing a mobile app to connect with my Drupal Commerce (Kickstart) store, using a REST server. When I do GET: endpoint/rest/product it retrieves the products list <result ...
1
vote
0answers
45 views

Access denied or format unknown on field in Services Views

Installed the following modules in Drupal 7 Services Services Views When creating new services view, I am facing the following issue. nid and title fields shown correctly, but other fields ...
1
vote
1answer
84 views

Problem attaching files to nodes with Services

I'm trying to attach files (images) to nodes via Services 3 from an external app using JavaScript. From what I understand (and doing) is: 1) Create a node posting JSON to my endpoint ...