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

learn more… | top users | synonyms

-4
votes
0answers
15 views

How to records each view of node with user uid and timestamp by service [on hold]

I want to create a service in drupal .I want store timestamp and uid when views node . Something like module node view count in drupal but it is service. Please help me thanks in advance
0
votes
1answer
20 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
1answer
31 views

Error login user after register in drupal

i have issue . I am working with a fresh copy of Services 7.x-3.7 / user resource enabled. A POST to api/user/register is made with Content-Type header application/json and body: { "name": ...
0
votes
0answers
23 views

CSRF validation failed?

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 ...
0
votes
0answers
11 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
17 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 ...
1
vote
1answer
41 views

How to use Drupal 7 Services Basic Authentication?

How to use Services Basic Authentication module? I want to add http basic auth for my service. I have installed it and enabled it on my end point configuration. I got this "HTTP basic authentication ...
1
vote
1answer
24 views

REST Services documentation for end client

After creating a REST services using Services module there is always somebody who develops a client for you endpoint. And this developer must know which services we have, which parameters to pass, ...
1
vote
0answers
22 views

Drupal Services node filtering based on taxonomy terms

I followed this post, I am able to filter nodes based on content type and other parameters http://test/api/node?parameters[nid]=1&parameters[status]=1 but I am not able to filter based on ...
0
votes
1answer
9 views

Webservice endpoint with hook_services_resources()

I've stumbled upon some limitations of the services module. I wanted to create the following endpoints: public/events/ public/events/categories public/events/resources public/blogs/ I wanted to ...
0
votes
0answers
30 views

Creating a user using Services results in user not being able authenticate using HTTP Basic Auth

I'm developing a backend for an Android application using Drupal, and I've run into somewhat of a weird problem. I'm using Services and Views for the input and output of various content types. In ...
0
votes
0answers
15 views

How to return the URL Path alias of nodes using views & services

I've created a view that returns json content through a RESTful API (using the modules: views & services) but I'm facing troubles when I try to return the URL alias (path) for each individual ...
0
votes
1answer
12 views

how to send a exposed filter when use Service views

I create a exposed filter of field field_nick_name. and I visit this link http://drupal/daxuebao/api/views/user_search_by_nick?filters[field_nick_name]=a and this link ...
0
votes
0answers
13 views

Services XML-RPC referencing custom fields when user.create

I'm trying to setup Services + XML-RPC server to expose API for external website that will be creating users on my website. What I'm struggling with, and cannot find any information about - is ...
0
votes
0answers
21 views

How do I test that services module with plist server is working correctly?

I'm trouble shooting an old Drupal 6 site that is the back end for an iOS app using the the plist server module and DIOS-SDk for iOS. We are trying to move the site to Pantheon and are having nothing ...
1
vote
1answer
16 views

Services Views Multilangual

I am totally new to Drupal trying to build a CMS just as a data entry level to gather data, I built a Service View that will retrieve the content of the node and show it as a JSON object , I have a ...
0
votes
0answers
15 views

Auto approve an user after registration (Services)

Is there some way to auto approve an user after registration? I don't want to send any email confirming the email or changing the password. I'm trying to build a register/login for an app with REST ...
1
vote
1answer
30 views

Services user/login and system/connect

I would like to know the difference between user/login and system/connect. Thanks!
0
votes
1answer
22 views

D7 Services node view mode

I am using the services module. When I call domain.com/json/node/3 is it possible to ask for a specific view mode of the node ? Something like this ? domain.com/json/node/teaser/3 Thanks!
0
votes
1answer
47 views

How to Post JSON data to Cart service in Drupal Commerce Services

I'm uses Drupal commerce services for mobile commerce. But I don't know how to Post jSON to REST service Cart or Order. With Comment services I"m post JSON successful as below: URL: ...
0
votes
0answers
18 views

Define a resource of Service module, But 'access callback' cannot work

This following is my resource: For clearly read, I delete some line. /** * Implementation of hook_services_resources(). */ function baidu_push_services_services_resources() { $resources = ...
0
votes
0answers
37 views

$_POST returns empty value in custom service

created a custom service resource to catch some data from the user through post method. but while I am accessing the service ie http://dev.localhost:8082/rest/send_mail/retrive.json Query: curl ...
0
votes
1answer
73 views

create node with taxonomy field using services in drupal 7

I am creating node from my android app using services 3. I hit this url www.mysite/endpoint/node with the following json: {"title":"my act for ...
0
votes
0answers
46 views

Xdebug can not work with curl when add SESSION and Token

My development environment: PHPStorm for write code and debug Xdebug development module with Services Module curl command line for test Service RESTful api I test my Service api like this ...
0
votes
1answer
28 views

Services to receive json

This might be sound like a very foolish question. I want to expose a service to receive json file from client side in GET or POST format through which I can send an email. what should be my initial ...
1
vote
1answer
22 views

Statistics module not effect with Services module

I created a Services Views, I added a Statistics field(total view) to the Views. Then I try to use the browser to visit the node through RESTful api, like this url: ...
0
votes
0answers
43 views

Unable to delete file from node in drupal 7 using services

I want to delete a file from android app. I am hitting this url (mysite/endpoint/file/fid) with DELETE method and I get following response: 1 The response comes with 200-ok status but file has not ...
0
votes
0answers
45 views

Drupal Services Rest API login very slow

I am using the services module with the rest server to allow for user login from external services. While the script seems to work, it is taking around 2 seconds to authenticate the user. Is there ...
0
votes
0answers
25 views

Unable to save audio file to node in drupal 7

I am attaching an audio file to node using services 3 in drupal 7. When I hit my URL: www.mysite/api/nid/attach_file I get an error: STATUS 500 Internal Server Error: An error occurred (23000): ...
0
votes
0answers
19 views

view error report

I created a view for watchdog made it as "error_reporting" with fields watchdog id,hostname,location,message etc. and filter it watchdog type != PHP. Now I am trying to enable my service for the view ...
0
votes
0answers
48 views

2-Legged OAuth with HMAC sha256 secrect key encryption client/server implementation with services module

What I am Trying to do Basically what I would like to do is fully encrypt POST and GET request with sha256 encryption from the client side and send them to the drupal server. The Drupal server will ...
0
votes
1answer
25 views

Services can not create an user with role

I follow this answer How to create user with role through REST service (Drupal 7) {"name":"user343","pass":"kes35@r4","mail":"user343@sample.com","status":"1", "roles":["4"]} But When I check the ...
0
votes
1answer
36 views

End points for services module not working

I have setup an endpoint following this guide. I am getting mixed results, as endpoint/node.xml successfully returns a list of content nodes. When I try and load an individual node as xml, I just ...
1
vote
1answer
67 views

how to correctly use curl command line with Services module?

I try to use following command to create an user: $ curl -H 'Content-type: application/json' -d '{"name":"u10", "pass": "123","mail": "user@a.om"}' http://localhost/test/api/user/register return ...
0
votes
1answer
36 views

Drupal Error log services

Can I create views for error logs, or directly expose them to services? How can I maintain my own error logs and expose them in services?
1
vote
1answer
45 views

How to use Profile 2 with Services?

I want to use Services and Profile 2 together. Like following json code: request: http://localhost/api/user/1 response: { "uid": "3", "name": "test1", "theme": "", "signature": "", ...
0
votes
1answer
41 views

Which parameter do I need to pass for user registration of Drupal service

I have first name, lastname, email, password, confirmed password and gender for user registration like facebook registration when I call the url using poster ...
0
votes
1answer
92 views

Getting “Access denied for user anonymous” when calling a CRUD function

I configured a REST service with the Services module and created a custom service with the CRUD + index functions. If I call the index function like so localhost/drupal/blog/note, it gives me the ...
1
vote
1answer
40 views

Delay in logging Drupal user through Services

I have two Drupal7 sites. I am using a service that allows a registered user to login using session authentication. On the site that performs the call to my remote service I measured the time when I ...
0
votes
1answer
37 views

Difference between hook_services_services and hook_services_resources

I'm doing this tutorial to get familiar with the concepts of the Services module. In that tutorial, you implement a custom service for the Services module. Therefore it uses hook_services_services. ...
0
votes
0answers
60 views

How to attach/upload a file to node using restws?

I've got a content type with "File" field and "File" widget. I am successfully able to create a node without a file using restws. But, if I want to attach a file to it, it just doesn't allow me to do ...
0
votes
0answers
28 views

Push notifications to remove a device

I've started working with this module, and I've managed to register devices following the instructions posted here. I am trying to unregister devices, but when I send the HTTP delete request (sending ...
0
votes
1answer
25 views

URI for actions of services

I have defined the following service. 'salesforce_subscriptions' => array( 'operations' => array( 'delete' => array( 'help' => 'Remove subscriptions from SalesForce', ...
1
vote
2answers
271 views

Login with a REST service (services module)

I work with Drupal 7 (services 3.x) to implement a REST service. When I test a login request with this script: $service_url = 'https://dev.mysite.org/api/blog/user/login.xml'; // .xml asks for xml ...
4
votes
3answers
144 views

How to use multiple values for an exposed filter via url

On my current setup I'm exposing a view that outputs json through a service. The view can be called like this: http://domain.com/api/books.json. I also exposed a filter to a referenced content type ...
1
vote
2answers
186 views

How to create user with role through REST service (Drupal 7)

I could able to create a new user by the following JSON format.(Using POSTER add-on to post this data to REST service.) {"name":"user34","pass":"3323","mail":"sample@example.com","status":"1"} My ...
0
votes
1answer
38 views

Fetch Drupal nodes as json by url/title

Our Drupal system has the Services module enabled and is able to return nodes as json using the following url format http://www.example.com/my_endpoint_path/node/123.json But I want to retrieve a ...
0
votes
0answers
204 views

Attach file to post using C# RestSharp and Drupal Services

I'm writing a C# app that posts to Drupal using Rest calls to the Services module, I can connect and create new nodes easily but I cannot figure out how to attach files to the nodes. Using the ...
1
vote
1answer
17 views

Is it possible to request multiple nodes in one request using Services?

I would like to be able to make one request to the Services module node resource and have it return more than one node in the response. Is this possible?
1
vote
1answer
26 views

Envoking a web service method with hyperlink

I have successful connected website with a web service SOAP. The SOAP PHP library is working great. So far I've used a forms that corresponds with the web service, but now I want to invoke a specific ...