Files
m3o-go/examples/quran/summary/getChapterSummary.go
2021-10-29 10:44:29 +00:00

18 lines
302 B
Go
Executable File

package example
import (
"fmt"
"os"
"go.m3o.com/quran"
)
// Get a summary for a given chapter (surah)
func GetChapterSummary() {
quranService := quran.NewQuranService(os.Getenv("M3O_API_TOKEN"))
rsp, err := quranService.Summary(&quran.SummaryRequest{
Chapter: 1,
})
fmt.Println(rsp, err)
}