You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey Hannah, what are you trying to achieve here? As I see GET /users/{id}/tracks and in the steps to reproduce the call is for connect endpoint? Also the host on the connect URL is wrong, it should be secure.soundcloud.com for authentication URLs and api.soundcloud.com for other functions
This is an example from a Python method too
`def upload_track(self):
url = f"{self.base_url}/tracks"
copy = self.headers.copy()
copy.update({'accept': 'application/json; charset=utf-8'})
# Define the parameters as a dictionary
params = {
'track[sharing]': 'private',
'track[title]': 'Test Track from Python',
}
# Open and read the file
file_path = 'path/track_name.mp3'
with open(file_path, 'rb') as file:
# Prepare the file parameter
files = {'track[asset_data]': ('test', file, 'type=audio/x-m4a')}
# Make the POST request with file and params
response = requests.post(url, headers=copy, files=files, data=params)
# print(curlify.to_curl(response.request))
if response.status_code != 201:
return [None, response.status_code]
return [response.json()['id'], response.status_code]`
Title: Cannot Auth to use POST tracks path
Issue found of: September 20th, 2020
Endpoint(s):
GET /users/{id}/tracks
Scope(s):
Steps to reproduce:
Using this URL - https://soundcloud.com/connect?client_id={client_id}&redirect_uri={redirect_uri}&response_type=code"
But I get the error - "Oh no! We can’t find that page. Check the address and try again?" after clicking connect
The text was updated successfully, but these errors were encountered: