Commit from m3o/m3o action

This commit is contained in:
m3o-actions
2022-03-09 11:51:42 +00:00
parent 885aa8766c
commit 465010411d
30 changed files with 1468 additions and 1468 deletions

View File

@@ -4,38 +4,6 @@ An [m3o.com](https://m3o.com) API. For example usage see [m3o.com/quran/api](htt
Endpoints:
## Verses
Lookup the verses (ayahs) for a chapter including
translation, interpretation and breakdown by individual
words.
[https://m3o.com/quran/api#Verses](https://m3o.com/quran/api#Verses)
```go
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)
}
```
## Search
Search the Quran for any form of query or questions
@@ -120,3 +88,35 @@ func GetChapterSummary() {
}
```
## Verses
Lookup the verses (ayahs) for a chapter including
translation, interpretation and breakdown by individual
words.
[https://m3o.com/quran/api#Verses](https://m3o.com/quran/api#Verses)
```go
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)
}
```