Introducing GabKit/Otemachi.swift02-2

Introducing GabKit/Otemachi.swift02-2

3e66b3ccfa617b78c59d9dec865aa29f?s=128

noppefoxwolf

October 16, 2018
Tweet

Transcript

  1. *OUSPEVDJOH(BC,JU 0UFNBDIJTXJGUOPQQF !OPQQFGPYXPMG 

  2. OPQQF ! J04BQQEFWFMPQFS " DPNQBOZPGTUSFBNJOHBQQT # SFBMMZMJLFGPY $ KBQBOFTF 

  3. 8IBUT(BC  

  4. HBCDPN "TPDJBMOFUXPSLUIBUDIBNQJPOTGSFFTQFFDI  JOEJWJEVBMMJCFSUZBOEUIFGSFFqPXPG JOGPSNBUJPOPOMJOF"MMBSFXFMDPNF *OTIPSU 4/4MJLF5XJUUFS IUUQTHBCDPN 

  5. 8IBUTEJ⒎FSFOUGSPN 5XJUUFS 

  6. %J⒎FSFODFCFUXFFOHBCBOE5XJUUFS w DFOTPSTIJQJTZPVSTFMGUPVTFpMUFS w MFHBMQPSOPHSBQIZJTQFSNJUUFEJGNBSLBT /4'8 w BCMFUPBQQMZGPSBQQSPWBMVTFSTZPVSTFMG 

  7. 

  8. 

  9. 

  10. OPJ04BQQ 

  11. 4P EFWFMPQCZNZTFMG 

  12. 0⒏DJBM"1* IUUQTEFWFMPQFSTHBCDPN w 0OMZ1306TFS w /PUGVMMZ FYSFTQPOTFFYBNQMF w #FUUFSUIBO5XJUUFS"1*JONBOZXBZT 

  13. #FUUFSUIBO5XJUUFS"1* w 3BUFMJNJUBSFNJO w /PUJpDBUJPO BDUJWJUZ BQJ w 1PMMBQJ w

    4DPQFT QFSNJTTJPO 
  14. (BC,JU "(BCDPNGSBNFXPSLXSJUUFOJO4XJGU 

  15. (BC,JU w 4JNQMFUPVTF w 3FTQPOTFTBSFTJNQMFNPEFM w TVQQPSUBMMBQJ w 0QFOTPVSDFBOE.*5-JDFOTF 

  16. 4FUVQ "EEVSMTDIFNFZPVS*OGPQMJTU <key>CFBundleURLTypes</key> <array> <dict> <key>CFBundleTypeRole</key> <string>Editor</string> <key>CFBundleURLSchemes</key> <array> <string>gabkit</string>

    </array> </dict> </array> 
  17. 4FUVQ )BOEMF63-JO"QQ%FMFHBUF func application(_ app: UIApplication, open url: URL, options:

    [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool { Gab.handleURL(url) return true } 
  18. "VUIPSJ[F let gab = Gab(clientID: Secret.clientID, clientSecret: Secret.clientSecret, scopes: .read,

    .notifications, .writePost) gab.authorize(withPresentingFrom: self) 
  19. (FU.BJOGFFE gab.getMainFeed(success: { (response) in // response.data.count }) $SFBUF1PTU gab.createPost(body:

    "hello gab.") 
  20. (BC,JU IUUQTHJUIVCDPNOPQQFGPYXPMG (BC,JU