Example Golang code to integrate with the IMPARGO GraphQL API. As an introduction to the to API checkout the Getting started guide.
Run the following code to create a new order via the graphql api on the IMPARGO development system:
- Install Golang
- Set TOKEN=<your-access-token>
- Run "go run simple.go"
The following eamples are contained in this this repository:
simple
: Creating a simple order with two stops.additionalStopDetails
: Creating an order with three stops, additional stop data and load details.tollDetails
: Requesting the toll costs for a simple order with two stops.