Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/threeaccents/gogovtrack

Golang govtrack http client https://www.govtrack.us/
https://github.com/threeaccents/gogovtrack

api-client http-client

Last synced: about 1 month ago
JSON representation

Golang govtrack http client https://www.govtrack.us/

Awesome Lists containing this project

README

        

# Go Govtrack HTTP Client

[https://godoc.org/github.com/congresso/gogovtrack](https://godoc.org/github.com/congresso/gogovtrack)

## Example

```go
client := gogovtrack.Client{
HTTPClient: http.DefaultClient,
}

// Get One
b, err := client.GetBill(1)
if err != nil {
log.Fatal(err)
}

// Get All
cs, err := client.GetCommittess()
if err != nil {
log.Fatal(err)
}

// Filter Get All
rs, err := client.Filter(gogovtrack.Q{"limit": "20", "id": "1"}).GetRoles()
if err != nil {
log.Fatal(err)
}
```