mirror of
https://github.com/arnaucube/argos.git
synced 2026-02-07 11:06:39 +01:00
minimal visual changes
This commit is contained in:
@@ -27,14 +27,11 @@ func readConfigTokensAndConnect() (client *twitter.Client) {
|
||||
json.Unmarshal([]byte(content), &config)
|
||||
fmt.Println("twitterConfig.json read comlete")
|
||||
|
||||
fmt.Print("connecting to twitter api --> ")
|
||||
configu := oauth1.NewConfig(config.Consumer_key, config.Consumer_secret)
|
||||
token := oauth1.NewToken(config.Access_token_key, config.Access_token_secret)
|
||||
httpClient := configu.Client(oauth1.NoContext, token)
|
||||
// twitter client
|
||||
client = twitter.NewClient(httpClient)
|
||||
|
||||
fmt.Println("connection successfull")
|
||||
|
||||
return client
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user