Documentation ¶
Overview ¶
Package fullstory implements a HTTP client to communicate with the fullstory.com API.
For the API definition, see:
http://help.fullstory.com/develop-rest
Example (Usage) ¶
package main import ( "fmt" "log" "github.com/nishanths/fullstory" ) func main() { client := fullstory.NewClient("API token") s, err := client.Sessions(15, "foo", "hikingfan@gmail.com") if err != nil { log.Fatal(err) } fmt.Println(s) }
Output:
Index ¶
Examples ¶
Constants ¶
const BaseURL = "https://export.fullstory.com/api/v1"
BaseURL is the base URL for the fullstory.com API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client represents a HTTP client for making requests to the FullStory API.
func NewClient ¶
NewClient returns a Client initialized with http.DefaultClient and the supplied apiToken.
func (*Client) ExportData ¶
ExportData returns the data export bundle specified by id.
If the client's HTTP Transport has DisableCompression set to true, the caller should treat the returned ExportData as gzipped JSON. Otherwise, ExportData is JSON that has already been uncompressed.
The caller is responsible for closing the returned ExportData if the returned error is nil.
func (*Client) ExportList ¶
func (c *Client) ExportList(start time.Time) ([]ExportMeta, error)
ExportList returns a list of metadata on completed data export bundles.
type ExportData ¶
type ExportData io.ReadCloser
ExportData represents data from the "/export/get" endpoint.
For more details, see:
http://help.fullstory.com/develop-rest/data-export-api
type ExportMeta ¶
ExportMeta is metadata about ExportData.
func (*ExportMeta) UnmarshalJSON ¶
func (em *ExportMeta) UnmarshalJSON(data []byte) error