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

learn more… | top users | synonyms

0
votes
1answer
25 views

Services custom GET operation

How to create custom GET resource operation? I tried many variants in hook_services_resources() but didn't find the solution. Is there way to do this? I want get some data from url ...
0
votes
0answers
9 views

DeployAuthenticationException: Authentication error when try to push the content

I have two sites on my localhost registration and testing. I want to push the content (node having type article) from testing to registration.I am using Deploy module to do this, by following this ...
-1
votes
0answers
15 views

Getting controller not found error in poster and white screen in browser, after clearing the cache [closed]

I am using Drupal 7 and I am new to this drupal. Here I am creating a custom module that fetches some of the details from my drupal site. Using Drupal Services I am exposing an API to fetch some ...
0
votes
1answer
15 views

csrfToken: reget without logout user

I have a site where I use AngularJS to connect to Services module paths. Now, we know that I need to send (for every put connection) the CSRF token into headers request, and this token is linked to ...
0
votes
1answer
25 views

how to get the response in JSON format?

I am using Drupal 7 Services to expose an API, The following is the code I am using to get some of the datails and It is giving the response interms of Arrays, But I don't want the response to be in ...
0
votes
0answers
9 views

Can only create node using Services module if authenticated user has “Bypass content access control” permission

I am using the services module with REST to create nodes remotely. I have just created a new role for the users who will be authenticated through services. I can create a new node fine when the user ...
0
votes
1answer
14 views

Drupal Services 3 Post new node with Image Field and Entity Reference (returns status 200, nid:null)

I'm trying to create a new node using Drupal 7 + Services 3. The node type is 'activity_photo' has an image field, and a reference to a node. This is what I'm posting to the service { ...
0
votes
1answer
20 views

How to automate setting up Services or RESTws?

It looks like xmlrpc.php is of almost no use. I want to use XML-RPC to control my sites but I don't want to set up Services or RESTws manually on dozens of sites. It doesn't look like Services has ...
1
vote
2answers
29 views

Request for Suggestions - API with Authentication

The problem: I need to expose some Drupal functionality to an iPhone App. The App will require some kind of login, which will be the same as their Drupal login. A quick search uncovered the Services ...
0
votes
0answers
13 views

Reference an Image from a Scald ID

I am using the Services (7.x-3.7) module to provide a REST API to our website content. However I have a problem with returning images. I am using Scald (7.x-1.1) to manage our media items. This means ...
1
vote
1answer
25 views

Change user picture via services 3

I'm update user profile data via services 3 but I have a problem with user picture. I send user picture to my web site via services and it works: ...
2
votes
1answer
103 views

Drupal Services 3 Login and CSRF

I'm working on a Phonegap app (JS) anndn I'm confused how to pass along the CSRF token with my requests. Would I need to call user/login.json first and then store the token? For future requests how do ...
0
votes
2answers
46 views

Received “An illegal choice has been detected. Please contact the site administrator” while creating node with taxonomy field via service3 drupal7

I am having an error: {"form_errors":{"field_category][und":"An illegal choice has been detected. Please contact the site administrator."}} Field category is a taxonomy field attached to a node. ...
0
votes
0answers
36 views

404 Not found: Could not find the controller in poster

I am getting issue while using the Services module. I created an endpoint with the path 'api' and a custom module with following code. In resource_two.info file I have written name = resource_two ...
0
votes
0answers
13 views

Change custom value key in views php field

I have a view for which I am creating a service display so that view is returned when my service is called. For one of the fields I am using views php. When I create a value code for this field the ...
1
vote
4answers
66 views

drupal as mobile app backend

Im currently using drupal 7 + commerce for online sales and I have a phonegap app that creates orders. I want to use drupal 7 via a the services module to sync the app sales data with the online ...
0
votes
0answers
28 views

Login error for a XMLRPC REST service

I am implementing a REST XML Service (7.x-3.7) with a Drupal 7.x. I enable a service for logging and logging out process: Resources: I am testing the service with this code: /* login */ ...
-1
votes
1answer
29 views

profile 2 module with services module

i am creating a web service for user registration. I just add some fields in user registration form using profile2 module. How can i integrate this with services module. i just want to make a services ...
0
votes
0answers
36 views

Can not generate correct session in my Service Module of custom resource

I am using Service module to support server for mobile. I am create a custom service resource to switch user: my custom resource: $resources['test']['actions']['test'] = [ 'file' => [ ...
1
vote
0answers
27 views

Help getting node resources filter criteria exposed using services views modules

I am setting up an API using Drupal 7, Services module and services views module. I have got this largely set up and working fine. I have also installed the module: Node Resources ...
2
votes
1answer
51 views

Update user via REST (and under AngularsJS)

I need to update a user fields via REST SERVICE. I'm under AngularJS, so this is my function into my .service() setMyUtx: function (params) { return $http({ method : ...
1
vote
0answers
24 views

Wrong timezone in Views output

I'm using Services Views to create a JSON output of my Drupal site's nodes. These nodes has a start and stop date and time regarding an event. On the site, viewing the node, the time is correct, but ...
0
votes
2answers
36 views

How to create Taxonomy Term using Services?

I've a vocabulary called Tags. I need to create Taxonomy terms under this vocabulary using REST service. So What is the JSON format to create taxonomy term. Similarly what is the JSON format to ...
0
votes
0answers
49 views

Adding node with multi value field using Services

While adding node using REST API, submitting multi-value field is adding only one value to that field. { "title":"test", "type":"article", "body":{"und":[{"value":"this is main body"}]}, ...
0
votes
1answer
22 views

Services Views and combine different field values into one?

I got a site with a profile2 type and a content type that uses the same field containting coordinates (field_coordinates). I'm using Services Views to show these coordinates in JSON but this is where ...
0
votes
2answers
19 views

Drupal services add location

I am trying to add a location to a node using Drupal services. This is the JSON sent to the service { "node":{ "type":"restaurant", "title":"Restaurant from JSON API", ...
0
votes
0answers
53 views

Services Views and Basic Authentication

Our client has a calendar that shows events in two ways: Non-authenticated users see public events that are available for everyone to see. Authenticated users see those public events and events ...
0
votes
1answer
150 views

404 Not found: Could not find the controller

I am creating a resource for service module function noteresource_services_resources() { return array( 'note' => array( 'retrieve' => array( 'help' => 'Retrieves a ...
0
votes
0answers
26 views

I can't get my drupal_http_request to go to the correct function

I am working with Drupal 7, I have a hook_services_resources() set up: function Api_services_resources() { $api = array( 'applicant' => array( 'operations' => array( ...
0
votes
1answer
34 views

How can get five star rating data in drupal 6 services views?

i am using drupal 6.x, added five star(fivestar module) rating functionality to a node in my site. Everything working fine but i want to users rated data in drupal json services for mobile ...
0
votes
1answer
34 views

Correct format of data to send at services endpoint to create node

I have set up a services endpoint using services module and I am using Mozilla Poster add on to test it. I was able to create a user by sending data from Mozilla Poster in x-www-form-urlencoded format ...
2
votes
1answer
64 views

Drupal services REST API and special characters

I'm using REST Services to communicate between two websites. Once a node is updated on the website 1, part of the information is sent to the website 2. This works without any problems. However, all ...
0
votes
0answers
24 views

Using Services module to return authenticated user nodes

I am user the Services module with Drupal 7 to build a quick proof-of-concept web-services. I my server is setup and working with authentication. When I do a simple test to list all of my nodes I ...
0
votes
1answer
59 views

Can't get the authenticated user cookie session to be used when creating a new node via Services 3 endpoint

My application is sending this header to Service 3 endpoint when creating a new node: { 'Cookie': 'SESS255f42d9a87a0df5bf8959d25909fe8c=St8o29NI9Hx84kPo8NuZbpdHWuRgNSS9qy9cQ-QM4rA; expires=Sun, ...
0
votes
0answers
81 views

Drupal 7 Services — hook_services_request_postprocess_alter() does not identify the requested resource

According to the Services API in Drupal 7, we can use hook_services_request_postprocess_alter() to alter drupal's REST response before returning it to the user. This is useful if you want to alter the ...
0
votes
2answers
230 views

Drupal Rest services “access denied user anonymous”

I have created a custom service where I am passing parameters and retrieving result from another file. So to test it I tried on Postman and I put URL with sitename/endpoint/resource and passed ...
0
votes
0answers
23 views

Drupal Content API: show actual values of field collections

I am currently a maintaining a system, and I'm trying to figure out how to expose certain fields using Content API. I have already setup the Content API module, and is successfully returning thru ...
0
votes
0answers
107 views

Commerce services error when adding custom field

If i add any custom field to a commerce order my services API works as expected and returns the details of all orders, however when I add a custom field supplied by the signature field module ...
0
votes
0answers
21 views

How do you complete the REST calls?

I'm trying to pull some data from one site to another, both drupal. I created a json response on the source site with views datasource. I saw that web services client is supposed to be a way to ...
0
votes
1answer
65 views

Services Entity REST Application - Update (via put) Field Collection Data

I am trying to figure out what the format and required parameters are for an update request to a field collection via the Services Module's REST API. I have installed the Services Entity API Module to ...
0
votes
1answer
19 views

Adding a Taxonomy term in a node via services

I am trying to submit a node via an android native app in java. I am using services 3.3, and I am able to login, and submit to a Content type assuming all of the fields are Text fields. But I would ...
0
votes
0answers
19 views

Services Module - expose summary and other fields?

I have set up a rest service that allows me to fetch nodes by content type: http://example.com/rest/node?parameters[type]=publication Is it possible to have this service output all of the fields ...
0
votes
1answer
16 views

Services 3.0 Json string reveived with underscores

I am using D7 services 3.0 and im sending data from an app. I use the json.stringify function before sending the data to my endpoint. However some characters are being replaced by underscores. For ...
0
votes
0answers
20 views

Drupal web services on api subdomain

I want to make some data available through a web-service. So I'm looking into Services module I didn't find anything about using it on sub domain to make it more professional look (api.mysite.com) ...
0
votes
1answer
109 views

Upload Nodes with Image Fields

I'm using jquery mobile and phonegap for a mobile app. I have uploaded an image file and received the fid but the subsequent request to create a node and attach the fid fails. The node is created ...
0
votes
1answer
53 views

What's the data structure that needed by services for posting new node with drupal7 services?

I have content type named "shen" and gona to create new node with services module from crawl machine data. For now, it can login in system and post new node but it can't save image field data. this ...
1
vote
1answer
83 views

Login Error drupal

In 7.x-3.7 .Using POSTER add-on to post this data to service. I try to use following command to create an user: 'Content-type: application/json' '{"name":"u10", "pass": "123","mail": ...
0
votes
0answers
33 views

CSRF validation failed? [duplicate]

Drupal Version is 7 and the Services version is 3.7. I enabled session authentication and I use poster with my request URL to http:/.../user/login.json. I get a "401 unauthorized: CSRF validation ...
1
vote
0answers
31 views

Taxonomy Terms - Views Services

I have created a view of type service that fetches Taxonomy terms, response as following : { data: [ { taxonomy_term_data_name: "Child Term", tid: "6", parent_id: "37", ...
0
votes
0answers
77 views

Easiest Way to Display Node with Field Collection as JSON

I'm trying to quickly get Drupal setup to output data models of pages for an angular application. I was hoping to use views datasource to output the data quickly and it would work great if the page ...