Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        

# maproulette-go
go interface to maproulette api

early 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.