host: Specifies the Host URL of the API to Use

Description Usage Arguments Value Note Author(s) Examples

Description

A helper function to conveniently switch different APIs.

Usage

1
host(instring)

Arguments

instring

Either "kobo", "kobohr", "ona", or a custom (full) URL.

Value

A single string with the URL to use.

Note

API URLs are made available for KoBo Toolbox ("kobo", https://kc.kobotoolbox.org/api/v1/), KoBo Humanitarian Response ("kobohr", https://kc.humanitarianresponse.info/api/v1/), and Ona ("ona", https://ona.io/api/v1/). For your own installation, or other installations using the same API but accessed at a different URL, enter the full URL.

This function is not intended to be called directly. It is used in other functions.

Author(s)

Ananda Mahto

Examples

1
2
3
4
5
## Not run: 
host("kobo")
host("https://ona.io/api/v1/") ## same as host("ona")

## End(Not run)

karpadev/kobo-for-shinyio documentation built on May 13, 2019, 6:14 p.m.