I think this module allows me to do just what I want (have a Java application pull drupal nodes using OAuth as the authentication method), but I have zero idea of how one would go about this as there is no documentation at all for this module.

I'm seeing quite a pattern in Drupal land as I get closer and closer to my goal. Lots of modules, almost zero documentation on how to actually do anything with them.

Comments

GaborTorok’s picture

Issue #1689798: Any documentation on how to write a client in Drupal 7 is similar and has links to some examples that may help you.

fengtan’s picture

If it helps, I could create a basic client with this code:

$client = new HttpClient(NULL, new HttpClientBaseFormatter(HttpClientBaseFormatter::FORMAT_JSON));
$request = new HttpClientRequest('http://example.net/', array(
  'method' => 'GET',
  'parameters' => array(),
  'data' => NULL,
));
try {
  $response = $client->execute($request);
  debug($response);
}
catch (HttpClientException $e) {
  debug($e);
}