facebook

package
v0.0.0-...-4526b33 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	// contains filtered or unexported fields
}

func New

func New(input APIInput) *API

func (*API) PostEvent

PostEvent hashes the fields that require hashing (UserData) and sends the event.

This call will hash fields, but the caller is expected to make sure they're in correct format.

https://developers.facebook.com/docs/marketing-api/conversions-api/parameters/customer-information-parameters

func (*API) RawSend

RawSend does not hash the fields but just posts instead.

May want to use `PostEvent` instead.

type APIInput

type APIInput struct {
	AccessToken string
	PixelID     string

	// Timeout for the http request. Defaults to 30s
	Timeout time.Duration
}

Jump to

Keyboard shortcuts

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