Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mvexel/maproulette-go
go interface to maproulette api
https://github.com/mvexel/maproulette-go
Last synced: about 1 month 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 (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-05T19:04:28.000Z (over 1 year ago)
- Last Synced: 2024-10-21T23:08:44.215Z (3 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.