account.profile.school_list: Return all of the schools.

Description Usage Arguments Value Note Author(s) References Examples

Description

Return all of the schools.

Usage

1
2
account.profile.school_list(roauth, province, city, area, type = 1,
  capital = "A", keyword, count = 10)

Arguments

roauth

A OAuth object created by createOAuth.

province

Province ID

city

City ID

area

Area ID

type

Return the schools by the school type. 1 : university; 2 : high school; 3 : technical secondary school; 4 : junior high school; 5 : elementary school; Default is 1.

capital

The first letter of the school name.Default is A.

keyword

The key word of the school name.

count

The returned count.Default is 10.

Value

A list of:

id

ID of the school

name

Name of the school

Note

You must provide a parameter either keyword or capital. You must provide patameter "province" if you query by "capital".

Author(s)

Jian Li <rweibo@sina.com>

References

http://open.weibo.com/wiki/2/account/profile/school_list

Examples

1
2
3
4
5
## Not run: 

account.profile.school_list(roauth, keyword = "China")

## End(Not run)

Rweibo documentation built on May 2, 2019, 5:23 p.m.