Skip to content

A Golang wrapper for some common Cvent SOAP API functions

License

Notifications You must be signed in to change notification settings

matthewpoer/gocvent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gocvent Go Report Card

A Golang wrapper for some common Cvent SOAP API functions.

Thanks to gosoap

gosoap gave this wrapper a big head start. There was a lot of hacking on gosoap to make it work with Cvent's API, so you will find it forked and included with gocvent.

Build your own Definitions

This package includes Golang Structures for the out-of-the-box versions of Contacts, Events, Registrations and Users CvObjects in the definitions/ directory. If you want to work with other CvObjects and/or use custom fields on these structures, you will need to build your own structs using cvent.StructGen("filePath", "CvObject"), then use the resulting structs in your Cvent API retrieve calls, e.g.

var objectDef objDefs.EventRetrieveResult
err := cvent.Retrieve("Event", v, &objectDef)
if err != nil {
    fmt.Printf("TestRetrieveEvent err from cvent.Retrieve: %s", err)
}
fmt.Printf("Event Title: %s\n", objectDef.CvObject.EventTitle)

Check out the Tests

Demonstrations of each of the implemented Cvent API methods has at least one corresponding test in gocvent_test.go. Current implementation includes:

About

A Golang wrapper for some common Cvent SOAP API functions

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages