我的WEBAPI查询与示例查询匹配,但响应没有 包含以下字段。这是因为我使用的是“社区” 许可“非商业用途?
缺少相册字段
XID DATASOURCE
URL TYPE="COVERART" SIZE="MEDIUM" url
URL TYPE="ARTIST_BIOGRAPHY" url
缺少跟踪字段
GENRE
XID DATASOURCE
URL TYPE="ARTIST_BIOGRAPHY" url
"<QUERIES>
<AUTH> <CLIENT>$clientID</CLIENT><USER>$userID</USER></AUTH>
<LANG>eng</LANG>
<COUNTRY>usa</COUNTRY>
<QUERY CMD='ALBUM_SEARCH'>
<MODE>SINGLE_BEST</MODE>
<TEXT TYPE='ARTIST'>The Beatles</TEXT>
<OPTION> <PARAMETER>SELECT_EXTENDED</PARAMETER>
<VALUE>COVER,LINK,ARTIST_BIOGRAPHY</VALUE> </OPTION>
<OPTION> <PARAMETER>PREFER_XID</PARAMETER>
<VALUE>applealbumid</VALUE> </OPTION>
</QUERY> </QUERIES>"
来自我的查询的回应
<RESPONSES>
<RESPONSE STATUS="OK">
<ALBUM>
<GN_ID>a_gracenote_identifier</GN_ID>
<ARTIST>The Beatles</ARTIST>
<TITLE>Abbey Road</TITLE>
<PKG_LANG>ENG</PKG_LANG>
<DATE>1969</DATE>
<GENRE NUM="106204" ID="35972">Psychedelic</GENRE>
<TRACK_COUNT>17</TRACK_COUNT>
<TRACK>
<TRACK_NUM>1</TRACK_NUM>
<GN_ID>a_gracenote_identifier</GN_ID>
<TITLE>Come Together</TITLE>
</TRACK>
...
<TRACK>
<TRACK_NUM>17</TRACK_NUM>
<GN_ID>a_gracenote_identifier</GN_ID>
<TITLE>Her Majesty</TITLE>
</TRACK>
</ALBUM>
</RESPONSE>
</RESPONSES>
来自文档的示例响应 https://developer.gracenote.com/sites/default/files/web/html/index.html#PDFs/Music-Web-API-Developers-Guide-o.pdf 第38页
<RESPONSES>
<RESPONSE STATUS="OK">
<ALBUM>
<GN_ID>a_gracenote_identifier</GN_ID>
<ARTIST>The Beatles</ARTIST>
<TITLE>The Beatles (White Album) \ [Disc 1\] </TITLE>
<DATE>1968</DATE>
<GENRE NUM="106204" ID="35972">Psychedelic</GENRE>
<XID DATASOURCE="applealbumid">401126224</XID>
<TRACK_COUNT>17</TRACK_COUNT>
<TRACK>
<TRACK_NUM>1</TRACK_NUM>
<GN_ID>a_gracenote_identifier</GN_ID>
<TITLE>Back In The USSR</TITLE>
<GENRE NUM="64660" ID="27056">60's Oldies</GENRE>
<XID DATASOURCE="appletrackid">401126225</XID>
<XID DATASOURCE="gracenote" DATATYPE="isrc">GBAYE0601644</XID>
<XID DATASOURCE="gracenote" DATATYPE="isrc">GBAYE0900726</XID>
<URL TYPE="ARTIST_BIOGRAPHY">a_temporary_url</URL>
</TRACK>
<TRACK>
<TRACK_NUM>2</TRACK_NUM>
<GN_ID>a_gracenote_identifier</GN_ID>
<TITLE>Dear Prudence</TITLE>
<GENRE NUM="64660" ID="27056">60's Oldies</GENRE>
<XID DATASOURCE="appletrackid">401126240</XID>
<XID DATASOURCE="appletrackid">402094784</XID>
<XID DATASOURCE="gracenote" DATATYPE="isrc">GBAYE0601645</XID>
<XID DATASOURCE="gracenote" DATATYPE="isrc">GBAYE0900727</XID>
<URL TYPE="ARTIST_BIOGRAPHY">a_temporary_url</URL>
</TRACK>
<TRACK>
<TRACK_NUM>3</TRACK_NUM>
<GN_ID>a_gracenote_identifier</GN_ID>
<TITLE>Glass Onion</TITLE>
<GENRE NUM="64660" ID="27056">60's Oldies</GENRE>
<XID DATASOURCE="appletrackid">401126255</XID>
<XID DATASOURCE="appletrackid">402094792</XID>
<XID DATASOURCE="gracenote" DATATYPE="isrc">GBAYE0601646</XID>
<XID DATASOURCE="gracenote" DATATYPE="isrc">GBAYE0900728</XID>
<URL TYPE="ARTIST_BIOGRAPHY">a_temporary_url</URL>
</TRACK>
...
<URL TYPE="COVERART" SIZE="MEDIUM">a_temporary_url</URL>
<URL TYPE="ARTIST_BIOGRAPHY">a_temporary_url</URL>
</ALBUM>
</RESPONSE>
</RESPONSES>
答案 0 :(得分:0)
您似乎没有使用正确类型的客户端ID 您需要使用音乐平台客户端ID进行WebAPI查询。 查找您的应用详细信息,并检查您的客户端ID是否为“移动客户端的客户端ID,Web API和eyeQ ”。