Services

Events happening in the community are now at Drupal community events on www.drupal.org.

This is a discussion and working group for anyone interested in the Services module and related modules. This module was created out of a need for a standardized solution of integrating external applications with Drupal, specifically Flash and Flex applications. Visit the issues page for all bug reports. Also visit the Services Handbook for information and examples.

Limit on display

Posted by rgdamalerio on March 23, 2018 at 8:20am

I recently installed service module in my drupal 7. I use api key authentication. when I try to display list of node in my client (browser,android,postman) i found out that the default limit is 20 rows. how to set this as unlimited or set this in query parameter?

Read more
2 comments Categories: ,

Come learn about Drutopia - Drupal as a Service - A framework for an ecosystem of free software distributions

Posted by freescholar on August 11, 2017 at 4:57pm
Start:
2017年08月22日 06:30 - 09:00 America/New_York
Organizers:
Event type:
Related event (ie. not Drupal specific)

August is here, let's celebrate Drupal! Why? - do we need a reason?
While there is a regular monthly meetup there is also a mission to build a Drupal as a Service full featured distribution of Drupal for organizing and campaigns. There is NationBuilder and other proprietary tools that are available, but why not a Drupal solution?

Come learn about the Drutopia distribution and how grassroots groups will be able to easily create a Drupal 8 site with pre-configured selectable features and the SAAS hosting option. Drutopia.org

Read more
Categories:

Getting Started with Services 4.x - Drupal 8 Documentation or Examples?

Posted by markusa on August 11, 2017 at 3:52am

Feel free to yell at me if I've missed something obvious, but I can't seem to find any documentation or examples at all for the 8.x-4.0-beta version of the Services module.

I've created a API module with 7.x-3.x branch of Services, and it worked out great, Tin Can Learning Record Store.

I create my own custom endpoint and resources programmatically, handled GET,PUT, POST, DELETE, and CORS requests.

Read more

Services REST Server: Handling custom headers from within Simpletest

Posted by texas-bronius on May 24, 2017 at 10:09pm

My REST server endpoint is an API that requires a security token be included in a custom header. In my callback (or access callback or anywhere) I can check for this custom header value against getallheaders():

Read more

Services REST server: Best practices for DRY when implementing custom endpoint for a custom model

Posted by texas-bronius on May 24, 2017 at 3:46am

I've implemented Services just a few times now from out of the box Drupal function to custom endpoints, and the current one is my most ambitious (and most meticulous) effort. I want to build it in the way that makes the most sense, and I feel informed enough now to have a decent discussion about best practices.

For a REST server hosted by the Services module, the request flow looks like this, right?

Read more

Drupal services as backend for mobile application

Posted by Sherif Darwish on March 20, 2017 at 8:43am

Hi,
I am developing ionic mobile application and i am using drupal as my backend for authentication & content creation.

It is all working great, however; I am now integrating facebook & twitter login to my app which will login the user using his facebook or twitter account.

My question is, how do i authenticate the same user to my drupal back-end using services so i can deal with this user as normal registered drupal user.

I was going to call the service register then login APIs after successful facebook login then i realized i need to double check if the same user register before

Read more

How can I pass an argument containing periods using Services?

Posted by spuppett on February 2, 2017 at 9:03pm

Is there a way to have arguments passed in the path that contain periods? I have product ids that contain periods, and I'd like something like /info/product.id. In my callback, I'm just returning the argument, and printing a log with Watchdog. Just passing product works as expected, but product.id isn't returning anything and watchdog isn't logging anything.

Thanks

Read more

Retrieve a specific version (vid) of a node : D7

Posted by vkakani on January 20, 2017 at 12:37am

How do we retrieve a specific revision (vid) attributes of a node.

Works : http://mysite.com/endpoint/node?parameters[nid]=5&parameters[vid]=34 [vid=34 is the latest version version id]

Doesn't Works : http://mysite.com/endpoint/node?parameters[nid]=5&parameters[vid]=31 [vid=31 is the second version version id]

Please advise, how to construct the query to pull the a specific version ID related node attributes

Drupal Version : D7

Read more

Guía para Servicios REST en Drupal 7

Posted by casivaagustin on March 21, 2016 at 2:34pm

Hola, les escribo para compartirles este Doc que escribí sobre servicios REST en drupal 7, es una guía bastante completa que surge del trabajo que realizamos en nuestra empresa y la escribí para que todos los que trabajan en la misma tengamos la misma visión sobre como laburar con el modulo Services y sus amigos.

Espero que les sirva

http://casivaagustin.com.ar/index.php/servicios-rest-en-drupal-7-la-guia/

Read more

Consuming SOAP for SSO

Posted by thummel on March 5, 2016 at 1:22am

Hi, I'm looking for a consultant that can help me consume soap for SSO from a third party service.

Read more

Integration of Drupal with c/c++ computational server

Posted by foredoc on December 10, 2015 at 12:16am

Hi,

I need to:

1) use drupal-powered web interface to collect user input (parameters);
2) invoke the computational modules/softwares written in c/c++ on a computational server with the parameters collected from the drupal site.
3) return the computational results to the drupal site.

I have been searching on the drupal sites, and I am wondering if Services module fit into my needs. If it is, can anybody give me some hints on how to achieve my goals?

Suggestions are very much appreciated.

Regards,

foredoc

Read more

Services + Oauth + JWT

Posted by casivaagustin on November 25, 2015 at 11:05pm

Hello everybody, first of all I'm kind of lost here so If I'm not using the right terminology or what I'm saying have no sense please feel free to correct me, second I'm trying to get more information about this subject so any comment is really apreciated.

I'm trying to use Services with the Oauth2 Server but Using JWT.

I enabled the Services module, Created my own custom Endpoints, with no auth, worked perfectly.

I Enabled the Oauth2 Server, configured the server, the clientes, the scope. It worked.

Read more
Categories: ,

How to fetch Views total number of records in page.tpl.php before views.tpl called.

Posted by firoz2456 on June 18, 2015 at 6:16pm

See this image http://prntscr.com/7idx70 for more understanding.

I want to fetch Views total number of records in page.tpl.php before views.tpl called. Is it possible to fetch that row total before views rendered? I am also using contextual filter for this view. Views have page type display.

I have also used module https://www.drupal.org/project/views_record_count. but this will print total number of records on Views header or footer. (Not outside of views)

Read more

Why is a date field posted in one format and returned in a different?

Posted by skybow on May 11, 2015 at 10:14pm

I started working on a C++/Qt library for accessing a Drupal site via Services and a REST server (I'm more into C++ than PHP and Drupal module hacking), when I ran into the following problem: When I retrieve a node via node.retreive request, modify some fields of the returned JSON object and repost the changes via node.update request, Date field content will be killed.

Read more
2 attachments Categories: , ,

Unable to log in following quick-start guide (total beginner)

Posted by EmmyS on April 22, 2015 at 5:38pm

I've just installed the Services module, so I'm very new at this. I'm trying to follow the quick start guide at https://www.drupal.org/node/2424977. I was able to perform the first step (getting a token) using the REST Client add-on for Firefox. But when I try the second step (logging in), it returns nothing. No errors, just nothing.

Any ideas? Screenshot attached (and yes, for this test, "drupal_user" really is my username and password.)

Read more

JSON request to form for creating a node

Posted by darkdim on April 8, 2015 at 3:40pm

Hi,
Please help to properly create Jason request to send a form to create a node

I get an error:

"form_errors": {
 "field_product][und][form][sku": "SKU field is required.",
 "field_product][und][form][commerce_price][und][0][amount": "Discount Price field is required.",
 "field_product][und][form][commerce_sales][und][0][value": "Sales field is required.",
 "field_timending][und][0][value": "A valid date is required for <em class=\"placeholder\">Valid Until</em>."

what am i doing wrong?

the query such

{"type": "deal","title": "Some title",

Read more

Cannot post node as authenticated user from phonegap

Posted by pmunch on March 16, 2015 at 12:46am

Hi all,

I have spent hours trying to figure this out as well as finding relevant code examples, I'm stuck...

I'm building a basic phonegap app that should allow to post a node as authenticated user. I can successfully login, but I cannot further post as this authenticated user thru X-CSRF-Token: I always get 403 - "Access denied for user 001" ...

I summed up the steps I follow in the dummy loginAndPost() function below.

<

pre>
function loginAndPost() {

// Set some vars
var username = "001";
var password = "001";
var server_uri = "http://my-drupal-website";
Read more
2 comments Categories:

Service Module and REST: 404 Not found

Posted by klimpab on March 13, 2015 at 11:00am

Hello! I hope that this is the right place.

I strictly followed this guide. The REST Server is activated. I try to access http://localhost/rest/user/token.json (the Drupal installation is at localhost) via the Firefox REST Easy Add-On. No success. It always gives me a "404 Not Found" error.

Under the "Resources" Tab of the Service Module configuration, all resources are enabled. What am I doing wrong?

Read more
10 comments Categories: , , ,

Drupal Play Day at The Phase2 Treehouse 330 West 38th Street Suite 1405, New York, NY

Posted by dsteplight on February 5, 2015 at 7:57pm
Start:
2015年02月21日 12:00 - 17:00 America/New_York
Organizers:
Event type:
Training (free or commercial)

https://groups.drupal.org/node/457803

Read more
Categories:
Subscribe with RSS Syndicate content

Services

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

AltStyle によって変換されたページ (->オリジナル) /