mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-14 11:44:42 +00:00
20 lines
379 B
Go
Executable File
20 lines
379 B
Go
Executable File
package example
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"go.m3o.com/quran"
|
|
)
|
|
|
|
// Lookup the verses (ayahs) for a chapter including
|
|
// translation, interpretation and breakdown by individual
|
|
// words.
|
|
func GetVersesOfAchapter() {
|
|
quranService := quran.NewQuranService(os.Getenv("M3O_API_TOKEN"))
|
|
rsp, err := quranService.Verses(&quran.VersesRequest{
|
|
Chapter: 1,
|
|
})
|
|
fmt.Println(rsp, err)
|
|
}
|