https://github.com/zaddok/formsite
A go module for fetching formsite data
https://github.com/zaddok/formsite
Last synced: 6 months ago
JSON representation
A go module for fetching formsite data
- Host: GitHub
- URL: https://github.com/zaddok/formsite
- Owner: zaddok
- Created: 2019-01-21T23:11:47.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-22T03:00:14.000Z (over 7 years ago)
- Last Synced: 2024-06-20T10:13:18.169Z (about 2 years ago)
- Language: Go
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
- Formsite API Documentation: https://support.formsite.com/hc/en-us/articles/360000288594-API
- To find your API key and URL:
- go to a form you have created
- click on "Settings" for that form,
- click on "Integrations"
- click on "Formsite API"