learnosity

package
v0.0.0-...-1b2bb57 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: Unlicense Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConsumerKey = ""
View Source
var ConsumerSecret = ""
View Source
var Domain = ""

Functions

func GetTimestamp

func GetTimestamp(timestampOverride string) string

func NewSHA256

func NewSHA256(data []byte) []byte

Types

type AuthRes

type AuthRes struct {
	Security Security `json:"security,omitempty"`
	Request  Request  `json:"request,omitempty"`
}

func BuildLearnosityRequest

func BuildLearnosityRequest(bReq *BuildLearnosityReq) (*AuthRes, int, error)

func GetAuthResponse

func GetAuthResponse(timestamp, overrideSessionID, overrideUserID string, hashComponents []string) *AuthRes

type BuildLearnosityReq

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

type Request

type Request struct {
	UserID             string `json:"user_id,omitempty"`
	ActivityTemplateID string `json:"activity_template_id,omitempty"`
	SessionID          string `json:"session_id,omitempty"`
	ActivityID         string `json:"activity_id,omitempty"`
	RenderingType      string `json:"rendering_type,omitempty"`
	Type               string `json:"type,omitempty"`
	Name               string `json:"name,omitempty"`
	State              string `json:"state,omitempty"`
}

type Security

type Security struct {
	ConsumerKey string `json:"consumer_key,omitempty"`
	Domain      string `json:"domain,omitempty"`
	Signature   string `json:"signature,omitempty"`
	Timestamp   string `json:"timestamp,omitempty"`
	UserID      string `json:"user_id,omitempty"`
}

Jump to

Keyboard shortcuts

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