We've sent a verification link by email
Didn't receive the email? Check your Spam folder, it may have been caught by a filter. If you still don't see it, you can resend the verification email.
Started March 6th, 2022 · 1 reply · Latest reply by junodenizen 2 years, 9 months ago
Hi I have built an app to search and save sounds from Freesound.org. I'm trying to get the username of the user once they have logged in. The app makes a get request to https://freesound.org/apiv2/me with "Authorization: Bearer [access_token]", where [access_token] is the access_token I get when the user logs in using OAuth2. Every time I do this, the response is a 401 error. It says “detail: Authentication credentials were not provided."
I know that my access_token is valid, because I can download files with it using the https://freesound.org/apiv2/sounds/[soundID]/download endpoint. My access_token works to do that.
I can only assume this is a bug. If it's not a bug, can anyone point me at a piece of code, or command line tool that uses the /me endpoint successfully?
Here's a link to my app. Use it!
https://apps.apple.com/us/app/freesound-safari/id1610644893
Edit: Okay I added a slash at the end of the URL (https://freesound.org/apiv2/me/) and now it’s working.