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

learn more… | top users | synonyms

1
vote
1answer
18 views

How to send a simple mail to a user?

I'm implementing a function that send the password to a user (if he forgot it). It's a really basic function, all I have is user email here is my function : function my_module_lost_password ...
0
votes
0answers
12 views

Data from another system through api calls in drupal 7 [on hold]

I want to display data from some other system using SOAP API, how can I do that in drupal 7?
0
votes
0answers
26 views

How to use param on an update request in services module?

services provide update service (using PUT request) with parameters on path like : http://localhost/drupal/update_pass/my_resource/83 (83 is a uid) it's because in resource code it looks like : ...
0
votes
0answers
18 views

How to update users password using a custom ressource?

i'm using services module, i want to modify (update) password on users table Here is my ressource : 'client_modification_mdp' => array( 'operations' => array( 'update' => array( ...
0
votes
0answers
20 views

how to make a range to a result query composed of array of arrays?

my db_query_range returns many arrays (sections) and every section contains an array of books (in french : livres). When i limit my result to 10 elements i mean that i want to have 1O books in every ...
-1
votes
2answers
36 views

Drupal 8 Web Services … Callback functions?

I need a web service in Drupal 8 that can allow me to write my own PHP code... it seems like the RESTful Web Services module will only allow me to create/patch/delete the existing content types, ...
0
votes
1answer
18 views

How to insert a hashed password into table users?

I'm using services module, but i've created my own resource 'login', I'm using $data to store username + password. When i use postman, I put a text plain for password, and in my service code i've ...
0
votes
1answer
19 views

Drupal statistics doesnt update when getting a node with service module

I've created a custom module, which should regarding some other posts help updating the daycount. But it just doesn't get updated. function ...
0
votes
0answers
17 views

Can I make a custom resource on services with 2 args (int) to retrieve with?

My custom resource consists of retrieving with two arguments that are : entity_id and uid from a custom table i've created. It doesn't work for now Can I do that : ...
0
votes
0answers
9 views

update request via services error with datetime field

I have a strange issue happens when update user profile: The form have datetime field and updated successfully, but when the client tries to update other fields it gives two warnings Warning: ...
0
votes
1answer
25 views

How to retrieve a file or image from a content type?

I'm using services module to get data from database, among those data there is an image. All fields are loaded except the image, the uri seems to be wrong. here's the postman response : ...
1
vote
2answers
18 views

How to add a comment using service api when uuid_service module is enabled

How to add a comment when UUID and services are enabled The url which we tried is : http://localhost/api/comment/uuid_of_new_comment (PUT request) with json raw data: { "comment": { ...
0
votes
1answer
55 views

how to insert an array in another one?

This is an index (of module services) I created a resource that index books on a home page of a mobile app( this is not the most important in my question) I want to get books that have same tid (from ...
0
votes
2answers
17 views

How to sort node resource in index call in ascending order the in service module

Hi I am using service module 7.x-3.12. I am able to fetch the node resource in index call on several different parameters and its working fine but I am stuck in a situation where I need to fetch the ...
-1
votes
0answers
12 views

log out an user via custom service, user is never logged in

i'm struggling with the services logout issue, here is how I proceed : calling the login function returns me many data, including sessid and session_name i'm composing the login cookie as following: ...
1
vote
2answers
33 views

How to alter query of services module

I am using service module 7.x-3.12. The index call by node resource provides provides node related data but only from node table. I can't fetch the value from custom fields of a node. So I want to ...
1
vote
1answer
18 views

How to put multiple fields in an index operation on a GET HTTP request with services?

I'm working with the module "services" everything's ok with a get request, note that i've create my own custom resource with CRUD operations, the "retrieve","update" are ok but the problem is with the ...
0
votes
2answers
25 views

Drupal 7 posting to Services module in Ruby leads to 403 error

I am writing a Ruby script to ingest content into Drupal 7. This is on my local machine. I'm using the Services module and its rest service to GET and POST. I could log in and grab the csrf token and ...
0
votes
1answer
23 views

How do I create a node using web services and Anonymous user?

I have successfully installed the Services module and created a service with which I can retrieve a node or even several nodes (using Views Services) I've now configured an endpoint, whose purpose is ...
3
votes
4answers
261 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
21 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
34 views

How can I use batch process in drupal without browser? [closed]

How can I use batch process in Drupal without browser? I want to use batch process in headless Drupal.
0
votes
1answer
46 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 ...
0
votes
0answers
47 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
21 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
31 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
68 views

Services authentication in Drupal 7 [closed]

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
88 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
22 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
33 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
34 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
3answers
43 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
23 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
117 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
24 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
23 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
39 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
22 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
81 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
70 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
54 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
80 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
86 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
82 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
24 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
2answers
49 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": [{ ...