The FAQs provide some examples and code snippets for common tasks when a third-party application wants to interact with the server.
...
The users csv upload is available directly through HTTP. One way to do this is using cURL, but other ways are possible.
Here are the steps:
- Log in using the built-in admin:
Code Block |
---|
curl http://host:port/frevvo/web/admin/login -d username=admin@tenant -d password=admin_password -d lAction=Login -X POST -c cookies -H Content-Type:application/x-www-form-urlencoded |
...
Info | ||
---|---|---|
If your tenant is on the frevvo cloud server, and you see the error "Couldn't open file "users.csv", perform one of the following actions:
|
3. Upload the users csv file:
Code Block |
---|
curl http://host:port/frevvo/web/tn/tenant.id/allUsers -F notificationEmailAddress=some_email_address -F usersFile=@users_file.csv -X POST -b cookies -H Content-Type:multipart/form-data |
4. Replace host, port, tenant.id, some_email_address and users_file.csv above as correct for your implementation. If users_file.csv is not in the current directory, adjust the path accordingly. For Live forms frevvo online, host=app.frevvo.com and port is optional. Change http to https.
...
Code Block |
---|
curl http://host:port/frevvo/web/tn/tenant.id/allUsers -X GET -b cookies |
For Live forms frevvo online, host=app.frevvo.com and port is optional. Change http to https and add the -k option
...
You can specify who receives an email reporting the upload status when it is done through the API. The email is sent to the "notificationEmailAddress" that is passed in the API. The email may say something like this if there are errors during the upload:
Code Block |
---|
Validation occurred with errors. Users data NOT loaded. Refer to attached CSV data file for validation and/or loading result details. |
...