solved Request - Audio url

serveion
@serveion
6 years ago
223 posts
Hello Guys:

how can we get the whole song url [code]http://domain.com/artist/audio/trackname[/code] using proxima
right the only thing we are able to do is get this [code] https://domain/tracks/stream/audio_file/1023[/code] but there is not way for me to translate that to the song url.

I try using audio short code but that don't work with redirection module because we will need to enter every single song on the system. i was going to get the short url code "axeertfgds"
and prefix the url [code]http://domain.com/r/(song short code url)[/code] but this don't work because we will need to add every song to the redirection module. if i use share this module and get the old short url code before the update of the module it works I was using this [code]<a href="http://domain.com/sharethis/shortcode" target="_blank" rel="nofollow">http://domain.com/sharethis/shortcode</a> and the redirection works.

my plan is in the app listeners can click share song, and will open a share action and add the song url so people the don't have the app can go to the mobile website and listen to the song.

thank you
updated by @serveion: 05/05/18 07:18:05PM
nate
@nate
6 years ago
917 posts
Can I see the api request you're using? As in what call to proxima. Are you using bridge?
michael
@michael
6 years ago
7,715 posts
you have the _item_id there, that should be enough to get the info for the file along with the profile info that goes with it.

can you do a lookup on 1023 then format the url to site.com/profile_url/audio/(item id)/ (pretty title url)
amartins
@amartins
6 years ago
48 posts
@nate Yes we are using Proxima bridge on the API request we get a bunch of data but missing the 'profile_url'.

The URL format seems to be 'https://my.domain.com/profile_url/tracks/_item_id/audio_title_url', I can have all parameters except the profile_url...

I will try replace profile_url by _profile_id...
amartins
@amartins
6 years ago
48 posts
amartins:
ยทยทยทยท
I will try replace profile_url by _profile_id...

It worked as expected and didn't need the audio_title_url parameter, so the URL can be built like this:
http_protocol/domain/_profile_id/tracks/_item_id.

Thanks for your time!

Tags