Files
services/examples/quran/summary/go/getChapterSummary.go
2021-09-16 12:52:36 +01:00

17 lines
329 B
Go
Executable File

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