https://github.com/nuclearace/fourchanapi
4chan API Wrapper for OS X/iOS
https://github.com/nuclearace/fourchanapi
Last synced: 3 months ago
JSON representation
4chan API Wrapper for OS X/iOS
- Host: GitHub
- URL: https://github.com/nuclearace/fourchanapi
- Owner: nuclearace
- License: mit
- Created: 2016-05-13T16:06:56.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-05-18T14:45:34.000Z (about 10 years ago)
- Last Synced: 2025-02-19T04:47:28.018Z (over 1 year ago)
- Language: Swift
- Homepage:
- Size: 37.1 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FourChanAPI
Example:
```swift
import Foundation
import FourChanAPI
let a = FCBoard(name: "a")
// Getting a list of all boards
FCBoard.getAllBoards {boards in
print(boards)
}
// Gets the board's thread list
a.getThreads {threads in
print(threads)
let thread1 = a.threads[1]
// Fill thread with posts
thread1.updatePosts {posts in
// Print last post
print(thread1[thread1.count - 1]!)
}
}
```