Swiftpack.co - ry-itto/QiitaAPIKit as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by ry-itto.
ry-itto/QiitaAPIKit v0.0.9
Library for Qiita API
⭐️ 0
πŸ•“ 2 years ago
iOS
.package(url: "https://github.com/ry-itto/QiitaAPIKit.git", from: "v0.0.9")

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.

GitHub

link
Stars: 0
Last commit: 2 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

Version 0.0.9
4 years ago

remove type root of QiitaAPIKit

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics