An API Wrapper in GoLang for The SimpsonsQuote API.
go get https://github.com/HPaulson/Go-Simpsons-Quotes/src
package main
import (
"fmt"
"log"
simpsons "simpsons/simpsons"
)
func main() {
data, err := simpsons.GetQuotes("0")
if err != nil {
log.Println(err)
}
fmt.Println(data[0].Quote)
}
Data Structure:
simpsons {
GetQuotes("<INT>") // Array<{data}>
}
data {
Quote // String<Quote>
Image // String<IMG_URL>
Character // String<Character>
CharacterDirection // String<Left | Right>
}