WEBVTT

0
00:00.240 --> 00:00.870
Hey guys,

1
00:00.870 --> 00:05.400
welcome to day 37 of 100 Days of Code. Today

2
00:05.430 --> 00:09.840
we're going to be learning about advanced authentication methods using the

3
00:09.840 --> 00:10.673
header

4
00:10.860 --> 00:15.450
and we're also going to be learning how to make POST, PUT and DELETE requests

5
00:15.540 --> 00:19.980
using the requests module. And once we've learned all of that,

6
00:20.040 --> 00:24.450
we're going to be building a habit tracker. This lady is Simone Giertz

7
00:24.540 --> 00:26.760
and she's somebody who I really admire.

8
00:26.760 --> 00:31.740
She makes all sorts of useless robots, um, that's what she says,

9
00:31.800 --> 00:33.660
but they're actually really fascinating.

10
00:33.750 --> 00:38.610
And one of the products that she brought out through Kickstarter was this habit

11
00:38.610 --> 00:39.270
tracker,

12
00:39.270 --> 00:44.270
where you could go to it every day and just tap on today's date.

13
00:45.540 --> 00:50.370
So if you wanted to meditate every day, if you wanted to read 500 pages

14
00:50.370 --> 00:54.990
of a book every day, then you could track your habit. And because it's continuous,

15
00:55.390 --> 00:59.970
it makes you really want to continue your streak and not break the line.

16
01:00.750 --> 01:05.750
So we're going to be using technology to build a digital version of that today.

17
01:06.390 --> 01:09.270
And we're going to be using an API called Pixela.

18
01:09.780 --> 01:14.160
This comes from a Japanese developer and it's really awesome.

19
01:14.550 --> 01:17.070
It allows you to track your habits,

20
01:17.130 --> 01:20.970
but not just show which days you've done your habit, which days you haven't,

21
01:21.360 --> 01:25.140
but it also shows the intensity. So for example,

22
01:25.170 --> 01:29.040
maybe you want to track how many pages you're reading every day,

23
01:29.040 --> 01:33.010
you want to build a reading habit. Well, you can see that on certain days you

24
01:33.010 --> 01:36.870
will really reading a lot and you're heading a streak, but then on other days,

25
01:36.900 --> 01:40.050
even though you are doing some breeding because the color is lighter,

26
01:40.350 --> 01:44.700
it means that you read fewer pages. And over a year's time,

27
01:44.730 --> 01:49.230
you can see your entire progress and you can see your habit being tracked day by

28
01:49.230 --> 01:52.050
day, which I think is really awesome.

29
01:52.740 --> 01:56.730
This is what we're going to end up building. You can take any example,

30
01:56.910 --> 01:59.640
any habit you want to build, so in my case,

31
01:59.670 --> 02:04.670
I want to try and cycle every day and I'm logging how much I'm cycling in terms

32
02:04.770 --> 02:05.670
of kilometers.

33
02:06.150 --> 02:10.560
And you can see that certain days I cycled a lot and other days I cycled a

34
02:10.560 --> 02:11.393
little bit less.

35
02:11.790 --> 02:16.790
But I can see which days I've missed out on cycling and try to keep up with the

36
02:17.760 --> 02:19.080
momentum and the streak.

37
02:19.410 --> 02:23.130
Maybe you want to keep track of how long you're spending every day learning to

38
02:23.130 --> 02:28.020
code, or maybe you want to track how long you're meditating every day,

39
02:28.590 --> 02:31.950
or maybe you want to track how many lengths in the pool you swam.

40
02:32.400 --> 02:34.380
Whatever habit it is you're trying to build

41
02:34.830 --> 02:37.290
I'm sure that by the end of today's project,

42
02:37.350 --> 02:40.620
you are going to have a tool that's going to help you achieve your goals.

43
02:40.980 --> 02:44.730
So once you are ready, let's get started by heading over to the next lesson.