To configure the connector to authenticate with Twitter, use the following procedure.
To configure OAuth authentication with Twitter
oauth_tool.cfg
in a text editor.In the [Default]
section, specify any SSL or proxy settings necessary to connect to Twitter:
SSLMethod
|
The version of SSL/TLS to use. |
ProxyHost
|
The host name or IP address of the proxy server that the connector must use. |
ProxyPort
|
The port of the proxy server that the connector must use. |
For example:
SSLMethod=SSLV23 ProxyHost=10.0.0.1 ProxyPort=8080
In the [OAuthTool]
section, set the following parameters:
AppKey
|
The application key that was provided when you set up an application to represent the connector. |
AppSecret
|
The application secret that was provided when you set up an application to represent the connector. |
Do not modify the other parameters in this section.
Open a command-line window and run oauth_tool.exe
.
Your default web browser opens to the Twitter web site, which asks you to authorize the application to access Twitter.
Authorize the application by entering your credentials.
The Twitter Web site provides an authorization code.
Type the authorization code into the command-line window where the OAuth tool is running and press ENTER.
The OAuth tool creates a file named oauth.cfg
, which contains the parameters that the connector requires to authenticate with Twitter. You can include these parameters in the connector configuration file as follows (see Include an External Configuration File):
[MyTask] < "oauth.cfg" [OAUTH]
The OAuth tool also prints the parameters it has set to the command-line window.
|