Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Web API 完全に理解した 〜黎明編〜

Web API 完全に理解した 〜黎明編〜

「完全に理解した人達の「Web技術」Talk #1」の発表スライドです。
https://easy2.connpass.com/event/161840/

unsoluble_sugar

January 30, 2020
Tweet

More Decks by unsoluble_sugar

Other Decks in Programming

Transcript

  1. λΠϜϥΠϯͷ৘ใ͕JSONͰऔಘͰ͖Δ { "created_at": "Sun Jan 19 12:33:32 +0000 2020", "id":

    1218874129316638700, "id_str": "1218874129316638720", "text": "ϦΫΤετϔομʔͷAuthorizationͬͯɺ೔ຊޠͰදݱ͢Δͱʮೝূํࣜʯͱ͔Ͱྑ͍ͷ͔͠Β", }, "source": "<a href=\"https://about.twitter.com/products/tweetdeck\" rel=\"nofollow\">TweetDeck</a>", "user": { "id": 149069183, "id_str": "149069183", "name": "੕Ө", "screen_name": "unsoluble_sugar", "location": "ೋ࣍ݩ", "description": "Tech Hunter୅දɻશจݕࡧ/εϚϗήʔϜ/νϟοτbot/IoTͱ͔΍ͬͯΔࡶଟͳΤϯδχΞɻ࠷ۙ͸PM΋݉೚ɻFlutter/GCP/FirebaseษڧதɻΨδΣΦλͰΞχ ΦλͰήʔΦλɻྦྷܭ1000ສPVͷݸਓϒϩάӡӦɻ2ࣇͷύύɻຊ୨ɿhttps://t.co/kGyfPuFvIO", "url": "https://t.co/h7Iq47ug5Z", "entities": { "url": { "urls": [ { "url": "https://t.co/h7Iq47ug5Z", "expanded_url": "https://unsolublesugar.com", "display_url": "unsolublesugar.com", …
  2. ϨεϙϯεσʔλΛղੳͯ͠ը໘ʹ൓ө • πΠʔτ৘ใ
 textɿΫι຾͍
 created_atɿSun Jan 19 12:33:32 +0000 2020


    sourceɿTweetDeck • Ϣʔβʔ৘ใ
 user.profile_image_urlɿhttp://pbs.twimg.com/profile_images/1109649870594293766/AQHwKd6N_normal.jpg
 user.nameɿ੕Ө
 user.screen_nameɿunsoluble_sugar

  3. GETҎ֎͸σʔλͷੜ੒ɺߋ৽ɺ࡟আ • πΠʔτͷ౤ߘ
 POST statuses/update • ը૾ͷΞοϓϩʔυ
 POST media/upload •

    DMͷ࡟আ
 DELETE direct_messages/events/destroy • DMͷ΢ΣϧΧϜϝοηʔδมߋʢ͜Μͳػೳ͋ͬͨΜ͔…ʣ
 PUT direct_messages/welcome_messages/update
  4. • HTTPϔομʔɺϘσΟʢϦΫΤετɾϨεϙϯεʣ • HTTPϝιου • ΤϯυϙΠϯτ • ΫΤϦετϦϯάʢURLύϥϝʔλʔʣ • URLΤϯίʔσΟϯά

    • ϑΟϧλɺιʔτɺݕࡧɺϖʔδωʔγϣϯ • ೝূɺೝՄʢBasic, OAuth2, OpenID Connectʣ • ηογϣϯ؅ཧ • σʔλܕ • ग़ྗܗࣜʢJSON, XML, HTMLʣ • ΤϥʔϋϯυϦϯά • εςʔλείʔυʢ200, 404, 502ʣ • APIαʔόɺWebαʔό • όʔδϣϯ؅ཧ • ઃܭʢRESTfulʣ • ηΩϡϦςΟ
  5. ࢀߟॻ੶ • WebΛࢧ͑Δٕज़ ᴷ HTTPɺURIɺHTMLɺͦͯ͠REST
 ࢁຊཅฏɹஶʢWEB+DB PRESS plusʣ
 2010೥4݄ ൃߦ


    • Web API: The Good Parts
 ਫ໺ و໌ɹஶʢΦϥΠϦʔδϟύϯʣ
 2014೥11݄ ൃߦ