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

Local python script to upload tracks to my own account #174

Closed
sarahaparrish opened this issue Jan 5, 2022 · 2 comments
Closed

Local python script to upload tracks to my own account #174

sarahaparrish opened this issue Jan 5, 2022 · 2 comments
Labels

Comments

@sarahaparrish
Copy link

Hello,

Have used the soundcloud Python library for years to automate the upload of tracks to my work account. Just learned this has been deprecated, so looking into the updated API. Not understanding what to use for the redirect URI since this is a local Python script that uploads the tracks. I understand the client_credentials grant type will not work for uploading tracks, but don't see any way to acquire an authorization code from code running locally. Can a dummy URI somehow be used to acquire the needed code? Or is there another way to go about this?

Thanks in advance.

@dasha-kobzeva
Copy link
Contributor

Hello @wrigglewheat,
As redirect_URI is part of the authorization process using a dummy one won't be sufficient. If you have a registered application you can send a request to update the redirect to our Help Service: https://github.com/soundcloud/api#how-can-i-update-my-apps-redirect_uri

as you are performing a user-specific action, our API must know what user is uploading tracks, and acquiring the auth_code is mandatory. Unfortunately at this point, we have no other ways of doing it apart from the browser.

@dasha-kobzeva
Copy link
Contributor

closing due to no activity

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

No branches or pull requests

2 participants