ry-itto / QiitaAPIKit

Library for Qiita API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

QiitaAPIKit

BuildStatus

library for Qiita API.

Installation

SwiftPM

Using Xcode 11.x

  • Click '+' button

スクリーンショット 2019-12-06 14 31 55

  • Put this repository's URL(https://github.com/ry-itto/QiitaAPIKit)

スクリーンショット 2019-12-06 14 33 21

  • Click Next two times, and click finish.

Cocoapods

add pod 'QiitaAPIKit' to your Podfile.

Supported APIs

Endpoint HTTP Method struct
/api/v2/items GET ArticleRequest
/api/v2/items/:item_id/comments GET ArticleCommentRequest
/api/v2/items/:item_id/likes GET ArticleLikesRequest
/api/v2/items/:item_id/stockers GET ArticleStockersRequest
/api/v2/tags GET TagRequest

How to Login

  1. Initialize struct of Auth with client_id, client_secret, redirect_url, and scope.
  2. Use showLoginView() function. ※ Before using Login, adopt protocol QiitaAPIKitAuthDelegate.

To increase limit of API request

Set access_token to Initializer.

About

Library for Qiita API

License:MIT License


Languages

Language:Swift 91.7%Language:Ruby 8.1%Language:Makefile 0.1%