Questions tagged [8]

Version tags should be used for questions that apply to a version only, not to merely say what version a site is using.

Filter by
Sorted by
Tagged with
5
votes
3answers
13k views

How do I consume REST as a client?

I need to import on node save information from a third party REST server and map that data to an entity that references the node saved. There will be a field in the node that the user can input an id ...
7
votes
2answers
3k views

drupal HTTP POST data

How do i send HTTP POST/GET data to drupal? for example: I've got a html form: <form action="mydrupalcite.com" method="get"> <input type="text" name="title" /> </form> how do ...
2
votes
1answer
2k views

Drupal7 REST webservices API KEY vs OAUTH two-legged authentication for clientside JS consumer library

I'm working on an Drupal7 API, using REST services, and consumer JS library (no server code). I'm not trying to authenticate/authorize the end-users, only to identify and allow access to the '...
3
votes
0answers
3k views

Clear example of Service module authentication and authorization

I've been playing around with Service module, which it seem the best module for exposing web service specificaly I have REST architecture. Nevertheless haven't been able to clear how does the ...
3
votes
2answers
1k views

Getting Parse Error during installation of Drupal 8

I am getting the following error while Installing Drupal 8. Parse error: parse error, expecting T_CONSTANT_ENCAPSED_STRING' or'('' in var\www\html\core\includes\bootstrap.inc on line 3 When I ...
1
vote
1answer
1k views

Allowing authenticated users to create files through Service/Restful (Drupal 7)

I have setup a restful server running with the services module. I have also enabled to file resource. Using this setup I can successfully login from my client application, authenticate the session, ...
2
votes
1answer
2k views

Theme settings not getting saved

I created custom settings for my theme for storing email, fb url, twitter url and g+ url. Everything is coming properly but the settings are not getting saved. I have no idea whats wrong. All the code ...
1
vote
1answer
2k views

JSONP requests not working in REST server

This is related to a bug report I filed just moments ago. If there's someone who has successfully used the REST server in the Services module with JSONP requests (cross-domain), I'd be happy to hear ...
3
votes
3answers
866 views

Receiving XML Posted data

I have a question about what would be the best way for a module to accept a posted XML file via a web service. What I am trying to do is receive the file, read through the contents of the file, and ...
4
votes
1answer
1k views

Why does drupal_http_request return a 400?

I am having issues sending a POST via my module. In my browser's REST client I get a 200 with POST https://mydomain.com username=myuser&password=password1 So I know that the service is working ...
2
votes
2answers
405 views

How to authenticate a user which exists in an external site?

I would like to authenticate a user which exists in an external site. Here is a use case: In Drupal, user enters his username and password and hits submit. Drupal tries to find that user in it's ...
3
votes
1answer
2k views

Match JSON POST data with custom node fields

Is there a fool-proof method to generate a correctly formatted JSON data object to be received by a create node resource given by a REST server, defined with Services in Drupal 7? I have setup a REST ...
0
votes
1answer
197 views

cache a rest server index request

I created one custom module for rest server, i created own resources and i want to be able to cache index request, for return a 304 with using http request if - headers. I cannot find information on ...
20
votes
4answers
23k views

How to turn off drupal registration

Recently I've been receiving a lot spam registrations. My website is quite basic and I do not need for users register. what would the likely url be that the spam bots are finding? is there a way to ...
2
votes
1answer
1k views

How to customize the data retrieved by a REST call?

I've enabled the REST server (plus services) and can retrieve user profile data at www.example.com/endpoint/user/123 How can I customize the data that's being retrieve? I want to not include the ...
5
votes
1answer
108 views

Is there a firm or preliminary decision on which modules will leave Core for 8?

I seem to recall I've seen a more than one discussion about breaking out certain less than maintained modules from Core. They would presumably be moved to contrib instead. Currently I can't find any ...
1
vote
2answers
121 views

Would a cached page in Drupal 7 be considered, solely by definition, RESTful?

I'm thinking about how to explain the definition of a RESTful interface and am wondering if a cached page in Drupal would, purely by definition be considered RESTful: http://en.wikipedia.org/wiki/...
0
votes
1answer
1k views

Does RESTFul server running with services module really support multipart/form-data request parsin?

I have been trying for a long to get a file upload to work from my lisp application using an HTTPPost. I am running the services module on Drupal 7 with the a RESTFul server (with the file resource ...
5
votes
1answer
2k views

How can I PUT a new file to a node using services 3 without overwriting the existing file?

Using Services 3 I have it working fine to add a file using endpoint/file {"uid":"1","filesize":"99999","filename":"whatever.bin","file":"BASE64_ENCODED_DATA"} and also to add a node with that file ...
3
votes
2answers
1k views

Using REST API for data storage for user definable content

I might be barking up the wrong tree completely however I am trying to achieve the following. Drupal 7. Custom REST web service which can hold user definable content types. These pieces of content ...
1
vote
0answers
94 views

How to best store and expose external route based location data for use in views/charts/openlayers?

I have a large amount of different route data (hundreds of thousands of different location pairs per week and some accompanying data for each pair such as datetime, speed, direction) that I am parsing ...
2
votes
3answers
613 views

drupal 7 restful server VS seperate Restful server to access mysql. Can a restful server be on a subdomain

I am trying to figure out which would be easier to setup and maintain, while keeping the speed average or better. I have setup a Drupal 7 site on godaddy with their Deluxe 4GH hosting plan. What I ...
2
votes
0answers
112 views

REST server or other way to do a password reminder

I see in the services 3 module that there is not a password reminder functionality yet although it has been discussed. What I want to know is whether there is any other way that I can call for the ...
10
votes
5answers
6k views

Creating comments and nodes with Services 3.x and JSON

I'm having trouble getting services to recognize a POST to /comment.json. I have a similar issue with creating nodes as well. The following is the error I get: HTTP/1.1 406 Not Acceptable: Missing ...
0
votes
1answer
718 views

Populating file fields with an http-request with the Services module and a REST Server (Drupal 7)

I need to add content trough a node.create and one of the fields in the content type I am adding is a file field. So far I have been able to get my Services module set up with REST server to accept ...
1
vote
1answer
271 views

Trouble populating text field widget while executing node.create through Service using Rest server (Drupal 7)

I have a Rest server running using the Services module which is setup to receive node and user requests. I have also created a new content type with the following fields: I am able to add new ...
0
votes
1answer
5k views

Trouble with session ID and Drupal cookies when trying to establish a connection with Service Module and http-post

I am trying to complete an http-post between my common lisp application and my Drupal Site running Services and a Rest server. Currently I have my rest server set up to accept user login, and using ...
22
votes
7answers
61k views

How do I clear cache using an SQL query?

After a module update, my site has become unusable, and only shows a php error message. I tried circumventing the problem with drush cc, but that didn't help. Also tried with a custom php script but ...
1
vote
1answer
926 views

Add Object in json file generate by services module drupal

I need some help about this problem. I need to add object that encompasses the hash of my json file. I use services module in drupal 6 for generate xml and json file from my nodes. So, when i view my ...
2
votes
2answers
2k views

7.10 Getting node as authorized user via Services 3 and REST

I am new to Drupal. My goal is to use it for staff to manage their own content, then retrieve their content from nodes via REST to the existing public website. Using Drupal 7.10, Services 3. Drupal ...
5
votes
3answers
5k views

Problem installing REST Server module

When I attempt to enable the REST Server module, I get the following error message: A library is missing for rest_server to work (Currently using Missing library Please download spyc and create a ...
0
votes
3answers
157 views

How to execute custom code on user signup

I need to do a REST request every time a new user signs up. The REST request returns some data that I need to store for the Drupal user account, and be able to present as content somewhere. What is ...
4
votes
1answer
2k views

How does the service module work?

i am using drupal 6 and services 6.3x module but i am unable to use this module completely. I have enabled rest server module also. I added a new service and added resources to it. I added node ...
18
votes
9answers
44k views

Create template file for views block

There is a lot about theming custom blocks, but what about blocks created by views? My views block has id: block-views-posts-listing-block, I try many ways for naming template file, ex: block--block-...
4
votes
2answers
4k views

Drupal 7 services json node object

There seems to be a problem with the Services module of Drupal 7 when submitting nodes using the node create reosurce, for example I can create nodes just fine, even with custom fields, but the ...
20
votes
3answers
3k views

Which contributed modules are being moved into Drupal 8 core?

There were a significant number of D6 modules (or versions of) that were pulled into D7 core. I am wondering if there are any for D8?
3
votes
2answers
2k views

Creating a node using Services 6.3 REST

I am trying to create a node using the rest service. I am hitting /myendpoint/node using a post. My header is application/json. I am not sure what I need to post as the data.
1
vote
1answer
6k views

Simple REST request to create nodes

I'm having the following issue trying to create nodes from Drupal 7 to a Drupal 6 install. The target Drupal site is running Services 3.x. Here's my code: $base_url = $params['path']; $data = array(...
10
votes
2answers
17k views

Preprocess variables only for certain blocks

Is it possible preprocess variables only for certain blocks? I have created such function: mytheme_preprocess_block__aggregator(&$vars) but it doesn't works. -- EDIT -- It seems to be fixed in ...
6
votes
2answers
1k views

Programmatically insert webform result

I'm using drupal 6 with the webform module installed. I need to be able to remotely POST, from PHP results to a webform. Pseudocode: <?php //File: ...

1
280 281 282 283
284