Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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/
- Host: GitHub
- URL: https://github.com/threeaccents/gogovtrack
- Owner: threeaccents
- Created: 2017-01-13T01:23:36.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-10-02T02:28:22.000Z (about 5 years ago)
- Last Synced: 2023-03-21T21:38:53.600Z (almost 2 years ago)
- Topics: api-client, http-client
- Language: Go
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)
}
```