2016-02-05から1日間の記事一覧

【Swift】NSURLConnectionとNSURLSessitonを使ってYoutubeのAPI使ってデータを取得する。

まずはNSURLSessionバージョン。 orderは「data」にすれば公開日順、resultsCountはデータの取得数。 keyはGoogle Developer Console Google Cloud Platformで取得してね。 class VideoItem: NSObject, NSURLSessionDelegate, NSURLSessionDataDelegate { fu…