Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(auth *AuthConfig) (*jamfpro.Client, error)
New creates a new Jamf Pro API client using the provided auth config.
func TokenRefreshBufferPeriod ¶
func TokenRefreshBufferPeriod() int
TokenRefreshBufferPeriod returns the token refresh buffer period (in seconds) determined during the most recent OAuth2 client initialization. Returns 0 if no probing was performed.
func VerifyAuth ¶
func VerifyAuth(auth *AuthConfig) (*jamfpro.Client, error)
VerifyAuth creates a client and makes a lightweight API call to verify that the credentials are valid. Returns the client on success.
Types ¶
Click to show internal directories.
Click to hide internal directories.