weibo2.0-class: Class "weibo2.0"

Description Objects from the Class Fields Methods Author(s) Examples

Description

To use the APIs of Sina Weibo open platform, you have to register a application first. The open platform will provide a unique App Key and App Secret for every application. You can use these key and secret to invoke the authorize interface of OAuth2. All the authorization information will be stored in this object of OAuth2.

Objects from the Class

Objects can be created by calls of the function createOAuth.

Fields

appPath:

Object of class "character". Path of the application folder.

appName:

Object of class "character". Name of the application.

appKey:

Object of class "character". Key of the application.

appSecret:

Object of class "character". Secret of the application.

oauthName:

Object of class "character". The access name.

oauthToken:

Object of class "character". Token of the oauth.

oauthUser:

Object of class "character". User ID.

oauthTime:

Object of class "character". Created time.

oauthResetTime:

Object of class "character". Reset time.

oauthLife:

Object of class "character". Expected life (in sec) of the oauth.

authURL:

Object of class "character". URL of authorization.

accessURL:

Object of class "character". URL of accessing.

oauthLimits:

Object of class "ANY". data.frame of oauth limits.

oauthMsg:

Object of class "character". oauth massage.

webMsg:

Object of class "character". web login massage.

webCurl:

Object of class "ANY". Curl handle.

webName:

Object of class "character". Nick name of the login account.

webUser:

Object of class "character". User id of the login account.

Methods

expiresIn(byAPI = FALSE):

Will return the expired time in seconds.

getLimits(byAPI = FALSE):

Will return a data.frame of the oauth limits.

authorize(forcelogin = FALSE):

Will do the authorization.

login(username, password):

Will impersonate the login with username and password.

save():

Save the authorization information to file.

list():

List the fields of the object.

show():

Show all the fields of the object.

Author(s)

Jian li <rweibo@sina.com>

Examples

1
	showClass("weibo2.0")


Search within the Rweibo package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.