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

learn more… | top users | synonyms

0
votes
1answer
11 views

Get Instagram realtime count likes

Here is how the application is structured: A cronjob runs every 3 hours making the Instagram Recent Media call -https://api.instagram.com/v1/tags/myhashtag/media/recent?access_token=ACCESS-TOKEN If ...
0
votes
0answers
13 views

REST login rejected with valid credentials

I can get a valid response from the server with the following url http://example.com/mysite/my_path/my_alias/retrieve?api-key=my_key the following code returns a 401 $base_url = ...
0
votes
1answer
22 views

Drupal Services 3.x - Custom error output

Is there a way to control the output in the drupal services? Example, if a argument that is required, it not provided in the call, I get the following output as a JSON array. Missing required ...
0
votes
2answers
24 views

Drupal & Services (REST): how to session authentication

i've read some tutorial and doc but i'm a little confuse. I have Drupal 7 and Services 3.10 and i want use Session Authentication. So i have, in my services resource, checked the "login" action for ...
0
votes
0answers
16 views

Name space in rest service

I'm using the Services module for rest services. Is it possible to add my custom namespace in rest XML output.
0
votes
0answers
22 views

parameter for getting body content of drupal node

I'm using Services module for rest services. When i am passing this url $base_url/rest/node?fields=title,nid&parameters[nid]=18 I got this result <result is_array="true"> ...
0
votes
1answer
24 views

How to update taxonomy term of a node using services

I have created a new node using Services 3 module successfully, the code is below { "type":"page", "title":"New test page", "taxonomy": { "tid" :"367928" } } Configuration: Drupal ...
0
votes
1answer
22 views

Endpoint services with url alias name

Is it possible the to view xml/json format data with url alias name instead of endpoint_path/node/1 or endpoint_path/node/2
0
votes
1answer
15 views

custom service respond me : 401 Unauthorized: Missing required argument foo

I have this custom service: function zbs_services_resources() { return array( 'productQuestionForm' => array( 'actions' => array( 'send' => array( 'help' => ...
-1
votes
0answers
27 views

How to save a new endpoint for Services in Drupal 7

I am using Services in Drupal 7 Trying to create a new resource and endpoint. I have followed the documentation here: https://www.drupal.org/node/783460 However the documentation isn't great at ...
0
votes
0answers
25 views

how do you alter queries for node/# to select entity-referenced node titles instead of just target_id?

I am using Drupal 7 Services and the generic call of services/node/#. Unfortunately that only gives me the target_id as a property of every field with type entity reference; and my interface does need ...
0
votes
1answer
23 views

Services, OAuth and a mobile app

I'm struggling with Drupal, OAuth and a (Cordova) mobile app I'm developing. I've made a custom module and it exposes data to the Services module. What I want to do now is get that data into my mobile ...
1
vote
1answer
36 views

POST taxonomy item using Services module

I want to POST a new taxonomy item. I'm using Postman in Chrome to test, I'm logged in fine, and I'm posting RAW JSON: { "name": "building", "description": "", "vocabulary" : { "id" : 1, ...
0
votes
0answers
15 views

Why would error / warning / success messages stack up when using a Service?

I have a mobile app that uses Drupal as an API. As you navigate the site everything works as normal with appropriate messages on errors, warnings, and successful form submissions. After doing that a ...
-1
votes
1answer
54 views

Services authentification by X-CSRF-Token

I created REST API by drupal 7 services module. How to do user authentification throw token value only? I means that if request don't have in header 'X-CSRF-Token' global $user should have anonymous ...
0
votes
0answers
27 views

Drupal 7 Services REST - DELETE Request

I'm trying to delete user account via REST api. Here is my code: $service_url = 'http://www.example.com/rest/user/login'; // .xml asks for xml data in response $post_data = array( ...
0
votes
0answers
78 views

Drupal 7 - Services Module - Updating a user field with XML

I will try to convey this with as much detail as possible. I am trying to update a field I added to the user. Let's call the field field_test_field, it is an integer field. This is what I'm doing so ...
1
vote
2answers
118 views

Import a custom field type record and relate it to a node

I've created a module for a custom field type which selects images from cloudinary. Is there a way to dynamically add entries as part of an import script? I've tried updating the database directly, ...
0
votes
1answer
28 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
1answer
20 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 ...
0
votes
1answer
28 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
41 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
14 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
45 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
24 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
35 views

Request for Suggestions - API with Authentication [on hold]

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
31 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
50 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
208 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
103 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
141 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
29 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
103 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
38 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
37 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
44 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
40 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
84 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
35 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
47 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
86 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
28 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
21 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
76 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
306 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
33 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
42 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
45 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
77 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
28 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 ...