Twitter Connector 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. Windows, Mac OS x, Linux http://www.mulesoft.org/sites/all/themes/litejazz/images/muleforge/styles/thumbnail/public/572d4e421e5e6b9bc11d815e8a027112-twitter-connector-icon-twitter-small.png Mulesoft Connectors Page http://mulesoft.github.io/twitter-connector/3.2.0/ Connectors community and supported connector
5 / 5

Twitter Connector

Rate this page: 
Average: 3.2 (10 votes)

Mule Runtime

Show nav
Show nav


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.





► Install for Studio

This page explains how to install connectors, uninstall connectors, and work with connector dependencies in both Mule Studio and Maven.

 Contents

Installing Connectors

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 pom.xml file.

 

  1. Under the Help menu in Mule Studio, select Install New Software



  2. In the Work with: field in the Install wizard, use the drop-down menu to select MuleStudio Cloud Connectors Update Site



  3. Expand the node(s) for Community, Premium, and/or Standard to view the connectors available for download.
  4. Check the box next to one or more connectors to select those you wish to use, then click Next



  5. Review your selections in the Install Details screen of the wizard, then click Next.
  6. Select I accept the terms of the license agreements in the Review Licenses screen, then click Finish.
  7. Click Restart Now to complete the installation. 



  8. Mule restarts Studio, displaying the new connectors in the palette.

 

 

Uninstalling Connectors

  1. Under the Mule Studio menu in Mule Studio, select About Mule Studio



  2. 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. 



  3. 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 CRTL key (PC) or command key (Mac) as you click other line items.

  4. Click Finish to uninstall the item(s) you selected. 

 

 

 

Dependencies

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.

  1. In the Package Explorer pane, right-click on your project's name, then select Build Path > Add Libraries.
  2. In the Add Libraries wizard, select Mule Cloud Connector Dependencies, then click Next.



  3. Check the boxes associated with the connector dependencies you wish to add to your project's classpath.



  4. Click Finish to add the dependencies.

Go Further



► Install for Maven

| Mule Twitter Connector


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>