weibo.api: Invoke an API directly by it's URL.

Description Usage Arguments Value Author(s) References Examples

View source: R/weibo.api.R

Description

Invoke an API directly by it's URL.

Usage

1
weibo.api(roauth, URL, paramlist = list(), httpmethod = c("GET", "POST"))

Arguments

roauth

A OAuth object created by createOAuth.

URL

The url of this API.

paramlist

Parameters list.

httpmethod

HTTP request method, 'GET' or 'POST'.

Value

A R object.

Author(s)

Jian Li <rweibo@sina.com>

References

http://open.weibo.com/wiki

Examples

1
2
3
4
5
6
## Not run: 

weibo.api(roauth, URL = "https://api.weibo.com/2/statuses/public_timeline.json", 
    paramlist = list(count = 5), httpmethod = "GET")

## End(Not run)

sjhfx/Rweibo documentation built on March 29, 2020, 11:37 p.m.