FourChanAPI 0.0.2

FourChanAPI 0.0.2

测试测试
语言语言 SwiftSwift
许可证 MIT
发布上次发布2016年5月
SPM支持 SPM

Erik Little 维护。



  • Erik

FourChanAPI

示例

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]!)
    }
}