php - How to search specific user's tracks by tag with the Sound Cloud API? -
i want search tracks tag relating user name i.e. royal opera house.
for example:
http://api.soundcloud.com/users/royaloperahouse/tracks/?client_id=238947hsgdhsdg&tags=eric
tells me need utilize q parameter. humour search:
http://api.soundcloud.com/users/royaloperahouse/tracks/??client_id=238947hsgdhsdg&tags=eric&q=e
and list of sounds whole of sound cloud not ones relating user. if seek , search tracks api (not users) , limit query &user_id
videos relating users not 1 specific royal opera house.
the ultimate aim find tracks royal opera house has uploaded relating specific artist. @ moment way solving getting of our uploaded tracks (37 @ present) , iterating through match tracks relevant tag. our music list grows start problem.
thanks.
i haven't used api before, after few tests think i've found problem.
you shouldn't utilize users first url segment because aren't searching users, searching tracks filtered username , tags.
instead utilize tracks first url segment, , utilize q parameter filter username. can utilize use tags parameter well.
test url: http://api.soundcloud.com/tracks?q=username&tags=tag
sc.get('/tracks/', {q:'royaloperahouse', tags: 'insights' }, function(result) { console.log(result[0].tag_list); });
to honest still not understand q parameter. in api documentation find references in tracks, users, etc , in search page talk haven't found documentation q parameter filtering in each query type. in tracks username (and possible user id)
if consuming api, should inquire soundcloud team in google grouping more meaning of parameter.
php json api soundcloud
No comments:
Post a Comment