Skip to content

Instantly share code, notes, and snippets.

<sfdc:publish-topic name="AccountUpdates" query="SELECT Name, Id FROM Account"/>
<mule xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:sfdc="http://www.mulesoft.org/schema/mule/sfdc"
xsi:schemaLocation="
http://www.mulesoft.org/schema/mule/core
http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/sfdc
http://www.mulesoft.org/schema/mule/sfdc/4.0/mule-sfdc.xsd">
<sfdc:config username="YOUR_USER" password="YOUR_PASSWORD" securityToken="YOUR_TOKEN"/>
@federecio
federecio / gist:1377641
Created November 18, 2011 20:21
linkedin dependency
<dependency>
<groupId>org.mule.modules</groupId>
<artifactId>mule-module-linkedin</artifactId>
<version>1.0</version>
</dependency>
@federecio
federecio / gist:1377577
Created November 18, 2011 19:56
linkedin update status
<linkedin:update-current-status status="The new LinkedIn Cloud Connector for Mule is awesome!" postToTwitter="true"/>
@federecio
federecio / gist:1377556
Created November 18, 2011 19:46
linkedin send invite
<linkedin:send-invite-by-email email="#[map-payload:email]"
firstName="#[map-payload:firstName]"
lastName="#[map-payload:lastName]"
subject="#[map-payload:subject]"
message="#[map-payload:message]"/>
@federecio
federecio / gist:1377543
Created November 18, 2011 19:41
linked search people
<linkedin:search-people sortOrder="RECOMMENDERS">
<linkedin:search-parameters>
<linkedin:search-parameter key="CURRENT_COMPANY">MuleSoft</linkedin:search-parameter>
</linkedin:search-parameters>
<linkedin:profile-fields>
<linkedin:profile-field>LAST_NAME</linkedin:profile-field>
<linkedin:profile-field>TWITTER_ACCOUNTS</linkedin:profile-field>
</linkedin:profile-fields>
</linkedin:search-people>
@federecio
federecio / gist:1377535
Created November 18, 2011 19:38
linked search people
<linkedin:search-people sortOrder="RECOMMENDERS">
<linkedin:search-parameters>
<linkedin:search-parameter key="CURRENT_COMPANY">MuleSoft</linkedin:search-parameter>
<linkedin:search-parameter key="TITLE">Engineer</linkedin:search-parameter>
</linkedin:search-parameters>
<linkedin:profile-fields>
<linkedin:profile-field>LAST_NAME</linkedin:profile-field>
<linkedin:profile-field>HONORS</linkedin:profile-field>
</linkedin:profile-fields>
</linkedin:search-people>
@federecio
federecio / gist:1377516
Created November 18, 2011 19:33
linkedin config
<linkedin:config apiKey="my key here" apiSecret="my secret here" />
@federecio
federecio / gist:1377510
Created November 18, 2011 19:31
linkedin namespace declaration
<mule xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:linkedin="http://www.mulesoft.org/schema/mule/linkedin"
xsi:schemaLocation="
http://www.mulesoft.org/schema/mule/core
http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/linkedin
http://www.mulesoft.org/schema/mule/linkedin/1.0/mule-linkedin.xsd">
<!-- here goes your flows and configuration elements -->
<googlemaps:get-distance origin="San+Francisco" destination="Milbrae" />
<googlemaps:get-distance destination="Milbrae" />