(self)
| 1159 | return self.api._call_api(endpoint)['user_detail']['user']['friendship_status']['following'] |
| 1160 | |
| 1161 | def check_private_profile(self): |
| 1162 | if self.is_private and not self.following: |
| 1163 | pc.printout("Impossible to execute command: user has private profile\n", pc.RED) |
| 1164 | send = input("Do you want send a follow request? [Y/N]: ") |
| 1165 | if send.lower() == "y": |
| 1166 | self.api.friendships_create(self.target_id) |
| 1167 | print("Sent a follow request to target. Use this command after target accepting the request.") |
| 1168 | |
| 1169 | return True |
| 1170 | return False |
| 1171 | |
| 1172 | def get_fwersemail(self): |
| 1173 | if self.check_private_profile(): |
no outgoing calls
no test coverage detected