First Python script

  1. learn what is api
  2. Jailbreak pycharm
  3. install requests on pycharm
  4. write first request: get, post
  5. MFA login: need to parameter mechanismId and SessionId
    • know how to check response, (json.cn),
    • know some data type and operate them (list, dict...)
  6. Cannot create role using Post, need to replace resopnd to session (sth about session...)
  7. paramater some values that would change
  8. write method into different file
  9.  write class: login, create role
  10. write main method and the define parameters

 

finally, thanks Zoe very much, yeah, long way, i still need to good good study...

 

posted @ 2019-01-22 11:43  Lauce  阅读(141)  评论(0编辑  收藏  举报