如何获取seafile的token?

curl -H ‘Authorization: Token 24fd3c026886e3121b2ca630805ed425c272cb96’ https://cloud.seafile.com/api2/auth/ping/ 这句话是需要传递用户名密码校验的请求 ,其中 里面的token,是如何攻取的,https://cloud.seafile.com/api2/auth/ping是不是自己的URL?

https://manual.seafile.com/develop/web_api.html

我用里面的获取token命令:
curl -d "username=username@example.com&password=123456" https://cloud.seafile.com/api2/auth-token/
执行下面报错:301 Moved Permanently

[root@localhost tmp]# curl -d "username=flylink2@163.com&password=123456" http://pan.seafile.com/api2/auth-token/

301 Moved Permanently

301 Moved Permanently


nginx/1.1.19 [root@localhost tmp]# [root@localhost tmp]# curl -d "username=flylink2@163.com&password=123456" http://pan.seafile.com 301 Moved Permanently

301 Moved Permanently


nginx/1.1.19 [root@localhost tmp]#

对 用自己服务器的地址

问题解决了么?大神,我也遇到了同样的问题

手册上给出的访问示例都只是个例子,具体自己要使用的话,应该按需把里边的服务器域名、地址有些可能还需要包括端口,并且用户名,密码啥的也要根据自己的实际情况来写。