Questions tagged [services]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
59 views

Webform Service module : how to upload files

I need to create new submissions to a webform using a webservice. It works well using the Webform Service module, but it seems limited to simple components only (i.e. text...). Is it possible to ...
  • 111
0 votes
1 answer
50 views

How to delete file using drupal_form_submit?

I'm using rest services with a custom resource on node update, i want to build the correct variable node structure to delete one of the files on a file image multiple fields. I removed the file ...
  • 409
1 vote
1 answer
30 views

Comments are Posted anonymously

I am using Services Module in Drupal 7. When I try to POST comments, these comments are Posted anonymously. I am sending POST request to ?q=endpoint/comment.json with this Body { "nid":"401","...
  • 157
1 vote
1 answer
173 views

Can't save location when posting node through services module

I am using services module to post nodes using rest/json. The nodes also contain images and location. So far I can upload the image and save the node, but the location is not saved. I receive no ...
  • 109
0 votes
1 answer
199 views

Invalid datetime format for a field never submitted?

I'm working my the edit page for my mobile app which is fetching data from a Drupal site. I'm fetching data, I'm editing it, and submitting it. However, when submitting back, I'm getting Internal ...
  • 568
1 vote
0 answers
84 views

Services, android application and Leaflet map

I have a tricky question. I have a content type with a map where the user can provide a location by putting a marker on a leaflet map. I am building an android app through witch the user will also be ...
  • 51
0 votes
0 answers
839 views

405 Method Not Allowed

I am using services module with Universally Unique IDentifier to exposed some services. Everything was working fine. But from 3-4 days back i am facing a issue. Whenever i am using PUT method to ...
  • 1,328
1 vote
0 answers
305 views

Custom services returns null

I have extended services module and created a custom web service to get and post data. The problem is on the first rest call I get proper response but on the next response I receive "null" where as in ...
3 votes
1 answer
102 views

How do I edit the output of a field?

I am creating REST API using Services Module in Drupal 7. I have created a View to Get lists of Groups. In this views, I have added a Field privacy which will tell if the group is Private or Public. ...
  • 157
-1 votes
1 answer
107 views

what is the use of universal unique identifier ,why its so much important in deployment?

What is the use of universal unique identifier in drupal7, why its play important role in deploy and service
  • 363
1 vote
2 answers
391 views

is it possible to edit default output of services module?

Is it possible to edit/customize the default output we get using Services Module ? For example I want to edit output which I get from this URL : http://example.com/api/node/39 And I want to edit ...
  • 157
0 votes
0 answers
24 views

How can I collect webform data from 500 Drupal sites as entities in a centrally managed Drupal site?

The scenario is as follows: I have 500 products, each has its own webpage and domain on an Aegir (BOA) server. I want to collect data that customers submit. To start with a simple example: the ...
  • 578
3 votes
2 answers
59 views

is_flagged with Views

Is it possible to to check is_flagged in views ? If I send POST request to this URL it works fine http://website/rest/flag/is_flagged but I want do it in Views ? I am creating REST API using ...
  • 157
0 votes
0 answers
23 views

Services node retrieve -> Access restriction

I am currently working on a project where i am exposing some nodes from a specific content type via services. For the scope of the project I only allow retrieving of nodes from that specific content ...
  • 568
1 vote
0 answers
71 views

How to include an image in the user registration using the module Services

As the scheme would be to post a picture in the picture user or field in another field custom image. I tested with the following scheme and get nothing. The other fields in the record, user, password, ...
  • 21
2 votes
2 answers
205 views

Config for using PUT with Services Module

I'm integrating DrupalGap with Drupal 7 and Services module. Issue I'm running into is that all PUT requests are returned as 405 Method Not Allowed. For example: GET http://example.com/?q=drupalgap/...
  • 39
-1 votes
1 answer
432 views

how do I use hook_services_request_postprocess_alter() to wrap field with CDATA?

May i know how to use "hook_services_request_postprocess_alter" .I have field called 'body' in $result ,I want to wrap it with CDATA.Any idea how to do it? &$result[0]->body is my variable. ...
  • 399
0 votes
1 answer
170 views

JSON through Services View- Authenticating through Parameters when accessing JSON through external app

My Drupal site is generating JSON through Views. I am using Services for that. It is something like this:- http://www.asite.com/api/views/all-date.json Now the problem is that I want to restrict ...
0 votes
1 answer
60 views

Making all REST Server calls to Drupal site as an authenticated user through Services

I am making REST Service calls to my Drupal 7 site to either retrieve or create content. Is there a way I can make all these calls through one specific authenticated user? Thanks.
2 votes
1 answer
203 views

Add a new role using the Drupal Services Rest api

I'm trying to create a new role using the drupal services module. I am able to update a user with an already created role but can't find a way to add a new role. I'd rather not build a custom service ...
0 votes
0 answers
66 views

How to convert multiple node in Json format to use in Apps?

I have created a custom module which takes post argument and sent the result in json format. function cfood_api_get_stadium_list($cn, $city){ $query = new EntityFieldQuery(); $entities = $...
  • 7,253
1 vote
1 answer
86 views

Services Module Authentication with Username and Password in URL

I have to match the following format when implementing Services to maintain some legacy APIs that were poorly written. I understand this is horrible practice and we're going to provide a new better ...
0 votes
0 answers
667 views

Wrap 'full html' output with CDATA in Service view?

I'm using Services and Services Views modules. I have created service display view which includes body field(full html type). In the output url view source body is rendering with <p> ...
  • 399
0 votes
0 answers
65 views

views_embed_view is overriding the output in hook_services_views_execute_view_alter

I'm working with Drupal 7.x with services 3.x and views 3.x module, below is the code which I've in my custom module. When I'm executing the same, views_embed_view() overrides the output of the whole ...
1 vote
1 answer
850 views

404 Not found : Could not find the controller. Services module

I have installed services module and enabled Resource-> node. Now i am using postman to test default services. My configuration details: endpoint is "apis". Server is "REST". localhost url http://...
  • 706
2 votes
1 answer
740 views

Flood control IP bypass whitelist

I am utilising Services to open up some login resources on my site and as a result if multiple users incorrectly try to sign in the entire external website will be blocked because of flood control. ...
  • 194
0 votes
1 answer
68 views

Use a CURL to work with sites without api?

I have this problem. I need to programmatically submit forms on multiple sites and receive data The sites do not use API This task perfectly solves the CURL. Is there a solution to this issue Drupal ...
  • 25
0 votes
1 answer
253 views

Populate Dropdown list from a web service without code

I know that in Drupal a drop down list field can be populated with taxonomy terms, but is there a way without having to go custom (custom PHP development) to populate a dropdown list from the results ...
1 vote
1 answer
249 views

How to display like and dislike count in Drupal Web Services

I'm working with Drupal 7.x, for web services I'm using service & services_views whereas for voting I'm using rate with votingapi as the dependency. I'm unable to get the count of positive votes ...
1 vote
2 answers
98 views

read webforms fields in a mobile app and write submissions to the site database

I have a courses site where students take online courses and then take exams and get their certificates. The courses content type has an entity reference to "Lessons" content type which has a further ...
  • 663
1 vote
1 answer
170 views

DrupalGap Frontpage not displaying

I am following the drupalgap hello world creation tutorial, however all i tried to make the hello world proven to be unsucessful. here is the frontpage config fron settings.js i did the ...
3 votes
1 answer
105 views

Using Services, why is the resource name appended to the endpoint? [closed]

If I want an operation of GET api/v1.0/users and api/v1.0/pages: Using the Services module to create a REST API, if I define a service with an endpoint of api/v1.0/users and enable the user resource (...
2 votes
2 answers
9k views

CSRF validation failed issue on custom services!

I have created a custom services API to save order records in database. I have checked on POSTMAN and it is working fine. But when i request from apps it gives me "CSRF validation failed" issue. Am ...
  • 7,253
2 votes
1 answer
745 views

Post image with raw json?

Using Content Type: application/json I tried like: EDIT: { "type": "article", "title": "Test article with image1", "body": { "und": [{ "value": "test body!" }] }, "field_image":{ "...
1 vote
0 answers
99 views

Services and authentication

I can't authenticate with Drupal 7 and Services module. From REST client I send POST {"username":"username, "password":"password"} to user login endpoint. I get sessid, session_name, token and user ...
  • 11
2 votes
2 answers
2k views

Creating REST service to get complex node type

I'd like some advice as I don't know if I'm doing this the correct way... I'd like to create a web service to get a specific node type. I don't need create/update/delete functionality, just being ...
  • 207
0 votes
1 answer
233 views

How to get services post data(json format) callback function?

I am using services module and rest API its working fine. But i need to create a menu callback where i get the json post data and save in database. How to get the json data in menu callback?
  • 7,253
0 votes
0 answers
90 views

How do I POST a new node using the Services module and uuid?

I tried several ways to POST a new node to a Drupal site, but I have failed. I have installed and configured the Services 3 module (D7) with UUID, and created a service end point at services. I am ...
  • 1,328
1 vote
2 answers
314 views

How to modify/add addition variable to service json after successfully register.json?

I am able to get the response after register using service register.json Response: { "uid": "10", "uri": "http://example.com/apps_api/user/10" } Input: { "name":"smart", ...
  • 7,253
3 votes
2 answers
1k views

User login API for social login from mobile apps

I have installed HybridAuth module for social login (Only Facebook & Google) and It is working fine. I need the same functionality for mobile apps. Like the user can able to login using the ...
1 vote
0 answers
16 views

Updating comment date using services module

I am trying to update comment date using services Drupal module. I can see that every comment contains following two dates, but I can't update them using command below. 1451929300 1451929703 curl -H ...
0 votes
1 answer
49 views

Service module contextual filter

This answer from 2 years ago (to which I am not allowed to comment) to the question "How send argument to Services Module (Views+Contextual filters)" contains something about passing contextual ...
0 votes
1 answer
1k views

Webservices to create (Register) a new user

I am planning to write client apps which connects to Drupal 7. I like to create new users through the app, have come across some literatures but I am not sure if the approach is secure and also ...
1 vote
1 answer
106 views

Regarding term clarification in the database api

So I was making a custom block, and implemented the build() method. public function build() { $result = $connection->db_query("SELECT n.title, u.uid, n.created FROM node_field_data n, ...
0 votes
1 answer
62 views

Services 3 File upload, create/return image styles

Ahoy all! So, long story short, I'm uploading files to drupal through services from an angular app, and getting a response/url/etc no problem. My question is, how do I enable image styles to be ...
0 votes
2 answers
674 views

How to get user data by providing user name or user profile field

I am using postman. I want to provide the username or a user profile field say roll no and fetch the user's information. What should be the URL. I am able to fetch the user information when I provide ...
1 vote
1 answer
261 views

How to get user data when I provide the uid or username - Services [closed]

I am using postman. I want to provide the username or uid and fetch the user's information. What should be the URL.
1 vote
2 answers
606 views

Getting 401 / 406 error from node creation with authentication

I am trying to create nodes with authentication with the services module enabled. So far I have done following things: Get services token from http://localhost/drupal/services/session/token. User ...
1 vote
2 answers
3k views

User Login with Email Address - Services

Drupal login form allows users to enter their username or email to login into the site. I need to achieve the same thing with services. But services allows users to login with username (not working ...
0 votes
0 answers
148 views

Services links not followed with nginx

I am running drupal on nginx and I have the services module installed (https://www.drupal.org/project/services). I have some views enabled to get and edit web content via http requests. The url's are ...

1 2 3
4
5
14