status_code
Utility Functions for AMS Results
Description
These are utility functions for the examining the results
returned by the functions that interact with the AMS.
Usage
status_code(x)
content(x, data.frame=FALSE)
header(x)
Arguments
x |
an object returned by one of the AMS functions that interact with the server.
|
Value
status_code |
the return code from the http request to the AMS.
|
header |
the headers returned by the http request to the AMS.
|
body |
the body returned by the http request to the AMS.
If data.frame=TRUE, the body is converted to a data.frame
if possible.
|
See Also
amsLogin
Examples
## Not run:
zlogin <- amsLogin("http://localhost", "fakeuser", "fakepassword")
header(zlogin)
zlogout <- amsLogout()
status_code(zlogout)
## End(Not run)