Cov txheej txheem:

Ib co piv txwv ntawm APIs yog dab tsi?
Ib co piv txwv ntawm APIs yog dab tsi?

Video: Ib co piv txwv ntawm APIs yog dab tsi?

Video: Ib co piv txwv ntawm APIs yog dab tsi?
Video: Dab ntxwg nyoos yog leej twg ...zaj no zoo heev. 2024, Plaub Hlis Ntuj
Anonim

Cov npe hauv qab no muaj ntau qhov piv txwv ntawm APIs nrov:

  • Google Maps API : Google Maps APIs cia cov neeg tsim khoom embed Google Maps ntawm nplooj ntawv web siv JavaScript lossis Flash interface.
  • YouTube APIs : YouTube API : Google cov APIs cia cov neeg tsim khoom sib koom ua ke YouTube yeeb yaj kiab thiab ua haujlwm rau hauv cov vev xaib lossis cov ntawv thov.

Tsis tas li ntawd, API server yog dab tsi?

A server -sib web API yog ib qho programmatic interface uas muaj ib lossis ntau qhov tshaj tawm cov ntsiab lus tshaj tawm rau cov lus thov-lus teb, feem ntau hais hauv JSON lossis XML, uas tau nthuav tawm los ntawm lub vev xaib-feem ntau los ntawm kev siv HTTP-raws li lub vev xaib server.

Ib sab saum toj no, API yog dab tsi nrog lub sijhawm piv txwv? Lwm yam piv txwv ntawm APIs tias share tiag - sij hawm cov ntaub ntawv suav nrog New York Sijhawm , uas tso cai rau koj los tshuaj xyuas lawv cov ntaub ntawv ntawm ntau txhiab kab lus, thiab Spotify, uas ua rau koj tshawb nrhiav ntau hom suab paj nruag. Txawm NASA muaj qhov qhib API chock-tag nrho ntawm satellite imagery thiab constellation cov ntaub ntawv rau pej xeem siv.

Ib sab ntawm qhov no, piv txwv li API yog dab tsi?

Daim ntawv thov Programming Interface. Ib Daim Ntawv Thov Programming Interface ( API ) yog ib lub cuab yeej uas cov programmer siv tau los pab lawv tsim software. Ib piv txwv yog Apple (iOS) API uas yog siv los txheeb xyuas kev sib cuam tshuam ntawm touchscreen. APIs yog cov cuab yeej. Lawv tso cai rau koj ua tus programmer xa cov kev daws teeb meem sai sai

API kuaj nrog piv txwv yog dab tsi?

API xeem koom nrog kuaj cov programming interfaces ( APIs ) ncaj qha thiab ua ib feem ntawm kev koom ua ke kuaj los txiav txim seb lawv ua tau raws li qhov kev cia siab rau kev ua haujlwm, kev cia siab, kev ua tau zoo, thiab kev ruaj ntseg. Txij li thaum APIs tsis muaj GUI, API xeem yog ua ntawm cov lus txheej.

Pom zoo: