carmaclient

package module
v0.0.0-...-51b3333 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2020 License: MIT Imports: 10 Imported by: 0

README

carmaclient

Go client for Carma

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CarmaClient

type CarmaClient struct {
	HTTPClient *http.Client

	Triggers   *TriggersService
	Lists      *ListsService
	Properties *PropertiesService
	// contains filtered or unexported fields
}

func NewCarmaClient

func NewCarmaClient(organization int64, token, restURL, controllerURL string, log logger.Logger) (client *CarmaClient, err error)

type ListsService

type ListsService service

func (*ListsService) GetContact

func (s *ListsService) GetContact(listID int64, originalID string) (*dto.ContactDTO, error)

func (*ListsService) PutContactUpdate

func (s *ListsService) PutContactUpdate(listID int64, originalID string, contact dto.ContactDTO) (*dto.ContactDTO, error)

type PropertiesService

type PropertiesService service

func (*PropertiesService) GetProperties

func (s *PropertiesService) GetProperties() (*[]dto.PropertyDTO, error)

type TriggersService

type TriggersService service

func (*TriggersService) GetTrigger

func (s *TriggersService) GetTrigger(triggerID int64) (*dto.TriggerDTO, error)

func (*TriggersService) GetTriggers

func (s *TriggersService) GetTriggers() (*[]dto.TriggerDTO, error)

func (*TriggersService) PostTriggersMessages

func (s *TriggersService) PostTriggersMessages(triggerID int64, triggerDTO dto.SendTriggerDTO) (*dto.MessageDTO, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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