* What it does services_views in combination with the Services module version 3.x and later allows you to access and retrieve views via a service endpoint. * Prerequisites Services module version 3.x and later is a dependency and you should read up about the different service callbacks available from that module and how to set up endpoints and resources. * Configuring with an endpoint Once you have an endpoint set up, visit the resources section of the endpoint and enable the views resource. * Basic Usage The most basic usage is http://example.com/my_endpoint/views/view_name which will retrieve the whole view. A useful tool in firefox for testing services in general is the HttpRequester addon that lets you do all sorts of CRUD. A basic example in HttpRequester 1. * URL: http://example.com/my_endpoint/user/login * Content type: application/json * Content box: {"username":"blah","password":"blahblah"} * Click post. You should get a 200 ok reponse. You are now logged in. 2. * URL: http://example.com/my_endpoint/views/view_name * Click get. You should get a 200 ok response and a nice big blob of json containing your view. * Arguments and Parameters to Views (limit, offset, args, display_id) Based on the full details in the module: services_views_retrieve($view_name, $display_id = 'default', $args = array(), $offset = 0, $limit = 10, $return_type = FALSE, $filters = array()) /** * Callback for retrieving views resources. * * @param $view_name * String. The views name. * @param $display_id * String (optional). The views display name. * @param $offset * Integer (optional). An offset integer for paging. * @param $limit * Integer (optional). A limit integer for paging. * @param $args * Array (optional). A list of arguments to pass to the view. * @param $return_type * String (optional). Whether to return the raw data results (FALSE), the entire views object ('view') or themed results ('theme'). * @param $args * Array (optional). A list of exposed filters to pass to the view. * * @return * Array. The views return. */ The arguments are passed in the usual url format, for example: http://example.com/my_endpoint/views/view_name?display_id=default&args=123&offset=0&limit=10&return_type=FALSE Multiple arguments can be used like this: http://example.com/my_endpoint/views/view_name?display_id=default&args[0]=abc&args[1]=123&offset=0&limit=10&return_type=FALSE