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

learn more… | top users | synonyms

0
votes
0answers
18 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
20 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
12 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
22 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
16 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() { ...
0
votes
1answer
14 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
23 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
20 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
18 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
31 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
16 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
55 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
45 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
34 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
41 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
41 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
70 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
16 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
29 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
14 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
14 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
26 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
50 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
32 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
18 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
37 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
37 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
38 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
49 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
38 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
30 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
152 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
38 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
41 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
36 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
59 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 ...
0
votes
1answer
33 views

Response comes after 6 min while creating user using services module of Drupal 7?

I have a client side application developed in angularJS. As i am sending POST request to Drupal to create user, user is getting created without any delay if i check in Backend. But i get response ...
0
votes
1answer
69 views

Drupal 7 Services module user register and login test

I am trying to register and login users via services module in a Drupal based site. Versions I am using: Services 7.0-3.11 Drupal 7.36 The endpoints for this service is shown in the below code. ...
0
votes
1answer
59 views

Can't create/update resources with Services module

I can't create/update nodes, taxonomy, users, etc., with Drupal Services. I can log in, retrieve system connection info and log out. Also, I can retrieve a node, user (all details), taxonomy term, ...
0
votes
0answers
22 views

Drupal Services returning 404 status code even though they're giving me the correct data

I'm using Drupal Services to get JSON for an Angular app. Everything works fine on my local (Mac OX 10.10, Apache/2.4.9), but I've just deployed to a DigitalOcean instance (Ubuntu 14.04, Apache/2.4.7) ...
0
votes
0answers
48 views

App mobile with social login and login via services

I have an app (cordova/phonega) and a Drupal 7 site. In Drupal 7 site I have "HybridAuth Social Login" that permit to my users to register and login with FB/G+/other social networks. Now I want to ...
1
vote
0answers
41 views

How to use API versioning with the Services module?

I'm using the Services module to produce a REST API. According to the official documentation, there is a way to version services resources. I believe version here means supplying a single API (e.g. ...
0
votes
0answers
8 views

services display for search index based view

I am building a search page using view. the view get results from search index created and have indexed nodes and it works fine and display results as expected the problem comes when trying to add ...
2
votes
1answer
37 views

How can I allow access to my website via services only?

I am getting lots of spam in my website. Here are some modules I tried as a remedy: Honeypot Http BL No luck yet however. Now I decided to make the site available only for web services only, ...
0
votes
1answer
15 views

Services 3: How can I get a list of the roles in a system, via the REST API?

Similar to How to Retrieve all Forums, how can I retrieve the list of roles in a system via the Services REST API? This is Drupal 7, Services 3.x. Are roles terms in a taxonomy vocabulary ?
0
votes
1answer
18 views

Services 3: how to create and delete a forum? via POST to taxonomy_term?

I'd like to be able to programmatically create and delete Forums on a Drupal 7 install, via the Services module. I want to send in HTTP requests and have those things happen. I know how to create a ...