Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 901 Bytes

README.md

File metadata and controls

30 lines (23 loc) · 901 Bytes

Formsite Golang API

How to use the formsite Go API:

api := formsite.NewFormsiteApi("https://fs22.formsite.com/api/users/myusername/forms", "myapikey")

// List all available forms
forms, err := api.GetForms()
if err != nil {
        return err
}
for _, form := range forms {
        fmt.Println(form)
}

// Get the first page of data from a form
results, err := api.GetResults("form22", 1)
    
// Get the next 5 form submissions, starting at particular response id
lastFetchedId := 104992
results, err := api.GetResults("form22", lastFetchedId, 5)

Related links