Ohmage (version 2.11-4)

oh.login: Authenticate with an ohmage server

Description

Authenticate with an ohmage server

Usage

oh.login(user, password, serverurl, ...)

Arguments

user

ohmage username

password

ohmage passwd

serverurl

url to the ohmage server

...

extra parameters for oh.call

Examples

Run this code
# NOT RUN {
library(Ohmage)
# }
# NOT RUN {
#authentication works like a cookie.
#oh.login("ohmage.admin", "ohmage.passwd", "https://example.com/app")

#list campaigns you are in
#oh.campaign.read()

#read some data
#oh.survey_response.read("urn:ohmage:campaign:mycampaign");
# }

Run the code above in your browser using DataLab