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

Notion APIやってみた

F0997e5e41c1863cd09dc16c3ba5018a?s=47 Shetommy
April 22, 2022

Notion APIやってみた

note tech meetup #2 にて登壇

---

先日(2022/03/03)正式公開されたNotion APIのざっくり紹介です。筆者はパブリックベータ時代に個人ブログ作成でNotion APIと向き合ったので、そのときのハマりどころを話します。

F0997e5e41c1863cd09dc16c3ba5018a?s=128

Shetommy

April 22, 2022
Tweet

More Decks by Shetommy

Other Decks in Technology

Transcript

  1. !TU!TJ /PUJPO"1*΍ͬͯΈͨ 

  2. 🧑💻/BLBKJNB5TVZPTIJ 🐧࣯ 4IFUPNNZ  🍎J04ΤϯδχΞ ⚾ָఱΠʔάϧεϑΝϯ ݸਓ։ൃ1JFDFTPG1BQFS ೥લʹ&WFSOPUF͔Β/PUJPOʹҠߦ IUUQTXXXTIFUPNNZDPN ݸਓαΠτ

    
  3. Έͳ͞Μ 

  4. /PUJPOΛ஌͍ͬͯ·͔͢ʁ 

  5. 

  6. ͦΜͳ/PUJPOʹ"1*͕͋Γ·͢ ʹύϒϦοΫϕʔλͱͯ͠ެ։ 

  7. 

  8. 🎉/PUJPO"1*ਖ਼ࣜϦϦʔε🎉  

  9. ͱ͍͏Θ͚Ͱ 

  10. ΍ͬͯΈͨ 

  11. ΰʔϧݸਓϒϩάΛͭ͘Δ 

  12.  Ͱ͖ͨ΋ͷ

  13.  ͦͷσʔλϕʔε

  14. %# ݸਓϒϩά /PUJPO ɾσϓϩΠ࣌ʹ/PUJPO"1*ୟ͘ ɾऔಘͨ͠ϒϩοΫΛ)5.-ཁૉʹม׵ͯ͠੩తੜ੒ ɹʢ4UBUJD(FOFSBUJPOʣ ಠࣗυϝΠϯ  ߏ੒ਤ

  15. ͸͡ΊΑ͏ 

  16. ඞཁͳ࡞ۀ 

  17. w 8FC͔ΒJOUFHSBUJPOΛ࡞੒ w ʢ͜ͷ࡞ۀͰτʔΫϯ͕ൃߦ͞ΕΔʣ w /PUJPOΞϓϦ͔Β%#ʹJOUFHSBUJPOΛ࿈ܞ w ࿈ܞ͢Δ%#ͷ,FZΛऔಘ w "1*Λୟ͘

    
  18. w 8FC͔ΒJOUFHSBUJPOΛ࡞੒ w ʢ͜ͷ࡞ۀͰτʔΫϯ͕ൃߦ͞ΕΔʣ w /PUJPOΞϓϦ͔Β%#ʹJOUFHSBUJPOΛ࿈ܞ w ࿈ܞ͢Δ%#ͷ,FZΛऔಘ w "1*Λୟ͘

    
  19. https://www.notion.com/my-integrations 

  20. JOUFHSBUJPO 

  21. w ݖݶ؅ཧ͕Ͱ͖Δ w ࣗ෼ͷ/PUJPOσʔλʹࣗ෼͚͕ͩΞΫηε͢ ΔͳΒ͋·Γਂ͘ߟ͑ͳͯ͘ྑ͍ w ࣗ෼Ҏ֎ͷϢʔβʔ͔ΒΞΫηεड͚Δͱ͖͸ ෳ਺JOUFHSBUJPOΛ࡞੒͢Δඞཁ͋Δ͔΋ 

  22. w 8FC͔ΒJOUFHSBUJPOΛ࡞੒ w ʢ͜ͷ࡞ۀͰτʔΫϯ͕ൃߦ͞ΕΔʣ w /PUJPOΞϓϦ͔Β%#ʹJOUFHSBUJPOΛ࿈ܞ w ࿈ܞ͢Δ%#ͷ,FZΛऔಘ w "1*Λୟ͘

    
  23. 

  24. 

  25. w 8FC͔ΒJOUFHSBUJPOΛ࡞੒ w ʢ͜ͷ࡞ۀͰτʔΫϯ͕ൃߦ͞ΕΔʣ w /PUJPOΞϓϦ͔Β%#ʹJOUFHSBUJPOΛ࿈ܞ w ࿈ܞ͢Δ%#ͷ,FZΛऔಘ w "1*Λୟ͘

    
  26. IUUQTXXXOPUJPOTPYYYCCCDBEGDB WCDCBGBCBCF 

  27. IUUQTXXXOPUJPOTPYYYCCCDBEGDB WCDCBGBCBCF 

  28. IUUQTXXXOPUJPOTP\XPSLTQBDF@OBNF^\EBUBCBTF@JE^ W\WJFX@JE^ 

  29. w 8FC͔ΒJOUFHSBUJPOΛ࡞੒ w ʢ͜ͷ࡞ۀͰτʔΫϯ͕ൃߦ͞ΕΔʣ w /PUJPOΞϓϦ͔Β%#ʹJOUFHSBUJPOΛ࿈ܞ w ࿈ܞ͢Δ%#ͷ,FZΛऔಘ w "1*Λୟ͘

    
  30. %# /PUJPOͷϒϩοΫऔಘ·Ͱ 1BHF 1BHF 1BHF #MPDL #MPDL ʜ ˞#MPDLͷJE͸1BHFͷQBHFJEͱҰக͢Δ 

  31. 2VFSZBEBUBCBTFCZ5ZQF4DSJQU 

  32. 3FUSJFWFCMPDLDIJMESFOCZ5ZQF4DSJQU 

  33. ϋϚΓͲ͜Ζ 

  34. ɾ1BHJOBUJPO ɾ3BUFMJNJUT ɾը૾ͷظݶ੾Ε 

  35. ɾ1BHJOBUJPO ɾ3BUFMJNJUT ɾը૾ͷظݶ੾Ε 

  36. w (&5ܥͷ"1*͕ฦ͢ཁૉ͸EFGBVMU ."9 w AIBT@NPSFAͱAOFYU@DVSTPSAΛݟͯॲཧ͢ΔඞཁΞϦ IUUQTEFWFMPQFSTOPUJPODPNSFGFSFODFQBHJOBUJPO 

  37. ɾ1BHJOBUJPO ɾ3BUFMJNJUT ɾը૾ͷظݶ੾Ε 

  38. w ฏۉͰඵؒ݅·Ͱͷ3BUFMJNJUT͕͋Δ w ී௨ʹୟ͘ͱ௒͑Δ͚ͲɺฏۉͳͷͰ݁ߏฏؾʢମײʣ w ௒͑Δͱ)551Λฦͯ͘͠Δ w কདྷతʹ͸՝ۚϢʔβʔʹ͸্ݶ؇࿨ͯ͘͠Εͦ͏ w ʢυΩϡϝϯτಡΉݶΓʣ

    IUUQTEFWFMPQFSTOPUJPODPNSFGFSFODFSFRVFTUMJNJUT 
  39. ɾ1BHJOBUJPO ɾ3BUFMJNJUT ɾը૾ͷظݶ੾Ε 

  40. ύϒϦοΫϕʔλެ։࣌ɺ /PUJPO"1*͸ը૾ϒϩοΫʹ ରԠ͍ͯ͠ͳ͔ͬͨ 

  41. ެ։͔Βϲ݄΄Ͳͯ͠ରԠ 

  42. ͔͠͠ 

  43. ը૾͕࣌ؒͰফ͑Δ 

  44. ʂʁ 

  45. /PUJPOͷը૾͸छྨ͋Γ·͢ ಺෦ը૾֎෦ϦϑΝϨϯεը૾ 

  46. w ͜Εɺਖ਼ࣜ࢓༷ʹͳͬͨΈ͍ͨͰ͢Ͷʜʜ w ಺෦ը૾ʹରͯ͠ੜ੒͞ΕΔ63-͸ɺ/PUJPOΞϓϦ΋࣮͸ظ ݶ෇͖Β͍͠ IUUQTEFWFMPQFSTOPUJPODPNSFGFSFODFGJMFPCKFDU 

  47. ʢʮ/PUJPOͷը૾ͬͯηΩϡϦςΟ͸҆৺ͳͷʜʜʁʯʣ ʮΞοϓϩʔυ͞ΕͨϑΝΠϧ΁ͷ63-ʹΞΫηε͢Δʹ͸ɺ ೝূ͞ΕͨϫʔΫεϖʔεܦ༝͔͠ͳ͍Αʂɹ͜ͷ63-͸࣌ؒͰظݶ੾ΕʹͳΔΑ👍ʯ 

  48. 👍 

  49. w ͱ͍͏Θ͚Ͱɺ/PUJPO"1*͸࣌ؒͷظݶ͖ͭͷ4ͷΞυϨ εΛฦͯ͘͠Δ w ։ൃऀ͕੩తͳ࢖͍ํΛ͍ͨ͠৔߹ɺͦΕΛड͚औͬͯɺͲ ͔͜ผͷετϨʔδʹอଘ͢Δඞཁ͕͋Δ w ๻͸࠷ऴతʹ/FYUKTͷQVCMJDσΟϨΫτϦ௚Լʹஔ͘࢓༷ʹ ͠·ͨ͠ w

    ࣌ؒʹճσϓϩΠͯ͠Δਓ΋͍ͯɺ͜ΕͰ΋໰୊ղܾ 
  50. ৄ͘͠஌Γ͍ͨਓ޲͚ w ެࣜυΩϡϝϯτ IUUQTEFWFMPQFSTOPUJPODPNEPDT w ݸਓϒϩάͷϦϙδτϦ IUUQTHJUIVCDPNTJTIFUPNNZDPN w ;FOOʹॻ͍ͨهࣄ ݱࡏͷ/PUJPO"1*ʢʣͰԿ͕Ͳ͜·ͰͰ͖Δ͔IUUQT[FOOEFWTUBSUJDMFTFEGC

    /PUJPO"1*ʢWʣͰը૾Λѻ͏IUUQT[FOOEFWTUBSUJDMFTFGDF