Created
October 12, 2019 08:39
-
-
Save topherPedersen/2a0bb563b52f93e71f35081ebd5b60fe to your computer and use it in GitHub Desktop.
Job Application to Plaid Inc.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# REFERENCE: GET and POST requests using Python | |
# https://www.geeksforgeeks.org/get-post-requests-using-python/ | |
# REFERENCE: Post JSON using Python Requests | |
# https://bit.ly/2w6YHGa | |
import requests | |
import json | |
url = "https://contact.plaid.com/jobs" | |
data = { | |
'name': 'Christopher Pedersen', | |
'email': 'chris@topherpedersen.com', | |
'resume': 'https://bit.ly/ChristopherPedersensResume', | |
'github': 'https://www.linkedin.com/in/christopher-pedersen-a54a87b6/', | |
'twitter': '@topherPedersen', | |
'website': 'https://topherpedersen.blog', | |
'location': "Dallas, TX", | |
'favorite candy': 'Butterfinger', | |
'superpower': 'Wingsuit Pilot' | |
} | |
data = json.dumps(data) | |
headers = {'Content-type': 'application/json', 'Accept': 'text/plain'} | |
http_post_request = requests.post(url=url, data=data, headers=headers) | |
server_response = http_post_request.text | |
print(server_response) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment