Cov txheej txheem:

Phau ntawv IoT: 8 Kauj Ruam
Phau ntawv IoT: 8 Kauj Ruam

Video: Phau ntawv IoT: 8 Kauj Ruam

Video: Phau ntawv IoT: 8 Kauj Ruam
Video: Plab Plab Ntswg..(Pluav Pluav Ntswg) Maiv Twm New Song 2023-2024 2024, Kaum ib hlis
Anonim
Phau ntawv IoT
Phau ntawv IoT

Taw qhia:

Phau ntawv no yuav piav qhia luv luv rau koj yuav ua li cas nkag mus rau Google API's thiab hauv daim ntawv qis dua sim ua raws li yuav ua li cas koom nrog Google Maps API zoo tshaj plaws rau hauv koj cov khoom.

Kauj Ruam 1: Kauj Ruam 1: Tau txais API Key

Nyem lub pob hauv qab no, kom tau txais tus lej API siv Google Cloud Platform Console. Koj yuav raug nug kom (1) xaiv ib lossis ntau yam khoom, (2) xaiv lossis tsim ib qhov haujlwm, thiab (3) teeb tsa tus as khauj nyiaj. Thaum koj tus lej API raug tsim koj yuav raug thov kom txwv tus yuam sij siv.

Siv lub vev xaib no los tsim Google Maps API account:

Kauj Ruam 2: Kauj Ruam 2: Txheeb Xyuas Google API Account

Kauj ruam 2: Txheeb xyuas Google API Account
Kauj ruam 2: Txheeb xyuas Google API Account

Nkag mus rau hauv koj li e-mail server thiab nyem rau ntawm qhov txuas txuas uas koj tau txais.

Kauj Ruam 3: Kauj Ruam 3: Teeb API Nyiam

Kauj Ruam 3: Teeb API Nyiam
Kauj Ruam 3: Teeb API Nyiam

Xaiv qhov zoo ntawm API's koj xav siv thiab kos cov thawv ntawd.

Kauj Ruam 4: Kauj Ruam 4: Cov Qauv Tshwj Xeeb

Npe koj qhov project thiab txuas ntxiv mus

Kauj Ruam 5: Kauj Ruam 5: Tsim Tus Nqi Sau Npe

Kauj Ruam 5: Tsim Tus Nqi Sau Npe
Kauj Ruam 5: Tsim Tus Nqi Sau Npe

Koj yuav tsum tau muab cov ntaub ntawv hauv qab no:

Kev them nyiaj profile

Hom nyiaj

Tus kheej

Lub npe thiab chaw nyob

Koj them li cas

Txoj kev them nyiaj

Kauj Ruam 6: Kauj Ruam 6: Txheeb Xyuas Koj Tus Kheej API

1. Mus rau Google Cloud Platform Console.

2. Los ntawm qhov Project drop-down menu, xaiv qhov project tsim rau koj thaum koj xaj Nyiaj Txiag. Lub phiaj xwm lub npe pib nrog Google Maps APIs rau Kev Lag Luam lossis Google Maps rau Ua Haujlwm lossis Google Maps.

Tseem ceeb: Yog tias koj muaj Maps API yav dhau los rau daim ntawv tso cai ua lag luam, koj yuav tsum siv tus lej ID, tsis yog tus yuam sij API.

3. Los ntawm cov ntawv qhia zaub mov, xaiv APIs & Kev Pabcuam> Ntawv Pov Thawj.

4. Ntawm nplooj ntawv lees paub, nyem Tsim daim ntawv pov thawj> tus yuam sij API.

5. Tus lej API tsim cov lus sib tham qhia koj tus lej API tshiab uas tsim los.

6. Ntawm qhov kev sib tham, nyem txwv yuam sij. (Yog xav paub ntxiv, saib Kev txwv tus yuam sij API.)

7. Ntawm API nplooj ntawv tseem ceeb, nyob rau hauv Kev txwv qhov tseem ceeb, teeb tsa Daim Ntawv Thov txwv.

8. Xaiv HTTP referrers (cov vev xaib). Ntxiv tus xa mus (ua raws cov lus qhia). Nyem Txuag.

Kauj Ruam 7: Kauj Ruam 7: Ntxiv API Key rau Koj Qhov Kev Thov

Kauj Ruam 7: Ntxiv API Qhov Ntsuas rau Koj Qhov Kev Thov
Kauj Ruam 7: Ntxiv API Qhov Ntsuas rau Koj Qhov Kev Thov

Thaum thauj cov Maps JavaScript API, hloov YOUR_API_KEY hauv cov lej hauv qab no nrog tus lej API koj tau txais los ntawm cov kauj ruam dhau los. Koj yuav tsum pom kab kab no hauv koj tus browser:

Kauj Ruam 8: Kauj Ruam 8: Sib Koom API Ntxiv Rau Hauv Koj Cov Cai

Txij ntawm no mus nws yuav yog qhov zoo los txheeb xyuas koj cov cai nrog lub vev xaib ntawm cov kws tshaj lij ntawm Google. Kuv tus kheej kev paub yuav ua li cas txuas ntxiv nws rau hauv koj cov lej xaus ntawm no. Thov mus saib lub vev xaib no kom paub ntau ntxiv.

Pom zoo: