| Total Complexity | 1 |
| Total Lines | 12 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | from twitter import Twitter |
||
| 11 | class FollowAction(Action): |
||
| 12 | def run(self, screen_name): |
||
| 13 | auth = OAuth( |
||
| 14 | token=self.config['access_token'], |
||
| 15 | token_secret=self.config['access_token_secret'], |
||
| 16 | consumer_key=self.config['consumer_key'], |
||
| 17 | consumer_secret=self.config['consumer_secret'] |
||
| 18 | ) |
||
| 19 | client = Twitter(auth=auth) |
||
| 20 | client.friendships.create(screen_name=screen_name) |
||
| 21 | |||
| 22 | return True |
||
| 23 |