api

package
v0.0.0-...-742d8af Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package chargepoint provides a native client library wrapping the "ChargePoint Web Services API Version 5.0".

Note that any comments quoted from the API Guide are indicated as such, and will be quoted verbatim.

TODO(james): Add more detail to the package comment, including examples of how to use the library.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(url, apiKey, apiPassword string, httpLogWriter io.Writer) *client

NewCliant returns a new client instance that communicates with the given SOAP Endpoint (`url`) with the given ChargePoint API credentials. A record of every HTTP exchange will be written to `httpLogWriter`, in JSONL format.

Note that the ChargePoint Web Services API is a SOAP v1.1 endpoint protected by a WS-Security "UsernameToken". The username is the API license key, and the password is the API password.

func NewHandler

func NewHandler(server ChargePointServer) http.Handler

Types

Directories

Path Synopsis
cmd
client
client is a reflection-based command-line interface to the ChargePoint API client library.
client is a reflection-based command-line interface to the ChargePoint API client library.
Package schema defines Go structs that map to and from the ChargePoint API WSDL types (using `encoding/xml` marshaling/unmarshaling rules).
Package schema defines Go structs that map to and from the ChargePoint API WSDL types (using `encoding/xml` marshaling/unmarshaling rules).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL