So a lotof I t professionals, youknow, networkengineersinsistadministheydon't reallythinkaboutAPeyes a lotbecausetheythinkofthatisjust a CZlikethedeveloperworld, right?
Butoneoftheinterestingthingsisastheworldhasmovedon, isthat a P eyeshavebecomemoreandmoreimportantforoldlinesystemadministratorsandnetworkadministratorsandthattypeofthing, becauseAPeyeshavebeencreatedsothatsystemadministratorsanoldtime I t canactuallyaccessserviceisthattheywouldhavehadtospendupserversforinthepast.
Sointheolddaysback 20 yearsago, if I neededanemailservice, right, I needtobeabletosendout e mailsfrommyapplicationorfirstfromsomethingelse.
I wouldbuild a physicalmachine.
I wouldinstallanoperatingsystemunderthatphysicalmachine, theninstalledtheemailserverexchangeorwhateverelseonthatphysicalmachine.
Andthen I, as a systemadministrator, wasresponsiblefortheharddriveandtheoperatingsystemandtheserversoftwareandanyoftheconfigurations.
Well, nowagain, itisnow.
Thefutureisnowthefuture, andtheideaofhavingtoactuallybuild a physicalmachineinordertogetaccesstothingssuchlikesuckhis e mailserviceisseems a littlebitridiculous.
Andsonow, likewithAPeyes, there's a companycalledSendingGridthatwaspurchasedbyanothercompanycalledTWILIO.
Soifyouneed e mailserviceisinsteadofactuallybuildingyourown a physicalemailserverorevenspendingup a virtualemailserverusingan A P I, youcansimplyconnecttosendgrids.
Youcansimplyhaveyoursoftwarebeabletoconnecttosend A greatserviceisandthenbasicallyyoursoftwareisabletosendout e mailsusingsendgrids, a p I tosend e mailsoutsothiscouldbeveryvaluableforthingslikenotificationsystems.
Solet's sayyouhave a backupsysteminyourcompany, right?
You'reyou'rebackingupyourservers.
If a backupfailsforsomereason, youwantanemailtobesentout.
Simplyconnecttosendgridservice's sothatwhenanemailnotificationneedstobesent, itcouldjustconnecttosendgridthroughtheAP I andthenthe e mailwillbesentout.
Orifyou'relookingat a companylikeTwiliotwilioagain, PurkisssendGridtwiliooffers a lotoftelephoning.
Doyoureallywanttobuild a physicalserverandfigureouthowyou'regoingtosendoutSMSmessagesthat's goingtobeverytimeconsumingisgonnabeveryexpansiveit's gonnabe a paininthebutt.
OryoucansimplyconnecttoTWILIOas a P I onthenyournotificationsystem.
And, youknow, within a dayeverythingisupandrunningagain.
Youdon't havetoworryaboutfirewalls.
Youdon't worryaboutCPUfans.
Youdon't havetoworryaboutanyofthattypeofthing.
Isthatwhatwe'restartingtotalkabout?
Whatwe'retalkingabout?
A.
P I s a lotofpeoplehavetheoldidea, like a decadeoldideaof a P I, ZahraabouttwitterapeyesaboutFacebook, thattypeofthing.
ButAPeyesnowreallyareabout a lotoftheoldschoolserviceisthathavesimplybeensocommoditized, Justcommoditizedto a degreethatnowyou'rejustconnectingandyouknow, for $10 a monthorsomething, you'reabletopayfor 10,000 or 100,000 SMSmessagesgoingout.
That's thefirstthingtobethinkingabout.
Ifyou'reoldschool, I t theotherthingtobethinkingaboutistheseAPEyesaresousefulwhenpeoplearegettingsousedtocodingIsthatnowthereare a lotofAPeyesforactualequipmentitself s onlythinkaboutthingslikesoftwaretofindout.
Working S d n A.
Thisiswherewe'reabletomanageournetworkinfrastructureusingcodeprogrammingcleWell, inordertodothat, therehastobean A p I.
Therehastobe a waytoehaveyourcodeactuallyconnectintoyouryourphysicalnetworkinfrastructure.
Socompaniessuch a ciscosixgoactuallyhas a P eyesformuchoftheirphysicalequipment.
Soifyouwant a qualityofservice, youknowchangesifyouwantroutingchangesIfyouneedtohaveanycagesdonetoyourphysicalnetworkinfrastructure, youcanactuallyconnectwithAPeyesandbeabletochangehowrightratroutingisdone.
Modern I t You'renowlookingatmoreoftheserviceorientedarchitecture.
AndsoifyourinfrastructureneedsSMSserviceisinsteadofbuilding a physicalboxandtryingtofigureouthowtomakethatwork, youcan't simplyconnecttoan A P I totwilioagain.
IfyouwanttobeabletomanprograminklingmanageyourCiscoequipment, youcanconnectyourCiscoequipmentusingan A P I.
I wouldarguethesameisnowtrueassistantsystemadministrators.
Withbeingabletouse a P eyes, youneedtobecomfortablewithit.
Youneedtohave a basicunderstandingofhowyouconnecttheseAPeyesfordifferentserviceisandyoushouldhave a basicunderstandingofhowhowtobe a code, atleast a littlebitofcode.
Now, whenhestartedthinkingaboutusingAPeyes, thereare a fewthings, a fewconsiderationsyou'regoingtohavetokeepinmind.
ThefirstconsiderationwithAPEyesisbasicallywhatprogramminglanguageareyougoingtouseinordertoconnecttothe A P I A game?
It's anapplicationprogramminginterface, whichmeansyou'regoingtoneed a programminglanguage.
IsthatgoingtobePHP?
IsthatgoingtobeRubyisnotgonnabepython.
Isthatgonnabejob?
Isitgonnabe?
C Sharpisn't gonnabeanyoftheseprogramminglanguages.
Andguessguesswhat?
Theansweris.
Whenyousay, Eli, whatprogramminglanguagedo I needtoknow?
InordertouseanAP, I I'm gonnagiveyou a shockinganswer.
Godo a Googlesearch, pulluptheserviceyouwanttouse, pulluptheretheinformationfortheirAPeyesandseewhatprogramminglanguagesthattheyallowedtoconnecttotheirservice.
Whetherit's python, whetherit's PHP, whetherit's c sharp, whetherhisjoborwhateverelse.
Basically, they'regonnacreatetheFBI.
They'regonnasayourFBIworkswith a B and C soyouknow, ifyou'regoingtouseour a p I youhavetousethatprogramminglanguage.
I wouldargue.
I thinkthisisoneofthereasonswhypythonbecamesopopularIfyougobackfiveorsixorsevenyearsagobecausewhen a lotoftheseAPeyeswerebeingdebutedforpeopletouse, thefactofthematterisbackthenmanytimestheonly a p I languagethatwasavailablewaspython.
Theywillcomeoutwiththe a P i againagainyougoback 567 yearsago, a lotoftheseAPeyeswerebrandnewagain.
Sotheimportedthing, Whateverservicethatyouwanttousewith a P, I basicallyjustgotake a lookatwhatlanguagestheysupportandthenpickthelanguagethatworksbestforyou.
OneofthingsyoualsohavetolookatwiththeseAPeyesiswhatisthecostforuseinthe A P I.
Nowthecoolthingisagain, Thishasbeencommoditizedtosuch a degree.
Somethinglike 10,000 emailor 20,000 emailsnowisactually I thinkit's a freeservice.
Ifyousendout 10,000 emails a monthfromsendinggrid, I recallrightnowisactuallysocommoditizedthat's freeifyousendout, like 100,000 orhundredsofthousandsofemailsthatmightcostyou $10 a month.
I againifyouhave a websitelikeyou, like a computerguydotcom, Sohave a websitecalledyouonthecomputer i dotcomYoucansignupformembership.
I usean A P I inordertosendouttheemailsagain.
Why?
Whybuildmyownemailserver?
Soon a sitelikethat, frankly, youknow, itsendsoutthousandsof e mails a month, so I knowwhatmycostfor a websitelikeyouonthecomputerdotcomissomethingthatyoumaybethinkingaboutyoumayhavetothinkabout, though, isifyou'regoingtobedoing a websiteorsomekindofservicethatsendsout a lotofemail.
Soagain, let's saysomekindofnewsblastservice.
You'regonnabecreating a startupcompany, sosomebodystartupcompanies.
Well, somethingtobethinkingaboutisififthebusinessthatyou'regonnabesupportingthey'resendingoutagainhundredsofthousandsormillionsof e mailspermonth, ormaybeevenperweekorsomethinglikethat a costthat, formeisirrelevantmayactuallybecomeverysignificantInyourparticularsituation, youhavenothingtotobethinkingaboutisagain.
HowmanytimesweregoingbehittingtheAP, I SoareyougonnabeusingtheAP I, youknow, onceperdayperuser.
AreyougoingtobehittingtheAP I every 10 seconds, they'regonnabehittingtheAP, I everyonesecond.
Soifyouget 100,000 a p I callsfor 20 bucksorsomething, uh, permonth.
Youknow, somethingtobethinkingaboutisifyou'remakinganAP I calleverysecondyou'regonnahitthat 100,000 mark a lotsoonerthanifyoudoitevery 10 secondsoreveryminute.
Everyfiveminutesor 10 minutes.
SosomethingyouneedtobethinkingaboutwhenyouwriteyourcodeisbeingconservativewithhowmanytimesdoyouactuallyhavetomaketheAP I call?
That's oneofthingsbethinkingaboutiswithcosts.
TheotherthingtobethinkingaboutwiththoseAP I callsisthelimitsthatareimposedonyou.
Thenagain, like I saywiththat, yougowhenyoufigureoutwhichvendorsupportswhatyouneed.
Sonowthat I'vegivenyou a briefideaofwhat a P eyesareandwhyyoushouldbethinkingaboutAPeyes, let's goovertothecomputeragainso I canshowyou a coupleofexamplesofwhatAPeyesexistintherealworld.
Sohereweare, thefirst a p I totake a lookatisthiscompanycalledtwilio.
Ifyouhavenotlookedattwiliobefore, youneed a look.
A twiliotwiliois a coolcompany.
Twilioisoneofthosethingswhereevenifyouhavenouseforitusedtotake a lookatwhatthey'redoingbecausewhatthey'redoingisreallycool.
I got a wholebunchofdifferentthingshere, soweclickon a programmableSMS.
Soagain, ifyouwantedtosendoutSMSmessagesbasicallytextmessages, thiswillbe a wayforyoutodoit.
Wecangohere, minimizethatandwecanclickontheir A p I.
Andhereitkindofgivesyousomeofexamplesofhowyouwouldusetheir A p I withcodeagain.
Whenwetake a lookatwhatprogramminglanguagesyouwereabletouse, youwillseetheyhaveanoptionforPHP.
Theyhaveanoptionfornodepython, rubyjavaanddotnet C sharp.
Theysay, Whataboutsomethingelse?
Itdoesn't matter.
Whataboutit?
Theydon't haveitright, Eh?
Sowetake a lookhere.
Basically, wecouldtake a lookattheirPHPcode.
Yousee, theyopenupthePHPscripttheydorequiretheyusethen a coupleofthingsdownhereisyourmostlikely.
Wheneveryou'regoing, D'oh.
Have a beusinganAP I There's gonnabesomekindoflike a session I d or a user i d typeofthingand s I d ondsoyouhaveyouridentificationheresometypeoftokens.
Sobasically, again, thisisforsecurity.
Sobasicallyyou'resettingupthesecurityyou'resettingupyourconnection, thenwithclient, you'regoingtocreate a message.
Andthenallof a suddenyou'regoingtostartgetting a lotofgarbageinourdatabasebecauseonceyouhitthat 10,000 queriesperhourlimit, thenit's goingtobejustbegivingyouback a 403 error.
Sothat's justsomethingtobethinkingaboutthere.
Bassthatwecouldgooverandsay, Take a lookatCisco.
Soagain, Cisco, thisisnetworkingequipment.
TheyhavenetworkcontrollerAPeyesthatweredevice a p I serviceproviderAPEyesmobilityAPEyesDataCenterFBI's collaborationAPEyes I o T a p I Securityapeyescloudsoonandsoforthandagainthisiswhereagain, inthecodingworldinthismodernworldofdoing, I t you'regonnahavetodo a lotoflotofresearchlikesomanytimesnowadays.
Whatyouhavetodoisyouhavetobesittingtherewith a cupofcoffee, thinkingabouthowhowcould I makemyinfrastructureworkbetter?
Whatservicewould I needinordertomakemyinfrastructureworkbetterandyoujustkindofspitballandyouthinkaboutit, andthenonceyouhavekindofanideaofwhatyou'relookingfor, thenyoucangooutandyoucanstartdoingGooglesearchesandseeifthereareanyproductsareofferingsouttherethatprovidewhateverserviceitisthatyouneedandyou'llbesurprised.
Inthismodernworld, thereare a lotofproducts, andserviceisyoumaynothavethoughtaboutbeforepastthatagain, wecouldgotosomethinglikeTwitter.
SoTwitterthisisthere a p I referenceauthenticationcreatedmanagelistsandyoucansee, likewithwithTwitter, youcandoalmostanythingthatyouwantfromoutsideofTwittertointeractwiththeTwitterTwittersystems.
Sothiskindofjustgivesyou a briefideaofthedifferenttypesofAPeyesthatareoutthereandagainthere.
APeyesdefinitelyforFacebookandTwitterlikeyou'reusedto, butthere's also a P AyFranciscoforactualphysicalequipment, andthenagain, forsomeoftheservice, isthatyoumayneedagain.
Messagingserviceisthattypeofthing.
Goingwith a companylikeTwilioreallymaybe a greatwaytogoagain.
Don't, don't you?
Insteadofspinningup a physicalserver, installinganoperatingsystem, dealingwithfirewalls, dealingwithCPUfansdealingwithallofthat, whatwouldbe a lotnicerjusttocreateanaccountonTWILIO?
Youknow, copyandpaste a snippetofcodeandbedonewithit.
Thisbecame a reallybigproblem a numberofyearsagowhen a lotofabswerecreatedinordertointeractwithTwitter.
SooneofthereasonsthatTwitterbecamesopopularsofastsomanyyearsagoistheyhad a veryopen, veryloose a p.
I basicallyanynineyearoldcouldcreatecodeconnecttotheTwitter, a p I, andawaytheywent.
Andsooneofthecoolpartsaboutthatwaasistherewas a lotoftherewere a lotofAPS.
Therewere a lotoflikeWebmapsthatwerecreatedinordertointeractwithTwitter, thatwe'reverynew.
Thatwereveryinteresting.
Thatgot a lotofpeoplemotivatedtouseTwitter.
Unfortunately, aswhathappenswith a lotofSiliconValleycompanies, theygotgreedyandtheygotstupid.
Oneofthereasonsthat I wouldargueTwitterhasfallensofarbehindsomanyothersocialmediacompaniesoutthereisbecausewhattheydidisatonepointtheysaid, Well, wait a minute.
IfallofthesealloftheseabsareconnectingtoourTwitterinfrastructureandthey'remakingmoney, wait a minute.
That's moneyweshouldbemaking.
Whyareweallowingthemtotake a freeridewhenweshouldbemakingthatmoney?
Soifyouifyouwanttowrite a tweettoTwitter, obviouslyyou're a p I Zabeltoeareyouryouryourprogramsthatwillconnectthere a p I andthatfeedstheinformation.
Butyouhavenocontroloverwhatelseitdoeswiththatinformationagain, ifyou'rethinkingaboutsomething, likeusingthatfree g o p a p I that I justshowedyourealizetheycouldbeloggingthingsthatyou'renotexpectingthem.
Everythingright, D m I SamehistorywiththeseAPeyessomebodyreallybethinkingaboutIfyou'reworriedaboutsecurity, ifyou'reworriedaboutaboutyourdataandhowitusesthink.
Okay, whatinformationdo I needtofeedtotheseAPeyes?
Am I Am I doingtheprogramequivalentof T.
M I?
Andifyouare, theyjustscaledbackwhatyoufeedtotheAPeyesordosomekindof a nonizationprocessorsomethinglikethat.
You'llthinkabouthowyoudothatin a differentway, andbasically, that's that's what I wouldrecommend.
Sothatis a briefoverviewofAPeyesagain, Theseareveryimportantintheclassical, thestandard I t Worldnownotjustforfordevelopersagainwithnotificationsystemswithallkindsofstuffagainststorage, networkingequipment, allofthesethings.
YouarenowabletointeractusingtheseAPeyes.
And I wouldargue, learningAPeyesnowandlearningcodinglanguagesuchasPython.
Nowit's justlike 15 yearsago.
LearningLennox, right?
Yougobackto 5 4010 ItwasjustcompletelyobviousyouhadlearnedLAXjusthadlearnedLennixinordertocontinuetobe a systemadministratortobeinthe I t world, I wouldarguethesameistruenowwithAPeyeswhereBeforeagainyougoaboutfiveorsixyearsagoalonghisAPeyeswerebrandnewandmaybeyouknowwhat?
Maybeyoudidn't didn't reallymatterGoingforward, I wouldargueyou'regoingtoneedtostartlearninghowtheseAPeyeswork.
You'regonnaneedtostartlearningsomekindofcodedlanguagesuchaspython, soyoucaninteractwiththemandwithin a coupleofyearsisjustgoingtobe a normalthing.
Thathastobeontheresume.
Ifit's notalreadynowSo, asalways, I enjoydoingthisclassandallquartersinthenextone.
Apparently, thetypeofcontentyoujustsawisnotwhatSusan W.
WantsforthefutureofYouTube.
ThismeansthatrecommendationsbyYouTubetothischannelhavedroppedmassively, andviewsarebecoming a comicallysmall I hatetoask.
I usedtosay I wouldneverask, butifyoucouldsubscribelikecommonandmostimportantly, sharethevideosthatyouappreciate, thatmayhelpslowthedeathofthischannel.