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

デバイス管理を App Store Connect API でやってみよう

デバイス管理を App Store Connect API でやってみよう

Shota Kashihara

June 18, 2019
Tweet

More Decks by Shota Kashihara

Other Decks in Technology

Transcript

  1. ©2019 Wantedly, Inc. Introduction ϓϩϏδϣχϯά API Ͱ࢖͑ΔϦιʔε - Bundle ID,

    Bundle ID Capabilities - Certificates - Devices - Profiles https://developer.apple.com/jp/app-store-connect/api/
  2. ©2019 Wantedly, Inc. $ swift package init --type executable Introduction

    ͔ͤͬ͘ͳͷͰ Swift CLI Ͱ࡞Δ $ mkdir <PROJECT> && cd ./<PROJECT>
  3. ©2019 Wantedly, Inc. Introduction App Store Connect API Λ࢖͏ 2εςοϓ

    - JWT (JSON Web Token) ͷൃߦ - ϦΫΤετϔομʹ Token Λ͚ͭͯ API Λୟ͘
  4. ©2019 Wantedly, Inc. Introduction App Store Connect API Λ࢖͏ 2εςοϓ

    - JWT (JSON Web Token) ͷൃߦ - ϦΫΤετϔομʹ Token Λ͚ͭͯ API Λୟ͘ - GET σόΠεҰཡ - POST σόΠε௥Ճ
  5. ©2019 Wantedly, Inc. Introduction App Store Connect API Λ࢖͏ 2εςοϓ

    - JWT (JSON Web Token) ͷൃߦ - ϦΫΤετϔομʹ Token Λ͚ͭͯ API Λୟ͘ - GET σόΠεҰཡ - POST σόΠε௥Ճ
  6. ©2019 Wantedly, Inc. Introduction JWT (JSON Web Token) ͷൃߦ -

    Issuer ID - Key ID - Private Key(.p8) IUUQTBQQTUPSFDPOOFDUBQQMFDPNBDDFTTBQJ https://appstoreconnect.apple.com/access/api
  7. ©2019 Wantedly, Inc. Introduction - Issuer ID - Key ID

    - Private Key(.p8) IBM-Swift/SwiftJWT
  8. ©2019 Wantedly, Inc. Introduction - Issuer ID - Key ID

    - Private Key(.p8) IBM-Swift/SwiftJWT
  9. ©2019 Wantedly, Inc. Introduction App Store Connect API Λ࢖͏ 2εςοϓ

    - JWT (JSON Web Token) ͷൃߦ - ϦΫΤετϔομʹ Token Λ͚ͭͯ API Λୟ͘ - GET σόΠεҰཡ - POST σόΠε௥Ճ
  10. ©2019 Wantedly, Inc. Introduction App Store Connect API Λ࢖͏ 2εςοϓ

    - JWT (JSON Web Token) ͷൃߦ - ϦΫΤετϔομʹ Token Λ͚ͭͯ API Λୟ͘ - GET σόΠεҰཡ - POST σόΠε௥Ճ
  11. ©2019 Wantedly, Inc. Introduction App Store Connect API Λ࢖͏ 2εςοϓ

    - JWT (JSON Web Token) ͷൃߦ - ϦΫΤετϔομʹ Token Λ͚ͭͯ API Λୟ͘ - GET σόΠεҰཡ - POST σόΠε௥Ճ
  12. ©2019 Wantedly, Inc. Introduction App Store Connect API Λ࢖͏ 2εςοϓ

    - JWT (JSON Web Token) ͷൃߦ - ϦΫΤετϔομʹ Token Λ͚ͭͯ API Λୟ͘ - GET σόΠεҰཡ - POST σόΠε௥Ճ
  13. ©2019 Wantedly, Inc. Introduction ·ͱΊ - App Store Connect API

    ͸ Swift Ͱ ؆୯ʹ࢖͑ΔΑ - ࣍͸ Github ͱ Bitrise Ͱ͍͍ײ͡ʹ͍ͨ͠ - ͍ͭͰʹ Swift Ͱ CLI πʔϧ Λ֮͑Δ͖͔͚ͬʹ΋ͳΔΑ