https://github.com/alexisvisco/ovh-domain-api
A pure Go OVH api to check domain availability. Without any credentials.
https://github.com/alexisvisco/ovh-domain-api
domain-availability ovh ovh-api tld whois
Last synced: 4 months ago
JSON representation
A pure Go OVH api to check domain availability. Without any credentials.
- Host: GitHub
- URL: https://github.com/alexisvisco/ovh-domain-api
- Owner: alexisvisco
- Created: 2019-01-10T08:39:08.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-12T18:17:12.000Z (over 7 years ago)
- Last Synced: 2026-01-20T13:54:42.269Z (5 months ago)
- Topics: domain-availability, ovh, ovh-api, tld, whois
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 5
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
### Simple ovh domain api
Get the api:
```
go get github.com/alexisvisco/ovh-domain-api
```
Thenn just use it:
```go
import (
"fmt"
"github.com/alexisvisco/ovh-domain-api/domain"
"github.com/alexisvisco/ovh-domain-api/domain/subsidiary"
)
func main() {
client, e := domain.NewClient(subsidiary.FR)
if e != nil {
panic(e)
}
results, e := client.DomainInfo("google.fr")
if e != nil {
if e == domain.UnknownExtension {
fmt.Println("UnknownExtension")
} else {
panic(e)
}
}
fmt.Println(results.IsTaken())
}
```