github.com/nigelsmith/nationbuilder (go): Package Nationbuilder provides an API client for the Nationbuilder remote API.  In order to use it a client must be instantiated with a nation slug and remote API key.  Create a nationbuilder client  Call an endpoint  Some endpoints have specific options available to them - for example the people search endpoint.  In that case a special PeopleSearchOptions type can be passed to the client API call.  In other cases where results can be paginated then a standard Options object can be provided to the api call specifying the max number of items to return (the limit) and providing the page token and nonce used to return a paginated resource.  If a resource supports pagination then it provides a Next and Prev method which will return a suitably configured Options object or nil in the event that there are no more results.  Alongside the resource requested, endpoints return a results object with information on the status code encountered and any error that was encountered.  Make sure to call:  to check whether an error has occurred.
Keywords: golang|nationbuilder|nationbuilder-api