Deprecated: This module has been rebranded and moved to github.com/massive-com/client-go. Please update your imports and dependencies.
package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Apr 8, 2022
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
Documentation
¶
- Constants
-
type Client
-
func (c *Client) Call(ctx context.Context, method, path string, params, response interface{}, ...) error
-
func (c *Client) CallURL(ctx context.Context, method, uri string, response interface{}, ...) error
-
func (c *Client) EncodeParams(path string, params interface{}) (string, error)
View Source
const (
APIURL = "https://api.polygon.io"
DefaultRetryCount = 3
)
Client defines an HTTP client for the Polygon REST API.
New returns a new client with the specified API key and default settings.
Call makes an API call based on the request params and options. The response is automatically unmarshaled.
CallURL makes an API call based on a request URI and options. The response is automatically unmarshaled.
EncodeParams encodes path and query params and returns a valid request URI.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.