TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | May 2016 |
SPMSupports SPM | ✗ |
Maintained by Erik Little.
Example:
import Foundation
import FourChanAPI
let a = FCBoard(name: "a")
// Getting a list of all boards
FCBoard.getAllBoards {boards in
print(boards)
}
// Updates the board's thread list
a.updateThreads {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]!)
}
}