https://github.com/mvexel/maproulette-go
go interface to maproulette api
https://github.com/mvexel/maproulette-go
Last synced: 3 months ago
JSON representation
go interface to maproulette api
- Host: GitHub
- URL: https://github.com/mvexel/maproulette-go
- Owner: mvexel
- License: mit
- Created: 2023-07-29T17:19:20.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-05T19:04:28.000Z (almost 2 years ago)
- Last Synced: 2025-02-04T15:48:36.580Z (5 months ago)
- Language: Go
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# maproulette-go
go interface to maproulette apiearly work
[docs](docs.md)
Example usage
```go
apiKey := os.Getenv("MAPROULETTE_API_KEY")if apiKey == "" {
log.Fatal("Environment variable MAPROULETTE_API_KEY not set")
}
mr := maproulette.NewMapRouletteClient(&maproulette.MapRouletteClientOptions{
APIKey: apiKey,
})challenge, err := mr.GetChallenge(20202)
```This returns a [`Challenge`](https://github.com/mvexel/maproulette-go/blob/main/docs.md#type-challenge) struct.