zonyitoo / doubanfm-qt

A DoubanFM client
Other
511 stars 99 forks source link

user_is_ananymous #55

Open gushiaoke opened 7 years ago

gushiaoke commented 7 years ago

Authorization: Bearer 21a0867e86f16fb464e1937b94d44f1w 填了这个,也返回user_is_ananymous

zonyitoo commented 7 years ago

这是什么的参数?

gushiaoke commented 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

zonyitoo commented 7 years ago

原因不明。access token是保证有效的么?

gushiaoke commented 7 years ago

access_token是即时返回的。并没缓存

zonyitoo commented 7 years ago

可能doubam又改api了吧。。