Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing some calls, other calls are deprecated #1

Open
andersan opened this issue Oct 7, 2022 · 2 comments
Open

Missing some calls, other calls are deprecated #1

andersan opened this issue Oct 7, 2022 · 2 comments

Comments

@andersan
Copy link

andersan commented Oct 7, 2022

Today I have tested this API out for a personal project.

Some of the API calls here seem to be deprecated/not work at all, such as the two channel.mp3 calls (GET and HEAD).

Some API calls not mentioned in the API docs seem to be used by Radio Garden. For example, a list of the most popular stations in Portland, OR is returned along with the standard araContentPagePlaceIdGet call. However, in the Radio Garden app I can press "See more" and it will return a longer list of stations which are popular in Portland by calling a "content/page/[channelID]/popular" endpoint, e.g. https://radio.garden/api/ara/content/page/mJ3XtgpB/popular.

@andersan
Copy link
Author

andersan commented Oct 7, 2022

After some further investigation, I can see that radio.garden is indeed using the channel.mp3 calls, and they work in cURL. It might just be that they don't work in the openAPI calls, or I'm not handling the responses correctly with the auto generated typescript-node API.

@andersan
Copy link
Author

andersan commented Oct 8, 2022

Eventually used axios to make a call to the Radio Garden using the HEAD call. The HEAD call was giving 40X errors and wasn't working consistently.

The GET call actually does seem to work and redirects properly to the music stream, but it keeps streaming the call because of the redirect to a URL which won't stop streaming content. I wanted to set up a backend service that returns the stream URL and feed that URL as a string on the frontend with Howler.js.

There may be a simple way to do the above with the OpenAPI typescript API, but I didn't know how.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant