Open gushiaoke opened 7 years ago
这是什么的参数?
url: 'https://api.douban.com/v2/fm/playlist',
qs: {
channel: 0,
from: 'mainsite',
pt: 0.0,
kbps: 128,
formats: 'aac',
alt: 'json',
app_name: 'radio_iphone',
apikey: '02646d3fb69a52ff072d47bf23cef8fd',
client: 's:mobile|y:iOS 10.2|f:115|d:b88146214e19b8a8244c9bc0e2789da68955234d|e:iPhone7,1|m:appstore',
client_id: '02646d3fb69a52ff072d47bf23cef8fd',
icon_cate: 'xlarge',
udid: 'b88146214e19b8a8244c9bc0e2789da68955234d',
douban_udid: 'b635779c65b816b13b330b68921c0f8edc049590',
version: 115,
type: 'n',
user_id: auth.douban_user_id,
expire: auth.expires_in,
token: auth.access_token,
},
headers: {
'User-Agent': 'python-requests/2.18.1',
Authorization: Bearer ${auth.access_token}
}
返回的信息是匿名的,不是我登录的用户的playlist
原因不明。access token是保证有效的么?
access_token是即时返回的。并没缓存
可能doubam又改api了吧。。
Authorization: Bearer 21a0867e86f16fb464e1937b94d44f1w 填了这个,也返回user_is_ananymous