Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

17
LINES

< > BotCompany Repo | #1013893 // twitter4j_init

JavaX fragment (include) [tags: use-pretranspiled]

Uses 0K of libraries. Click here for Pure Java version (1641L/11K).

// lib 1013889 // twitter4j OLD
lib 1400209 // twitter4j core
lib 1400210 // twitter4j async

import twitter4j.*;
import twitter4j.conf.*;

static Twitter twitter4j_init() {
  ConfigurationBuilder cb = new ConfigurationBuilder();
  cb.setDebugEnabled(true)
    .setOAuthConsumerKey(defaultTwitterKey())
    .setOAuthConsumerSecret(defaultTwitterSecret())
    .setOAuthAccessToken(defaultTwitterOAuthToken())
    .setOAuthAccessTokenSecret(trim(loadSecretJavaXFile("twitter-oauth-secret.txt"));
    
  ret new TwitterFactory(cb.build()).getInstance();
}

Author comment

Began life as a copy of #1013888

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1013893
Snippet name: twitter4j_init
Eternal ID of this version: #1013893/5
Text MD5: 53505fce34b70f8515d1398a55e0ee48
Transpilation MD5: e02dd47daa271326422179147389dbe5
Author: stefan
Category: javax / networking
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-06-20 05:07:04
Source code size: 568 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 345 / 459
Version history: 4 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)