Hey Everyone! Let's talk about how we can start using different types of requests to pull and post data from API endpoints using Python.
Python Automation for Remote Workers Playlist --
https://www.youtube.com/watch?v=saO_wEhnwc0&list=PLc_Ps3DdrcTtjOvU01ZijSntOCmfRPUqs
API for ML endpoint--
https://timedoor.io/
Sample JSON for ML API - https://github.com/Derrick-Sherrill/Python-Automation/blob/master/Sample%20Data/sample_data.json
calendly api --
www.calendly.com
Merch Store --
https://derricksherrill.store/
Support the Channel on Patreon --
https://www.patreon.com/join/derricksherrill
Join The Socials --
Reddit - https://www.reddit.com/r/CodeWithDerrick/
FB - https://www.facebook.com/CodeWithDerrick/
Insta - https://www.instagram.com/codewithderrick/
Twitter - https://twitter.com/codewithderrick
LinkedIn - https://www.linkedin.com/in/derricksherrill/
GitHub - https://github.com/Derrick-Sherrill
38,700 subscribers at the time of writing. The channel has been blowing up recently. So awesome that I get the chance to make content you all enjoy. Thank you all so much for all the kind words, encouraging messages, and continuing to watch. You all are way too good to me! Thank you all so much.
*****************************************************************
Full code from the video:
import requests, json
response = requests.get( 'https://26607.wayscript.io/' )
print(response.json().get('date'))
api_key = 'HBFMJLNOFRRIMSDJCOXDXSH4SOVKLBN2'
header = { 'X-TOKEN' : api_key }
response = requests.get( 'https://calendly.com/api/v1/users/me/event_types', headers = header )
print(response.json().get('data')[0].get('id'))
api_url = 'https://api.timedoor.io/invocation/auto-arima'
headers = { 'X-Time-Door-Key' : 'bf60f73d-fe59-4ccd-ba42-ecb5766ca1dc',
'Accept' : 'application/json',
'Content-Type' : 'application/json'}
response = requests.post( api_url,
data = open('sample_data.json', 'rb'),
headers = headers)
print(response.text)
Packages (& Versions) used in this video:
requests, json
*****************************************************************
Code from this tutorial and all my others can be found on my GitHub:
https://github.com/Derrick-Sherrill/DerrickSherrill.com
Check out my website:
https://www.derricksherrill.com/
If you liked the video - please hit the like button. It means more than you know. Thanks for watching and thank you for all your support!!
--- Channel FAQ --
What text editor do you use?
Atom - https://atom.io/
What Equipment do you use to film videos?
https://www.amazon.com/shop/derricksherrill
What editing software do you use?
Adobe CC - https://www.adobe.com/creativecloud.html
Premiere Pro for video editing
Photoshop for images
After Effects for animations
Do I have any courses available?
Yes & always working on more!
https://www.udemy.com/user/derrick-sherrill-2/
Where do I get my music?
I get all my music from the copyright free Youtube audio library
https://www.youtube.com/audiolibrary/music?nv=1
Let me know if there's anything else you want answered!
-------------------------
Always looking for suggestions on what video to make next -- leave me a comment with your project! Happy Coding!