Exemplo n.º 1
0
func listDemo(svc *api.Service, argv []string) {
	listReq := &api.ListPaymentsRequest{
		Limit: "1",
	}
	res, err := svc.ListPayments(listReq)
	if err != nil {
		fmt.Printf("Error listing payments: %v\n", err)
		return
	}
	fmt.Printf("Sucess! Got response: %+v\n", res)
}