Hi there,

I am looking to create a module that helps to integrate a third party API into drupal. I imagine looking at the modules found in this codebase I need to enable:


After I enable these modules, I do not know what to do next. I imagine I need to create a custom module that implements specific hooks, but I have no idea what hooks are required, and which ones are optional. I do not know where the documentation is that helps here either.

I have asked the question on stackoverflow (http://drupal.stackexchange.com/questions/738/example-consumer-module-im...), but the only answer was circumventing your module's oauth implementation and using the default PHP implementation.

On the project page it mentions two other modules that would be good to look at, but the services module seems like it is in a whole another direction that where I want to go with my module.

Any help would be greatly appreciated


voxpelli’s picture

Status:Active» Fixed

Here's an example of the most simple implementation you can possibly do with the OAuth.module: https://gist.github.com/1065774

As people has pointed out there's eg. the OAuth Connector that uses a bit more of the OAuth module so that might be a good inspiration when you have gotten started.

Documentation is on the roadmap to be built - sorry for not completing it yet. Good news is that there's a Drupal 7 version now :)

Marking as fixed as I think this gives you the directions you need - please feel free to reopen if you need any clarifications!

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

sreynen’s picture

Status:Closed (fixed)» Active

I need clarifications, so I'm reopening.

The example code sets $_SESSION['vptest_request_key'] but never uses it. Why?

Possibly related, _vptest_test_access() makes requests based on the incoming $_GET parameters, but how would I make a request, after authorization, on a completely unrelated page load?