You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Yammer

Available as of Camel 2.12

The Yammer component allows you to interact with the Yammer enterprise social network. Consuming messages, users, and user relationships is supported as well as creating new messages.

Yammer uses OAuth 2 for all client application authentication. In order to use camel-yammer with your account, you'll need to create a new application within Yammer and grant the application access to your account. Finally, generate your access token. More details are at https://developer.yammer.com/authentication/

Maven users will need to add the following dependency to their pom.xml for this component:

<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-yammer</artifactId>
    <version>${camel-version}</version>
</dependency>

TODO: other message consumers, message producer, user/relationship stuff

URI format

yammer://[function]?[options]

YammerComponent

The yammer component can be configured with the Yammer account settings which are mandatory to configure before using. You can also configure these options directly in the endpoint.

Unknown macro: {div}

Option

Description

consumerKey

The consumer key

consumerSecret

The consumer secret

accessToken

The access token

Message Consumer

yammer://messages?[options]

URI Options

Unknown macro: {div}

Name

Default Value

Description

delay

5000

in milliseconds

consumerKey

null

Consumer Key. Can also be configured on the YammerComponent level instead.

consumerSecret

null

Consumer Secret. Can also be configured on the YammerComponent level instead.

accessToken

null

Access Token. Can also be configured on the YammerComponent level instead.

limit

-1

Return only the specified number of messages. Works for threaded=true and threaded=extended.

threaded

null

threaded=true will only return the first message in each thread. This parameter is intended for apps which display message threads collapsed. threaded=extended will return the thread starter messages in order of most recently active as well as the two most recent messages, as they are viewed in the default view on the Yammer web interface.

olderThan

-1

Returns messages older than the message ID specified as a numeric string. This is useful for paginating messages. For example, if you’re currently viewing 20 messages and the oldest is number 2912, you could append “?olderThan=2912″ to your request to get the 20 messages prior to those you’re seeing.

newerThan

-1

Returns messages newer than the message ID specified as a numeric string. This should be used when polling for new messages. If you’re looking at messages, and the most recent message returned is 3516, you can make a request with the parameter “?newerThan=3516″ to ensure that you do not get duplicate copies of messages already on your page.

See Also

  • No labels