login: Login to Scribd

Description Usage Arguments Details Value Author(s) References Examples

Description

Login or signup for Scribd

Usage

1
2
3
scribd_login(username, password, ...)

scribd_signup(username, password, email, name = NULL, ...)

Arguments

username

A character string containing a Scribd username to log in with, or one to create. In scribd_signup, a duplicate username will result in an error.

password

A character string containing a password associated with Scribd username (or, in scribd_signup, a new password to associate with the account).

email

A character string containing a working email address to register to the new account.

name

Optionally a character string containing your full name.

...

Other arguments passed to HTTP request functions.

Details

These two functions can be used to signup for and/or login to a Scribd user account. Both functions have the side effect of registering options('scribd_session_key'), which allows all rscribd functions to be performed on this specific user account (rather than the account associated with the API key stored in options('scribd_api_key'). These are really only useful if you are developing an application that wraps rscribd for use by multiple users.

Be aware that username and password are passed to the Scribd API via unencoded URL query string parameters. While SSL is used for all API calls, one may want to avoid using these functions for reasons of security.

Value

A list containing details of the user account.

Author(s)

Thomas J. Leeper

References

API Reference: user.login

API Reference: user.signup

Examples

1
2
3
4
5
6
7
8
## Not run: 
options("scribd_session_key")
scribd_signup("newuser", "password", "email@example.com", "First Last")
options("scribd_session_key")
scribd_signup("newuser", "password")
options("scribd_session_key")

## End(Not run)

cloudyr/rscribd documentation built on May 13, 2019, 8:22 p.m.