php - In python requests library, cannot do authorization? -
i try wrote code on python: http://vestacp.com/docs/api/#add_user
like this: http://pastebin.com/xdzkkzpg
but cant authorize
in last line, auth
missing '=
' sign:
req = r.post(vst_hostname, auth(vst_username, vst_hostname), \ params=postvars, verify=false)
see authentication section in requests
documentation more information.
Comments
Post a Comment