Versions in this module Expand all Collapse all v1 v1.0.1 Aug 19, 2026 v1.0.0 Aug 18, 2026 Changes in this version + const DefaultBaseUrl + type CompressionType string + const CompressionGzip + const CompressionZstd + type DynamicInput struct + Script string + func (v *DynamicInput) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *DynamicInput) UnmarshalJSON(data []byte) error + func (v DynamicInput) MarshalEasyJSON(w *jwriter.Writer) + func (v DynamicInput) MarshalJSON() ([]byte, error) + type Headers struct + Arch string + DeviceMemory string + FullVersionList string + Mobile string + Model string + Platform string + func (v *Headers) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *Headers) UnmarshalJSON(data []byte) error + func (v Headers) MarshalEasyJSON(w *jwriter.Writer) + func (v Headers) MarshalJSON() ([]byte, error) + type PixelInput struct + AcceptLanguage string + HTMLVar string + IP string + ScriptVar string + UserAgent string + func (v *PixelInput) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *PixelInput) UnmarshalJSON(data []byte) error + func (v PixelInput) MarshalEasyJSON(w *jwriter.Writer) + func (v PixelInput) MarshalJSON() ([]byte, error) + type SbsdInput struct + AcceptLanguage string + IP string + Index int + OCookie string + PageUrl string + Script string + UserAgent string + Uuid string + func (v *SbsdInput) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *SbsdInput) UnmarshalJSON(data []byte) error + func (v SbsdInput) MarshalEasyJSON(w *jwriter.Writer) + func (v SbsdInput) MarshalJSON() ([]byte, error) + type SensorInput struct + Abck string + AcceptLanguage string + Bmsz string + Context string + IP string + PageUrl string + Script string + ScriptUrl string + UserAgent string + Version string + func (v *SensorInput) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *SensorInput) UnmarshalJSON(data []byte) error + func (v SensorInput) MarshalEasyJSON(w *jwriter.Writer) + func (v SensorInput) MarshalJSON() ([]byte, error) + type Session struct + ApiKey string + BaseUrl string + Client *http.Client + Compression CompressionType + func NewSession(apiKey string) *Session + func (s *Session) GeneratePixelData(ctx context.Context, input *PixelInput) (string, error) + func (s *Session) GenerateSbsdData(ctx context.Context, input *SbsdInput) (string, error) + func (s *Session) GenerateSensorData(ctx context.Context, input *SensorInput) (string, string, error) + func (s *Session) WithBaseUrl(baseUrl string) *Session + func (s *Session) WithClient(client *http.Client) *Session + func (s *Session) WithCompression(compression CompressionType) *Session + func (s *Session) WithJwtKey(string) *Session + func (s *Session) WithOrganization(key, secret string) *Session