Files
m3o-go/examples/quran/verses/getVersesOfAChapter/main.go
2021-12-09 15:06:12 +00:00

20 lines
361 B
Go
Executable File

package main
import (
"fmt"
"os"
"go.m3o.com/quran"
)
// Lookup the verses (ayahs) for a chapter including
// translation, interpretation and breakdown by individual
// words.
func main() {
quranService := quran.NewQuranService(os.Getenv("M3O_API_TOKEN"))
rsp, err := quranService.Verses(&quran.VersesRequest{
Chapter: 1,
})
fmt.Println(rsp, err)
}