To consume a REST service that has OAuth2 authentication, first, you write a message handler. Then, you use the message handler in an HTTP Consumer Activity.
Sample
In this sample, we provide implementation of the OAuth HTTP consumer extension (which connects to Twitter). We also include a sample workflow.