【发布时间】:2017-12-21 19:58:12
【问题描述】:
所以我想使用 curl 使用 MyAnimeList Api 更新我的特定系列列表中的剧集。当我想发布 XML 数据时,它会给我一个Invalid XML format 响应。我看到一些帖子说您应该先对数据进行编码,但这并没有解决它(使用在线工具,如this one 或this one)。
curl -u "<dummyuser>:<dummypass>" -d data="<?xml version="1.0" encoding="UTF-8"?><entry><episode>18</episode><status>1</status><score>7</score><storage_type></storage_type><storage_value></storage_value><times_rewatched></times_rewatched><rewatch_value></rewatch_value><date_start></date_start><date_finish></date_finish><priority></priority><enable_discussion></enable_discussion><enable_rewatching></enable_rewatching><comments></comments><tags></tags></entry>" -k https://myanimelist.net/api/animelist/update/7791.xml
感谢任何帮助。
【问题讨论】:
-
我当然希望现在情况会好一些,但是 iirc,几年前,他们的 api 显然是由一群智障喝醉的猴子写的