R/oh.auth_token.R

Defines functions oh.auth_token

oh.auth_token <- function(user, password, ...){
	#when using oh.login, argument 'serverurl' is part of the ... ellipse
	xhr <- oh.call("/user/auth_token", user=user, password=password, ...);
	message("Login successful!");
	return(xhr$token);
}

Try the Ohmage package in your browser

Any scripts or data that you put into this service are public.

Ohmage documentation built on Feb. 1, 2019, 1:04 a.m.