This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.

Configuring Drupal Operations

To use the Drupal connector, add the <drupal.init> element in your configuration before carrying out any other Drupal operations. 

The Drupal API uses OAuth2 authentication which allows users to log into your Drupal site authenticating against a remote identity provider. For more information, seehttps://www.drupal.org/project/oauth2_authentication.

init
<drupal.init>
    <responseType>{$ctx:responseType}</responseType>
    <apiUrl>{$ctx:apiUrl}</apiUrl>
    <userName>{$ctx:userName}</userName>
	<password>{$ctx:password}</password>
</drupal.init>
Properties
  • responseType: Response type. Possible values are 'json' and 'xml'.
  • apiUrl: The API URL to access the endpoint.
  • userName: User name of the Drupal account.
  • password: Password of the Drupal account.

Note

Add the following resources to the ESB registry.

  • /_system/governance/connectors/Drupal/apiUrl
  • /_system/governance/connectors/Drupal/userName

  • /_system/governance/connectors/Drupal/password

 

Now that you have connected to Drupal, use the information in the following topics to perform various operations with the connector.