Questions tagged [services]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
2k views

Service connect, Response for preflight is invalid (301) redirect.

I'm trying to authenticate with headless drupal (hybride app running localy on my computer) to a drupal (7.34) website. I installed cors en services en enabled all the necesary endpoints to ...
  • 353
0 votes
2 answers
25 views

Change the permissions needed in a service to get info from a module?

I'm adding Services integrations to the Room Reservations module. A service I need to expose is the times when reservations can be made. I found a function inside room_reservations.inc (the function ...
  • 113
1 vote
1 answer
545 views

Create file through services

I've been trying to create and update users and their pictures through REST calls using the services module. So far, I've got creating and updating users to work, but creating files to set their ...
  • 209
0 votes
1 answer
512 views

REST Web Services - Return all fields from Content entity association

I am currently using the latest release of Drupal 8.0 (downloaded and installed today). I have two content types. I have a entity reference on one of the content types that references content from ...
  • 137
0 votes
2 answers
70 views

Drupal multisite manager module

I am currently working on an internal project that would host a Drupal multisite platform. For this, I am in the process of creating a site_manager module that will be running in the "main" Drupal ...
  • 568
0 votes
0 answers
72 views

Prevent flooding of Services requests

I'm using Drupal Services along with Drupal Commerce Services to make an e-commerce site that runs on JS/Backbone. I want to prevent a user from being able to flood an API endpoint with requests, ...
0 votes
1 answer
201 views

Drupal views_get_view in custom service

I created a custom service with mymodule_services_resources and I'm calling a function to return some items. This function inside is calling a view with views_get_view. The problem is always return an ...
0 votes
1 answer
552 views

How can I programmatically create products via REST?

I have a module of rest service api, that is used to receive users upload products. Here is my code... function commerce_services_product_create($data, $flatten_fields) { $status =1; $...
  • 251
1 vote
1 answer
55 views

URL for Created Services View?

Apologies for the newb question, but: Is there a way to see the entire URL of a Services View I've created? I know it lets me name the path, however when I navigate to the URL, I get "View not found" (...
  • 239
0 votes
0 answers
31 views

Last update filter

I'm developing an application that will access Drupal using services and one of the parameters used is the date, I used the filter "Content: Updated date (Updated date)" but instead of giving me just ...
-2 votes
1 answer
75 views

How to customize drupal web services error messages [closed]

I am working in web services for ecommerce project, in that i want to customize or remove HTML Tags from drupal error messages., in user module. See my code in below: if ($errors = form_get_errors())...
  • 143
3 votes
2 answers
377 views

How to get live data from a service?

In the UK our weather office provides a live weather data feed. I would like my Drupal site to retrieve data from this service. I've read up on the XML-RPC API that is in Drupal 7 core. I've ...
  • 4,654
0 votes
0 answers
35 views

No reply from rest service after creating two nodes

I had to fill a website with 12000 nodes , so I wrote a c# application which sends nodes (encoded in JSON format) from my local computer to website. using services module proper resources are ...
0 votes
1 answer
76 views

How to provide free tagging ability when saving nodes using services

A content type is going to be saved , this type contains a taxonomy term reference field named field_ucectgry . I'm developing an app so the user can create new node types remotely. Services module is ...
0 votes
1 answer
174 views

Perform "Add to cart" through web services

I am working with Drupal 7 web services. I created few services on my project but now stuck in the commerce's services. I could not understand how can I add an item to cart with some line item ...
  • 213
1 vote
0 answers
891 views

How to resolve 404 Not found: Could not find the controller?

I am new to Drupal and its web services. I am working on user forgot password API by using the Services module. Below is my service resource code: function test_api_services_resources() { $...
  • 143
2 votes
1 answer
529 views

Services CSRF Token request security

A Drupal website that my company is maintaining has a REST endpoint, using Drupal Services (likely not that relevant). One of the systems that I'm writing has to write changes in the system to that ...
  • 209
1 vote
0 answers
30 views

Can't see resource in Services admin menu after adding hook in the module

I'm adding Services integration to the room_reservations module. I added the hook to the module like this: room_reservations.module function room_reservations_services_resources(){ $room_service = ...
  • 113
-1 votes
1 answer
171 views

How to retrieve profile2 form fields using rest services?

We've created a registration form using the Profile 2 module. I want to render this form on an Android app and because of that I want to retrieve the form fields using the rest services. My question:...
0 votes
1 answer
25 views

geofield types failed to add with commerce services

I have added field of type Geofield that failed to save through services despite working well with node and user modules It returns that error 400 : Invalid field_geoloc value given I am using the ...
1 vote
1 answer
277 views

Not able to post comment anonymously: getting 403 error

I am working on phonegap app and using drupal 7 as backend for all json request data. I am using the service module for it. At frontend I am using Angular js in phonegap. I referred http:// drupal....
  • 21
0 votes
1 answer
2k views

Multiple checkboxes in an AJAX calls

I've been developing this phonegap app and I'm stuck with a few things and one of them is multiple checkboxes - I hope you can help. I've got the below code HTML <input type="date" id="date" /&...
  • 568
2 votes
1 answer
338 views

Checking if user is logged into Drupal from another php application using Drupal services and REST

I have an external php application that currently uses Drupal services to authenticate users. It's working fine but users frequently enter incorrect credentials and Drupal's flood control eventually ...
0 votes
1 answer
62 views

Receive a file with Drupal 7

I have a java application that will send a CSV file to a Drupal 7 site through using POST method. how i receive file on drupal side by using custom module I need to parse the file to add data into a ...
  • 365
2 votes
0 answers
261 views

500 Internal Server Error : An error occurred(0): Unknown data property field_group_privacy

I am trying to Create Services to Create Node Type Discussion in a Group using Services Module, but getting the error : 500 Internal Server Error : An error occurred(0): Unknown data property ...
  • 157
3 votes
2 answers
743 views

401 Unauthorized : Missing required argument node

I am trying to Create Services to Create Node Type Discussion in a Group using Services Module, but getting the error : 401 Unauthorized : Missing required argument node In the Header I have given: ...
  • 157
0 votes
0 answers
370 views

401 Unauthorized : Missing required argument values

I am using Services Entity Module I am trying to POST to http://example.com/rest/entity_message and Getting this error 401 Unauthorized : Missing required argument values Can anyone tell what I ...
  • 157
1 vote
0 answers
76 views

How to use this Message Module with Services Module?

Can anyone tell me how to use Message and Services module to create REST API? Is there any other module I need to install to make it work? I am not sure but may be Services Entity API module will ...
  • 157
-1 votes
1 answer
46 views

Is there any possibility to create services to achievement module in Drupal? [closed]

I have using the Achievements module in my site, it's working fine. I have one doubt, I'm using the Services module to consuming user nodes and user details. But is there any possibility to perform ...
  • 223
0 votes
1 answer
901 views

Is it possible to create web service CRUD operations for contributed modules in drupal 7?

I have using a privatemsg module for chating in our site, Privatemsg Services Is it possible to do a web service CRUD operations through this module? any suggestions?
  • 223
0 votes
0 answers
300 views

how can I update user global fields in drupal services?

I have a user account, in this account I added a global fields. I am using services module for consuming users data. I am performing CRUD operations on users account. In this account, normal fields ...
  • 223
1 vote
1 answer
198 views

how can i change new password/confirm password by using services module in drupal

I am using services module to consume users account details. Enabled user in admin->services->resources. URL: https://drupal.com/service/user/23 method : post request body: { "current_pass":...
  • 223
2 votes
1 answer
590 views

How can I return literal JSON from a node as a JSON object in views json?

I have a content type with a field called output. This field will contain JSON. I want to output this field as JSON using Views JSON (in Views Datasource). The problem I'm encountering is views ...
0 votes
0 answers
42 views

how to write web services CRUD operations for perticular Drupal content types [duplicate]

I have Installed following modules; Services Restful Services view Enabled these modules and created one services view for one content type(content type name: employees). Then opened structure->...
  • 223
2 votes
1 answer
631 views

What is the proper URL to get flag service?

I'm running Drupal 7 with the Services module and the Flag Service modules installed but I'm having trouble trying to figure out how to Get countall for a particular post ? Can anyone please tell me ...
2 votes
2 answers
56 views

I am not able to assign a group to a node while creating it

We are using Drupal 7.39 and Services 7.x-3.12 . We are also using organic groups 7.x-2.7 and while creating a node of type attendance (which is a group content). We are not able to assign a group to ...
1 vote
0 answers
402 views

Nested JSON output

I have a Services View display in Drupal 8 which gives the details about a particular article taking the node id as an argument. The JSON output is a flat list of the results. [ { title: "This is ...
1 vote
0 answers
249 views

How do I post JSON data to cart and checkout?

I'm using Drupal commerce services for module for REST API calls, but I don't know how to post JSON to REST service cart and checkout. The product attributes I have are field_taxo_color and ...
0 votes
1 answer
33 views

Oauth social login services not working

Can any body help me out how do I accomplish social networking login using login using loginprovider. I have done this for website using oauth connector. I tried lot but no success for mobile ...
  • 1,359
2 votes
1 answer
79 views

Nested AJAX calls to a site

I've been making this cordova app against this casting agency website, and I've come across this nasty situation where I need to list each user's created nodes. For this purpose, I have created a view ...
  • 568
1 vote
1 answer
67 views

How do I send an email containing the user password?

I'm implementing a function that send the password to users who forgot it. This is the code I developed so far. function my_module_lost_password($email) { global $language; $response = array(); ...
  • 575
-1 votes
1 answer
331 views

Web Services - GET Request Article (HAL+JSON)

I'm trying to make a GET request to a specific article on my drupal 8 website (local). These are the steps I've done: Enabled all 4 Web Services modules at the modules page Created an article (url: ...
  • 776
0 votes
0 answers
48 views

How to update users password using a custom resource?

I'm using services module, I want to modify (update) password on users table. This is the resource definition. 'client_modification_mdp' => array( 'operations' => array( 'update' => ...
  • 575
0 votes
1 answer
419 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 ...
  • 575
0 votes
1 answer
1k views

How can I flag (follow) user by REST API using service resources?

I am using flag module to have the following user function. So that the followers will be able to read the blog of the users that they followed. Now I want to provide api for mobile application, when ...
  • 87
0 votes
1 answer
105 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 : "writer":...
  • 575
3 votes
2 answers
80 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": { "...
  • 129
0 votes
2 answers
235 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 ...
2 votes
2 answers
261 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 ...
2 votes
1 answer
151 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 ...
  • 575

1
3 4
5
6 7
14