Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8364993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:33:32+00:00 2026-06-09T12:33:32+00:00

I’m trying to prototype an app which utilizes Soundcloud’s API endpoints, and integrates the

  • 0

I’m trying to prototype an app which utilizes Soundcloud’s API endpoints, and integrates the cocoa-api-wrapper for cocoa and cocoa touch projects.

The problem I’m having revolves around getting my application to authenticate. I display the login view to the user, and after they input their credentials, try and handle the redirect URL using a method implementation in my app delegate.

When I trace the series of calls throughout MyApp->Soundcloud API -> Oauth2Library during debugging, I can see that soundcloud accepts the credentials, and passes back the authorization_code which I then understand I’m supposed to use to request a session authentication token.

However when ‘handleOpenURL’ (in my AppDelegate) gets called, it fails to process the redirect and returns a 401 error whenever I try to gather user data (such as sending a call to [scAPI meWithContext:@"userInfo"]).

I’ve absolutely scoured these forums, and cannot seem to find the answer to my problem. I did however, stumble upon something that I think might be part of the case on the google groups forums for Soundcloud API support.

Another API user encounters a 401 response code (unauthorized), and describes a difference in the way the oauth2 library manages the authorized header field in the redirect response from SoundCloud between iOS 4 and iOS 5, and I am thinking this may be part of the issue.

The 401 response code has a localized description of NXOAuth2HTTPErrorDomain, and also writes the message [NXOAuth2PostBodyStream open] Stream has been reopened after close to NSLog.

I can provide more information if need be. I’m also using charles to debug the HTTPS calls to Soundcloud, and am certain the request is being sent to the correct destination.

Any help / feedback would be much appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T12:33:33+00:00Added an answer on June 9, 2026 at 12:33 pm

    As Tobias mentioned, the cocoa-api-wrapper is not supported anymore. I ran into the same problem, and since I needed streaming functionality as well, I forked the CocoaSoundCloudAPI to add streaming support from the cocoa-api-wrapper.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
I'm trying to select an H1 element which is the second-child in its group
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I used javascript for loading a picture on my website depending on which small
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am trying to render a haml file in a javascript response like so:
I would like to run a str_replace or preg_replace which looks for certain words
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.