【发布时间】:2014-10-15 23:31:45
【问题描述】:
我在检索一些关于其中一些曲目的数据时遇到了麻烦。
我使用端点 /tracks 和一个 GET HTTP 请求来进行查询。以这条赛道为例:
id = 76255568
这是我收到的 JSON:
{
"artwork_url" = "https://i1.sndcdn.com/artworks-000039059040-szzrcm-large.jpg";
"attachments_uri" = "https://api.soundcloud.com/tracks/76255568/attachments";
bpm = "<null>";
commentable = 1;
"created_at" = "2013/01/24 12:14:16 +0000";
description = "Bonobo\U2019s Live Album \U2018The North Borders Tour - Live\U2019 is released on 6 Oct 2014. Available on CD + DVD with 70-page hardback book, or ltd vinyl and audio download.\n\nORDER NOW\nBonobo Store: http://bonobomusic.com/shop\nAmazon: smarturl.it/northborderslivecd\niTunes: smarturl.it/northbordersliveit\n\nPREVIEW\nDVD Trailer: youtu.be/onCHyksRWiE\nMore Info: bonobomusic.com/news/live";
downloadable = 0;
duration = 352371;
"embeddable_by" = all;
genre = Electronic;
id = 76255568;
isrc = "";
"key_signature" = "";
kind = track;
label = {
"avatar_url" = "https://i1.sndcdn.com/avatars-000099073699-09bigf-large.jpg";
id = 95982;
kind = user;
"last_modified" = "2014/10/15 13:58:34 +0000";
permalink = "ninja-tune";
"permalink_url" = "http://soundcloud.com/ninja-tune";
uri = "https://api.soundcloud.com/users/95982";
username = "Ninja Tune";
};
"label_id" = 95982;
"label_name" = "Ninja Tune";
"last_modified" = "2014/10/15 16:14:00 +0000";
license = "all-rights-reserved";
"original_content_size" = 15437251;
"original_format" = mp3;
permalink = cirrus;
"permalink_url" = "http://soundcloud.com/bonobo/cirrus";
policy = ALLOW;
"purchase_title" = "<null>";
"purchase_url" = "http://bonobomusic.com/shop";
release = "";
"release_day" = "<null>";
"release_month" = "<null>";
"release_year" = "<null>";
sharing = public;
state = finished;
"stream_url" = "https://api.soundcloud.com/tracks/76255568/stream";
streamable = 1;
"tag_list" = "bonobo cirrus north borders ninja tune electronic house instrumental cyriak";
title = Cirrus;
"track_type" = original;
uri = "https://api.soundcloud.com/tracks/76255568";
user = {
"avatar_url" = "https://i1.sndcdn.com/avatars-000101336939-rzj1kf-large.jpg";
id = 8962073;
kind = user;
"last_modified" = "2014/10/15 13:57:43 +0000";
permalink = bonobo;
"permalink_url" = "http://soundcloud.com/bonobo";
uri = "https://api.soundcloud.com/users/8962073";
username = bonobo;
};
"user_id" = 8962073;
"video_url" = "http://www.youtube.com/watch?v=WF34N4gJAKE&feature=youtu.be";
"waveform_url" = "https://w1.sndcdn.com/vR5ukuOzyLbw_m.png";
}
属性playback_count 丢失。可能是其他一些,但我想使用这个。
当我使用 Souncloud 的 iOS 应用程序时,会显示计数。
你知道如何找回它吗?有可能吗?
谢谢
【问题讨论】:
标签: ios json api soundcloud