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

learn more… | top users | synonyms

0
votes
0answers
6 views

When I request a _format=json of a node, the default values of image fields are not returned. How do I get those?

In the content type I have created an image field with a default value. When I create a new node and decide "default value" is fine and I save the node then when I request a _format=json of this ...
0
votes
0answers
28 views

Why am I getting Access denied on PUT or DELETE?

I'm making an ajax call to update a node like below, and I am getting PUT: http://www.example.com/services/node/924.json 403 (Forbidden). 403 suggests that user doesn't have permission, but I granted ...
0
votes
0answers
21 views

How can I login via twitter on mobile app using drupal api services? [on hold]

Is there any module available that helps users login to our site using a social media mobile app (Facebook, Twitter, Etc) for drupal 7?
3
votes
1answer
32 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":{ ...
0
votes
0answers
17 views

Drupal, 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 ...
1
vote
2answers
78 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 ...
0
votes
1answer
23 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?
2
votes
0answers
34 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 ...
0
votes
2answers
45 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: { ...
0
votes
1answer
48 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 ...
0
votes
0answers
12 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
0answers
19 views

How to add my additional parameters and alter the index operation using Services Entity Api?

Hi I am using service module 7.x-3.12 along with Services Entity Api. I am able to fetch the entity node object in index call on different parameters provided by the module (string) fields - A comma ...
0
votes
1answer
20 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
1answer
32 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
1answer
39 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
1answer
25 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
2answers
45 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
1answer
36 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
2answers
46 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 ...
0
votes
2answers
54 views

JSON fromat for 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
0answers
18 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 ...
0
votes
0answers
330 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 ...
0
votes
2answers
16 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 ...
0
votes
1answer
45 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 ...
0
votes
1answer
38 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 ...
0
votes
0answers
14 views

Services module setting not getting saved

I have installed services module with all the dependencies, Its working fine with desired result on localhost. but when i try to set resources for services endpoint, online, the settings are not ...
0
votes
2answers
29 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 ...
0
votes
0answers
13 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
0answers
26 views

REST on node_type does not return field list

Why a GET call on /entity/node_type/CUSTOMTYPE returns only the node type base properties, not the field list and definitions. How to get them?
0
votes
1answer
24 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
1answer
27 views

create product programmatically in drupal commerce

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; ...
1
vote
1answer
12 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" ...
0
votes
0answers
17 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
1answer
28 views

How to customize drupal web services error messages

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 = ...
2
votes
2answers
38 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 ...
0
votes
0answers
24 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
1answer
25 views

Using services to post date field

I am using services3 module, I want to post a node of type location. Everything goes well except created_date. I am using date field for created date and my code looks like ...
0
votes
1answer
24 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
1answer
43 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 ...
0
votes
0answers
8 views

Services Entity timestamp range in REST

I am using Services and Services Entity modules. Here is a problem: I want to pull list of entities and their fields which are created in some time range. Here is what I have that works: ...
1
vote
0answers
137 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() { ...
1
vote
1answer
45 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 ...
1
vote
0answers
22 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 = ...
0
votes
1answer
34 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 ...
0
votes
1answer
14 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
1answer
84 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:// ...
0
votes
1answer
94 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" ...
0
votes
0answers
34 views

how to delete the private messages by using services module?

I have tried with this module privaetmsg services to integrate PrivateMSG functionality with Services. but in this privatemsg services module delete and update is not there. but i have tried with ...
0
votes
0answers
37 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
1answer
37 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 ...