Skip to content

An API Wrapper written in Go for the SimpsonsQuote API

License

Notifications You must be signed in to change notification settings

HPaulson/Go-Simpsons-Quotes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Go-Simpsons-Quotes

An API Wrapper in GoLang for The SimpsonsQuote API.

Usage

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>
}

About

An API Wrapper written in Go for the SimpsonsQuote API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages