Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

user_is_ananymous #55

Open
gushiaoke opened this issue Jul 4, 2017 · 5 comments
Open

user_is_ananymous #55

gushiaoke opened this issue Jul 4, 2017 · 5 comments

Comments

@gushiaoke
Copy link

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

@zonyitoo
Copy link
Owner

zonyitoo commented Jul 4, 2017

这是什么的参数?

@gushiaoke
Copy link
Author

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
Copy link
Owner

zonyitoo commented Jul 6, 2017

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

@gushiaoke
Copy link
Author

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

@zonyitoo
Copy link
Owner

zonyitoo commented Jul 8, 2017

可能doubam又改api了吧。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants