Inspired by https://gist.github.com/joshbirk/8363143
Please use Python3
- Create connected-app and obtain
consumer_key
andconsumer_secret
- Install
simple-salesforce
package
$ pip install simple-salesforce
- Copy
force_oauth.py
and place it undercgi-bin
directory. - Run CGI server
$ python -m http.server --cgi
does FieldStorage works in python3 ?