Description Objects from the Class Fields Methods Author(s) Examples
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 can be created by calls of the function createOAuth
.
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.
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.
Jian li <rweibo@sina.com>
1 | showClass("weibo2.0")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.