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

api的私信和更新用户 #4

Closed
ykl2011 opened this issue Jul 2, 2020 · 8 comments
Closed

api的私信和更新用户 #4

ykl2011 opened this issue Jul 2, 2020 · 8 comments

Comments

@ykl2011
Copy link

ykl2011 commented Jul 2, 2020

使用api发送私信和更新用户信息返回的json都是 illegal request , code 403. 有办法解决吗?谢谢大神。

会不会是因为checktoken的因素?

{"nickname":"stevejob2025","signature":"halo!","gender":"1","avatarImgId":"0","province":"640000","city":"640100","birthday":"665424000000","checkToken":"9ca17ae2e6ffcda170e2e6eeb5ef6aabbb99d2ee41e9968ea3c85a928e8abaf560a988b7ccc75c82b2a48fae2af0feaec3b92aa9a9a7ccb43ca68fa9b9d95f879f9ba7d14ba1f1898dcb73e992faa9fc70abaaee9e","csrf_token":"1aaed7e018c144a79c047d7e3b953379"}

image

@wwh1004
Copy link
Owner

wwh1004 commented Jul 2, 2020

没看懂你的代码...你是不是改过了我的api,还是你自己写了

@ykl2011
Copy link
Author

ykl2011 commented Jul 2, 2020

没看懂你的代码...你是不是改过了我的api,还是你自己写了

是自己写,但是api还是使用你的。JObject jonf = await 发送命令(api, API操作类型.修改昵称, dcgz11) 这里会引用以下的api。

	public static readonly CloudMusicApiProvider UserUpdate = new CloudMusicApiProvider("/user/update", HttpMethod.Post, q => "https://music.163.com/weapi/user/profile/update", new ParameterInfo[] {
		new ParameterInfo("nickname"),
		new ParameterInfo("signature"),
		new ParameterInfo("gender"),
		new ParameterInfo("avatarImgId", ParameterType.Constant, "0"),
		new ParameterInfo("province"),
		new ParameterInfo("city"),
		new ParameterInfo("birthday")		
	}, BuildOptions("weapi"));

@wwh1004
Copy link
Owner

wwh1004 commented Jul 2, 2020

用我写的会不会出问题?

@ykl2011
Copy link
Author

ykl2011 commented Jul 2, 2020

用我写的会不会出问题?

也是一样....测试很多次了 =(

@wwh1004
Copy link
Owner

wwh1004 commented Jul 2, 2020

那api要更新下,你去原项目看看,我最近没时间更新,和原项目落后好几个版本了

@wwh1004
Copy link
Owner

wwh1004 commented Jul 2, 2020

然后这个api要登录的,你登录没?

@ykl2011
Copy link
Author

ykl2011 commented Jul 2, 2020

已经登入了,亲·。

@ykl2011
Copy link
Author

ykl2011 commented Jul 2, 2020

那api要更新下,你去原项目看看,我最近没时间更新,和原项目落后好几个版本了

感谢大神!么么哒!

@wwh1004 wwh1004 closed this as completed Jul 21, 2020
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