Advertisement
Guest User

Untitled

a guest
Aug 7th, 2014
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. from Fifa14Client import LoginManager
  2. from Fifa14Client import WebAppFunctioner
  3. import ConfigParser
  4. from extra import EAHash
  5.  
  6. {"id":27,"r":77,"n":14,"f":"Joe","l":"Cole"}
  7. def do_main():
  8. Config = ConfigParser.ConfigParser()
  9. Config.read("accounts_example.ini")
  10. for section in Config.sections():
  11. email = Config.get(section, 'Email')
  12. password = Config.get(section, 'Password')
  13. secret_answer = Config.get(section, 'Secret')
  14. security_hash = EAHash.EAHashingAlgorithm().EAHash(secret_answer)
  15. platform = Config.get(section, 'Platform')
  16.  
  17. login = LoginManager.LoginManager(email,password,security_hash,platform)
  18. login.login()
  19. func = WebAppFunctioner.WebAppFunctioner(login)
  20. print ("Coin Balance")
  21. print(func.get_coin_amount())
  22.  
  23. # print(func.search(type="player", lev="gold", pos="", num=1, team="",
  24. # macr="", micr="", minb="", nat="", maxb="",
  25. # playStyle="", leag="", start=0, cat="",
  26. # definitionId="", maskedDefId=""))
  27.  
  28. player = Player(27,77,14,"Joe","Cole")
  29. print player.get_fullname()
  30.  
  31.  
  32. if __name__ == "__main__":
  33. do_main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement