title
stringlengths
12
112
published
stringlengths
19
23
url
stringlengths
28
28
video_id
stringlengths
11
11
channel_id
stringclasses
5 values
id
stringlengths
16
31
text
stringlengths
0
596
start
float64
0
37.8k
end
float64
2.18
37.8k
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t783.52
I said put a second ago on and post. And in here, the first thing we need to do is,
783.52
797.6
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t790.24
we need to retrieve information from the user that they want to upload. So, the first thing
790.24
805.6
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t797.6
we need to think about here is we are trying to get data from the user. So, they are going to send
797.6
810.96
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t805.6
us like a new entry. So, what did we have before in our users?
805.6
819.36
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t810.96
We have user ID, name, city, locations. Okay, so we want to use it to be able to add a new
810.96
826.56
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t820.08
row. So, each one uses essentially a row in a data frame. So, we have locations, city, name,
820.08
835.76
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t826.5600000000001
and user ID. So, we're going to send this to the user. So, we're going to send this to the user.
826.56
851.36
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t835.76
So, name and user ID. Now, we want the user to be able to add locations or location, locations,
835.76
866.4
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t851.36
name and city. Now the user ID, we don't really want the user isn't going to add that, that's going to be
851.36
872.72
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t866.4
generated automatically. So we ignore that, we do want the user to be able to pass those three things.
866.4
885.04
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t872.72
Now to do that we're going to use the recparser, so request parse that we use up here. And to
872.72
892.56
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t885.0400000000001
initialize that we need to write parser equals request, sorry what is it up here, recparser,
885.04
901.36
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t892.5600000000001
recpass.requestParser here. That initializes our parser and what this is going to do is when we
892.56
909.44
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t901.36
add arguments into the request this is going to read them and what we're going to do is
901.36
919.52
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t909.44
parse them out into variables. So we are going to within this request we want to allow
909.44
931.92
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t919.52
those three, so location, name and city. So write parser add argument, this one will be location and
919.52
940.8
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t931.92
we're just going to do one location at a time. So do location ID and then of course we use a put
931.92
950.4
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t940.8
request later if they want to add more locations. You say required is true, they do need to add one
940.8
959.36
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t950.4
of these and the type of this is a integer so we'll write int. Okay we need to add another one,
950.4
974.24
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t959.36
I'm just going to copy this so let's copy here and we have name city and the type is for both
959.36
981.44
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t974.24
of those strings which I think might be the default so we probably don't even need to include
974.24
990.64
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t981.44
that type string there but it is there so leave it. So now we have the three arguments that I
981.44
998.16
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t990.6400000000001
use you can use to post information to our API and what we need to do to extract whatever the
990.64
1,004
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t998.1600000000001
user has sent us is we do this we're going to extract them into this dictionary here which
998.16
1,012.56
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1004.0
is called args and we write parser, parse args like that. Okay so now we have those arguments and
1,004
1,017.36
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1013.12
let's first just make sure this is working so I want to just I'm going to return
1,013.12
1,034.56
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1017.36
what we just tried to send that so let's return location lock equals args location id name
1,017.36
1,043.68
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1039.76
and the city. Okay so let's just make sure it's actually working
1,039.76
1,053.44
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1043.68
and we'll set 200 save it and that should reload automatically. Let's go to insomnia
1,043.68
1,063.12
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1054.8
and we are sending a post request here so post we have users we enter this question mark
1,054.8
1,073.12
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1064.5600000000002
so this allows us to start adding our parameters so location id really going to be equal to I'm
1,064.56
1,081.68
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1073.12
going to say five and so we we added the ampersand symbol there to add another parameter so location
1,073.12
1,103.68
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1081.68
id and what are the other ones user user or name James it's me and for the city oh let's put okay
1,081.68
1,110.48
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1104.72
send that cool and then we we're just returning that request back to azure you notice here we put
1,104.72
1,116.08
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1110.48
lock and not location id so we can tell it's not just returning what we sent it's returning what
1,110.48
1,122.48
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1116.08
we have processed through our function and return back to ourselves. Okay cool so now we know we're
1,116.08
1,141.92
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1122.48
parsing those arguments correctly now let's use them. So again what I want to do is read our data
1,122.48
1,152.88
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1141.92
so we do data equals data pandas dot read csv again and we're reading the user's path.
1,141.92
1,163.36
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1154.8000000000002
Okay so user's path and we're doing users here so actually do we want location in there at all I
1,154.8
1,181.12
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1163.36
don't know. Yeah maybe so no let's let's say the user can specify that user id
1,163.36
1,189.92
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1182.32
oh we're not returning anymore so let's remove that so I want the user to I want to be able to
1,182.32
1,196.48
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1189.92
post this because then if we have a duplicate of a previous user id we're not we can say we can
1,189.92
1,204.8
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1196.48
check if that it already exists in the data or not now which we'll do now so right if args user id
1,196.48
1,215.6
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1208.0
in the data that we just opened so in data is it user id I think I'm sure I can speak
1,208
1,225.68
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1215.6
it okay I think it is. I want to return an error message saying this already exists.
1,215.6
1,234.64
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1226.32
Let's write message and all we do is write args user id
1,226.32
1,245.04
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1237.28
already exists and what we'll return here is the 409 code which indicates that there's some sort
1,237.28
1,252.24
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1245.04
of conflict and there is a conflict we already this user id already exists so we're saying
1,245.04
1,258.4
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1252.24
there's conflict you can't you can't create a new one it's already there if it doesn't already exist
1,252.24
1,262.24
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1259.04
that's great and we go ahead and we create that new user id.
1,259.04
1,270.72
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1264.08
So all we do is write data equals data dot append and then we're just appending the new data that
1,264.08
1,280.88
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1270.72
we've retrieved from our args so it's going to be we need user id which is going to be args user id
1,270.72
1,286.88
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1284.32
let me copy this make it a little bit quicker
1,284.32
1,296
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1286.88
for locations it's just empty for now
1,286.88
1,302
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1300.64
of city and we have name
1,300.64
1,312.4
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1304.48
okay and then we need to I think we need to ignore yes ignore index true true sorry okay
1,304.48
1,320.4
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1312.4
and then we'll save that data so to csv it is is it uses path
1,312.4
1,329.68
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1322.64
and I'm going to set index equals false so we're not saving the index the row numbers
1,322.64
1,337.76
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1330.5600000000002
and then I just want to return want to return the data again we can't return a
1,330.56
1,343.92
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1337.76
data frame we need to convert it into a dictionary so write to dict
1,337.76
1,349.6
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1343.92
and it's a 200 response I'm going to save that let's test it see if it if it works
1,343.92
1,358.8
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1353.52
so I'm going to let's see modify this to user id now
1,353.52
1,367.28
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1358.8
send that internal server error so let's see date frame no attribute to date so I need to add an
1,358.8
1,368.08
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1367.28
underscore
1,367.28
1,373.52
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1372.56
save again
1,372.56
1,386.16
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1376.6399999999999
and let's send that again okay so now we can see we have more items in there the only thing
1,376.64
1,391.76
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1386.16
is I've added five for all of them oh did I it's in the code right
1,386.16
1,402.64
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1395.52
what did I do yeah very smart okay so change that name and this is city
1,395.52
1,408.56
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1404.96
and one other thing is that these are all this should also be a string
1,404.96
1,413.52
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1409.3600000000001
one thing I notice and this should also be a string I'm going to leave that out
1,409.36
1,424.72
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1413.52
it's fine so let me send that again five already exists because so at least we know that our
1,413.52
1,429.92
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1424.72
conflict code works so let's create another one number six I'm going to call this
1,424.72
1,437.52
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1431.6
no Jim and let's go again okay so now we've created number six as well
1,431.6
1,445.2
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1437.52
did we create gosh we created a few there didn't we oops so yeah now we've now we've created
1,437.52
1,453.36
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1445.2
number six here which is Jim lives in London his user id is six okay so I mean formatting
1,445.2
1,457.04
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1453.36
isn't perfect but that's good for now we've created our first post request
1,453.36
1,462.88
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1459.6
okay so it's it's pretty annoying that we have to do this again
1,459.6
1,471.52
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1462.88
so let's go ahead and build that so we need to first define a delete function method
1,462.88
1,479.52
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1472.24
and all we want to do is delete the delete function and then we can go ahead and
1,472.24
1,487.52
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1479.5200000000002
create a new one so let's go ahead and create a new one and let's go ahead and create a new one
1,479.52
1,493.64
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1487.52
and let's go ahead and create a new one it tells us what kind of a page this needs to be
1,487.52
1,501.52
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1493.6399999999999
to have so I'll create a new recognizereiben and that'll just be like this image that brings up
1,493.64
1,509.96
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1501.52
us a new item if the picture of the data source that our mı ends up having is 6 we areIs
1,501.52
1,513.68
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1509.96
going to have to do a new line. So in the beginning we did make a section where we
1,509.96
1,517.44
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1513.68
are Doesn't it always say you know that the cyberxual heBeic name your type
1,513.68
1,519.92
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1517.44
And then what we need to do is pass those as well.
1,517.44
1,524.08
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1519.92
So just like before, parser, pass orgs.
1,519.92
1,526.16
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1524.0800000000002
Yeah, there we go.
1,524.08
1,530.32
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1527.1200000000001
So now we have, so at this point,
1,527.12
1,534.16
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1530.3200000000002
the user has given us a user ID that they want to delete
1,530.32
1,536.32
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1534.16
and we need to go ahead and delete that.
1,534.16
1,541.76
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1536.3200000000002
So to delete it, first we need to say, okay, does it exist?
1,536.32
1,549.84
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1541.76
So we say if orgs user ID is in our data,
1,541.76
1,552.56
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1549.84
so we need to load the data first.
1,549.84
1,556.48
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1552.56
So let me load it here.
1,552.56
1,563.44
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1558.24
Okay, so if that is in data user ID,
1,558.24
1,569.2
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1565.76
then we can go ahead and delete it.
1,565.76
1,572.32
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1569.2
And to do that, we're just going to use the typical,
1,569.2
1,576.24
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1573.04
like pandas data frame logic.
1,573.04
1,582
API Series #2 - Building an API with Flask in Python
2021-10-07 14:52:32 UTC
https://youtu.be/MF75aNH3Gjs
MF75aNH3Gjs
UCv83tO5cePwHMt1952IVVHw
MF75aNH3Gjs-t1576.24
So we just write data equals data, data user ID.
1,576.24
1,586.72