Files
services/examples/quran/summary/go/getChapterSummary.go

18 lines
330 B
Go
Executable File

package example
import (
"fmt"
"os"
"github.com/micro/services/clients/go/quran"
)
// 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)
}