Twitter is an online social networking and microblogging service that enables users to send and read short 140-character text messages, called "tweets". Registered users can read and post tweets, but unregistered users can only read them. The Twitter Connector enables data synchronization data and business process automation between Twitter and third party CRM, Marketing Automation, mobile and social applications using the Twitter API.
This page explains how to install connectors, uninstall connectors, and work with connector dependencies in both Mule Studio and Maven.
Beyond those included with the out-of-the-box version of Mule Studio, there are many more Anypoint™ Connectors you can download and use in your Mule applications to connect to third-party APIs. If you want to add to your catalog of Mule Studio connectors, you can download many more from the MuleStudio Connectors Update Site. If you don't use Mule Studio, you can install the appropriate Maven dependencies into your
- Under the
Helpmenu in Mule Studio, select
Install New Software.
- In the Work with: field in the Install wizard, use the drop-down menu to select
MuleStudio Cloud Connectors Update Site.
- Expand the node(s) for Community, Premium, and/or Standard to view the connectors available for download.
- Check the box next to one or more connectors to select those you wish to use, then click Next.
- Review your selections in the Install Details screen of the wizard, then click Next.
- Select I accept the terms of the license agreements in the Review Licenses screen, then click Finish.
- Click Restart Now to complete the installation.
- Mule restarts Studio, displaying the new connectors in the palette.
Refer to the connector-specific instructions linked from the connectors site for installation instructions and copy-pasteable code that you can add to your
pom.xml file to install the connector as a Maven dependency (recommended).
- Under the
Mule Studiomenu in Mule Studio, select
About Mule Studio.
- In the About Mule Studio panel, click Installation Details to display a list of the connectors you have installed on your instance of Mule Studio.
In the Installed Software tab, select the line item you wish to uninstall, then click Uninstall….
To uninstall more than one item, click to select the first line item, then hold down the
CRTLkey (PC) or
commandkey (Mac) as you click other line items.
- Click Finish to uninstall the item(s) you selected.
To uninstall a connector, remove the Maven dependency for that connector from your
Automatic Dependency Management
In a Mule Studio project that does not include Maven support, when you add a connector to your flow, Studio automatically adds all of its dependencies (including
.jar files) to your project's classpath. Mule manages each connector's dependencies as an Eclipse user library. Because Studio adds a connector's dependencies to your project's classpath, you can reference connector classes within other projects in your Mule Studio instance.
In a Mule Studio project that is built with Maven support, when you add a connector to your flow, Studio automatically adds the dependency (and the inclusion element to the maven-mule-plugin, if needed) to your pom file. Then, it refreshes your project dependencies based on the new contents of your pom file, and the connector (and its transitive dependencies) will appear referenced in your project's "Referenced Libraries" section as a set of references to .jar files in your local m2 repository.
Refer to Deploying Mule Applications for more information on managing your user libraries in Studio.
Manually Adding Connector Dependencies
Complete the following procedure to manually add connector dependencies to your project's classpath in Studio.
- In the Package Explorer pane, right-click on your project's name, then select Build Path > Add Libraries.
- In the Add Libraries wizard, select Mule Cloud Connector Dependencies, then click Next.
- Check the boxes associated with the connector dependencies you wish to add to your project's classpath.
- Click Finish to add the dependencies.
If you are installing a connector as a Maven dependency, ensure that you complete the following three steps for each connector:
To make any connector module available to a Mavenized Mule application, first add the following repositories to your
Then add the module as a dependency to your project, replacing
insert-artifactId-herewith the artifactId of the specific module you are adding and replacing RELEASE with the version of this module.
If you plan to use this module inside a Mule application, you need to add it to the packaging process. As such, the final zip file which will contain your flows and Java code will also contain this module and its dependencies. Add a special inclusion to the configuration of the Mule-Maven plugin for this module, replacing
insert-artifactId-herewith the artifactId of the specific module you are adding.
- Read more about using Anypoint Connectors.
- Review full connector-specific documentation, including video demonstrations and complete code samples, on the connectors site.
- Learn how to build your own Mule extensions with Anypoint Connector DevKit.
- Learn how to work with multiple versions of connectors.
This module can be used in several different ways depending on your needs and requirements. The following sections details how to use and install this module under different scenarios / environments.
As a Shared Mule Module
Download the connector from the MuleForge and place the resulting ZIP file in /plugins directory of the Mule installation folder. For more information about how the Mule Plugin System works see this link.
As a Maven Dependency
To make the module available to a Mavenized Mule application, first add the following repositories to your POM:
<repositories> <repository> <id>mulesoft-releases</id> <name>MuleSoft Repository</name> <url>http://repository-master.mulesoft.org/releases/</url> <layout>default</layout> </repository> <repository> <id>mulesoft-snapshots</id> <name>MuleSoft Snapshot Repository</name> <url>http://repository-master.mulesoft.org/snapshots/</url> <layout>default</layout> </repository> </repositories>Then add the module as a dependency to your project. This can be done by adding the following under the dependencies element your POM:
<dependency> <groupId>org.mule.modules</groupId> <artifactId>mule-module-twitter</artifactId> <version>RELEASE</version> </dependency>or if you want to be on the bleeding edge
<dependency> <groupId>org.mule.modules</groupId> <artifactId>mule-module-twitter</artifactId> <version>LATEST</version> </dependency>If you plan to use this module inside a Mule application, you need add it to the packaging process. That way the final ZIP file which will contain your flows and Java code will also contain this module and its dependencies. Add an special inclusion to the configuration of the Mule Maven plugin for this module as follows:
<plugin> <groupId>org.mule.tools</groupId> <artifactId>maven-mule-plugin</artifactId> <extensions>true</extensions> <configuration> <excludeMuleDependencies>false</excludeMuleDependencies> <inclusions> <inclusion> <groupId>org.mule.modules</groupId> <artifactId>mule-module-twitter</artifactId> </inclusion> </inclusions> </configuration> </plugin>