SoundCloud Javascript API SC.get()没有通过所有轨道

时间:2016-08-08 17:32:35

标签: javascript soundcloud

我一直在使用javascript soundcloud GET API [SC.get(url)]来获取特定soundcloud网址的音轨,但不知怎的,这个网址(https://soundcloud.com/user-811076785/sets/week-1)只返回了13条记录中的7条记录。任何原因,而不是返回13记录,它返回我只有7。

$ curl "http://api.soundcloud.com/playlists/238899952?client_id=YOUR_CLIENT_ID"

上面的命令会返回返回JSON中Tracks数组下的7个曲目,但网址上总共有13个曲目(https://soundcloud.com/user-811076785/sets/week-1)。

同样获取上面卷曲命中使用的id(238899952),获得如下:

class lexer_c {
public:
    std::string src;            // Src, a buffer that stores a string copy of the input file.
    size_t line;                // Line, holds the current line the parser is reading from.
    size_t pos;                 // Pos, the position on the line the parser is reading at.
    size_t ptr;                 // Ptr, the current index in the input buffer.
    size_t len;                 // Len, the length of the input buffer.

    lexer_c(std::string file_name);
    token_c lexer_c::next_token(); // DEPENDS ON TOKEN_C BELOW
};

class token_c {
public:
    tk_type type;               // Type of the token.
    size_t line;                // The line number the token was recorded at.
    size_t pos;                 // The position of the start of the token.

    union {                     // Union:
        char* str;              //  String, for tokens that need to store a string value.
        double flt;             //  Flt, for tokens(_flt_rep) that will store a float value.
        unsigned int num;       //  Interger, for tokens(_int_rep) that need to store integer types.
    };

    token_c(lexer_c* lexer, tk_type t); // DEPENDS ON LEXER_C AOVE
    void token_c::print(token_c token);
};

0 个答案:

没有答案