Skip to content

StephenHeaps/FOAAS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

FOAAS (Swift)

Wrote a quick wrapper for the FOAAS.com API using Swift 4's JSON decoding. I make no claims of ownership of FOAAS or to it's availability.

FOAAS on GitHub

Basic usage

Copy the FOAAS.swift file into your own project and you're good to go!

let fuck = FOAAS()
fuck.off(name: "Friend", from: "You", completion: { (response, error)
    if let error = error {
        print(error)
        return
    }
    guard let response = response else { return }
    print(response.message)
    print(response.subtitle)
})

fuck.random(name: "Friend", from: "You") { (response, error) in
    if let error = error {
        print(error)
        return
    }
    guard let response = response else { return }
    print(response.message)
    print(response.subtitle)
}

License

Do whatever you like with this

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages