Thursday, July 19, 2018

Coding Diary - The fifth Day

Today  I started to do my Q1  project, I really learn a lot from it, no wonder my classmate always wanted me to do my own project, but I always decided to watch the video first.

What I learned today

(1) How to request an API I choose
(2)The post method also can get the data back(wow I never know that)
fetch(`https://vision.googleapis.com/v1/images:annotate?key=${key}`, {
      method:'POST',
      headers: {
        'Accept': 'application/json',
        'Content-type':'application/json'
      },
      body:JSON.stringify(data)
    })
    .then((res)=> res.json())
    .then((data)=> {
 
console.log(data}
 
(3)If I want to activate a function, I need to target the id of  form, but not the submit button, this is very basic, I don't know why I didn't get it, maybe the reason was I skip the previous checkpoint
(4)Not all the API is easy to connect.
(5)If I want to connect an API, to read the document is very important


My plan for  tomorrow :

(1)Keep working on a project
(2)Turn the picture into grey
(3)CSS part
(4)Build the dictionary project and save the vocabulary in the localstorage
(5)To learn how to connect API
(6)node is base on C++, and V8 also written in C++
(7)Maybe the grammar checker is also a great idea

The question for tomorrow

(1)How to update my Google may parameter
(2)How do use canvas
(3) Ask C and T how do they connect their API

I wrote an article for encouraging Taiwanese to go to the church for learning English, a lot of people think it's a great idea, but a few people disagree, I still need to reflect on myself, although  I am confident for my opinion, I always being irritated if some netizens use some negative words to comment. The thing is, why did I want everyone to agree with me? I really need to fix this kind of bad temper, I want to control another person too much.

No comments:

Post a Comment

Day 13

(2) so is that possible to build it from scratch? (3) is that mean it’s better to do that by service? how about if i want to find a API? ...