I'm looking for a way to control access to a Views-generated JSON feed via OAuth, so individual users from a partner site can authorize access to certain of their profile data for use by the partner.

At this point, it seems clear that I need to use the services module with its attendant OAuth authentication to create a server that can hand over JSON. Is there some way I can use views to drive a server?

1 Answer 1


With the services and services_views modules, it's possible to repurpose any view into a service with OAuth authentication.

From my testbed, here's what the URL for the service looks like:


where "sample_endpoint" is the name of the endpoint, "tracker" is the name of the view being provided as a service, and ".json" is the format for the returned content.

  • So what part of this URL is the Oauth: the port #? the 'services' sub-domain? How is authentication handled? Through a message header? Jun 13, 2012 at 18:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.