Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/naoty/qiita-swift
Qiita API v2 client for Swift
https://github.com/naoty/qiita-swift
Last synced: 3 months ago
JSON representation
Qiita API v2 client for Swift
- Host: GitHub
- URL: https://github.com/naoty/qiita-swift
- Owner: naoty
- License: mit
- Created: 2014-12-13T03:30:24.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-13T08:24:59.000Z (about 10 years ago)
- Last Synced: 2024-04-15T02:57:35.837Z (9 months ago)
- Language: Swift
- Size: 164 KB
- Stars: 17
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# qiita-swift
Qiita API v2 client for Swift
## Example
```swift
let client = Qiita.Client(accessToken: "...")
// let client = Qiita.Client(accessToken: "...", baseURLString: "http://*.qiita.com/api/v2")let parameters = ["query": "user:naoty_k"]
let request = client.getItems(parameters: parameters)
request.onComplete { items in
// ...
}
request.onError { error in
// ...
}
request.resume()
```## Usage
### Items
* `Qiita.Client.getItems(parameters: [String:String] = [:])`
* `Qiita.Client.getItem(id: String, parameters: [String:String] = [:])`
* `Qiita.Client.getUserItems(userID: String, parameters: [String:String] = [:])`
* `Qiita.Client.getUserStocks(userID: String, parameters: [String:String] = [:])`### Users
* `Qiita.Client.getUsers(parameters: [String:String] = [:])`
* `Qiita.Client.getUser(id: String, parameters: [String:String] = [:])`
* `Qiita.Client.getAuthorizedUser()`
* `Qiita.Client.getFollowees(id: String, parameters: [String:String] = [:])`
* `Qiita.Client.getFollowers(id: String, parameters: [String:String] = [:])`
* `Qiita.Client.getItemStockers(itemID: String, parameters: [String:String] = [:])`## Installation
TODO
## Author
[naoty](https://github.com/naoty)