Skip to content

Commit

Permalink
Adding documentation for prosper client
Browse files Browse the repository at this point in the history
  • Loading branch information
mtlynch committed Oct 2, 2016
1 parent 3328df3 commit 4412697
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions prosper/client.go
@@ -1,3 +1,5 @@
// Package prosper is a set of APIs that wrap the raw HTTP Prosper REST APIs.

package prosper

import (
Expand All @@ -6,6 +8,7 @@ import (
"github.com/mtlynch/gofn-prosper/types"
)

// Client is a Prosper client that communicates with the Prosper HTTP endpoints.
type Client struct {
rawClient thin.RawApiHandler
ap accountsParser
Expand All @@ -14,6 +17,7 @@ type Client struct {
orderParser orderParser
}

// NewClient creates a new Client with the given Prosper credentials.
func NewClient(creds types.ClientCredentials) Client {
tokenMgr := auth.NewTokenManager(auth.NewAuthenticator(creds))
return Client{
Expand Down

0 comments on commit 4412697

Please sign in to comment.