The provided code and instruction assumes that the developer is performing operations using the single-user OAuth method.
- Oracle Application Express version 5.1 or later
- Compile the code in the following order:
SQL> @packages/pkg_oauth_util.pks
SQL> @packages/pkg_oauth_util.pkb
SQL> @packages/pkg_tweeter.pks
SQL> @packages/pkg_tweeter.pkb
- Go to Twitter Apps.
- Create a new App and provide the required information.
- When the application has been created successfully, click on the
Keys and Access Tokens
tab. - Under
Your Access Token
, clickCreate my access token
. - Note the following to be used in the procedure call:
- Consumer Key
- Consumer Secret
- Access Token
- Access Token Secret
- Ensure that the application has read and write permissions.
begin
pkg_tweeter.post_update(
p_status => 'Hello world!'
, p_consumer_key => 'aaaaaaaaaaaaaaaaaaaaaaaaa'
, p_consumer_secret => 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb'
, p_access_token => 'nnnnnnnn-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
, p_access_token_secret => 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy'
);
end;
/