Skip to contents

Retrieveing data and working with data

Functions for retrieving answers to forms

ns_get_data() ns_get_submissions()
Get data from a form
ns_get_submission()
Get an individual submission answer
ns_alter_checkbox()
Alter checkbox matrix variables in a dataset
ns_add_labels()
Add Labels to Dataset

Working with the codebooks

Functions for retrieveing and writing codebook information

codebook()
Constructor for nettskjema codebook
get_raw_codebook()
Get the raw codebook
has_codebook()
Check if form has codebook
ns_get_codebook()
Get codebook for a form
ns_write_codebook()
Write codebook to file

Finding all meta-data

Functions for retrieveing and writing all meta-data associated with a form

ns_get_meta()
Get metadata for a form
ns_write_meta()
Write meta-data to file

Inspecting accessible forms

Functions for finding forms you have access to

ns_get_form_attachments()
Retrieve all attachments associated with a Nettskjema
ns_get_form_reports()
Download files associated with a form
ns_get_forms()
Get all forms you have access to
ns_list_form_attachments()
Retrieve all attachments associated with a Nettskjema

Attachments

Functions for listing and downloading uploaded attachments

ns_get_attachment()
Save Nettskjema attachments to file
ns_get_form_attachments()
Retrieve all attachments associated with a Nettskjema
ns_get_submission_attachments()
Get Nettskjema attachments for a submission
ns_list_form_attachments()
Retrieve all attachments associated with a Nettskjema
ns_list_submission_attachments()
List Nettskjema attachments for a submission

User verification and inspection

Functions for authenticating and inspecting the user

ns_auth_token()
Retrieve access token
ns_get_me()
Information about the current user

Open online urls

Functions for easy opening of relevant URLs

ns_api_docs()
Access Nettskjema API Documentation
ns_create_client()
Create a Nettskjema Client

Base request function

Function for creating custom resuests towards the API, used with httr2.

ns_req()
Basic Nettskjema httr2 request