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

Documentation in Readme is missing some important info #14

Open
chbeer opened this issue Aug 31, 2011 · 4 comments
Open

Documentation in Readme is missing some important info #14

chbeer opened this issue Aug 31, 2011 · 4 comments

Comments

@chbeer
Copy link

chbeer commented Aug 31, 2011

Hey Guys,

the Readme is rather helpful, but:

  • it doesn't describe the "User-agent flow" completely. It doesn't describe that you need to call openRedirectURL: after opening a WebView with authorizationURLWithRedirectURL: as URL
  • it doesn't describe the NXOAuth2Connection in a whole. The documentation says it's used like a normal NSURLConnection but it's more than that: Parameters, providing NSData, blocks, etc.

Thanks a lot for the helpful API and best regards,

Christian

@paulyhedral
Copy link

I spent several hours unsuccessfully trying to get this library to work until I found this issue. Please integrate these changes in the doc!! So important!

@derfarg
Copy link

derfarg commented Mar 10, 2013

i'm frustrated in trying to set user-agent.

Any howto?

https://github.com/37signals/bcx-api/

@stigi
Copy link
Collaborator

stigi commented Mar 11, 2013

@derfarg don't be frustrated!

Setting the user-agent is something different than then user agent flow of oauth2.

What you want to do can be achieved like this:

NXOAuth2Account *myAccount; // once you got your account
myAccount.oauthClient.userAgent = @"myAwesomeApp 0.1/Gecko trololo";

You get the idea?

@Supertecnoboff
Copy link

@stigi Seriously man this documentation is so poor and its a shame because the API is so good! Could you make an example app which uses your OAuth2Client API because I have been trying to implement it with the Instagram API and all the happens now is that the app crashes because it can't get a token. And I think it can't get a token because the user needs to login via a webview first before Instagram grants a token... Please help...

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

5 participants