Forked from github.com/carlosdp/twiliogo and added UsageRecords API.
go get github.com/jagadeesh-/twiliogo
- Usage Records
Tests can be run using go test
, as with most golang projects. This project also contains integration tests (where they can be done non-destructively using the API or the working Test Credential endpoints).
These integration tests can be run by providing the necessary environment variables to access the API, as in this Makefile:
test:
@export API_KEY="<API KEY>";\
export API_TOKEN="<API TOKEN>";\
export TEST_KEY="<TEST KEY>";\
export TEST_TOKEN="<TEST TOKEN>";\
export TEST_FROM_NUMBER="<DEFAULT TEST CRED NUMBER>";\
export FROM_NUMBER="<TEST FROM NUMBER>";\
export TO_NUMBER="<TEST TO NUMBER>";\
go test -v