-
Notifications
You must be signed in to change notification settings - Fork 547
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
Specify the callback dataType #56
Comments
Erm... the library only works with json for some very good reasons. Why, do you see something else? |
Sorry I didn't explain it well. Im using Ruby on Rails with Devise, so for make it work manually without reload the page I need to post back on my callback_url as JSON.
When I use the hello.js library, the Hello.login() function do the callback, but I receive on my server the callback as dataType = "text/html"
Instead im looking to mod the dataType of the ajax callback, only for the login method, like dataType = "application/json"
I hope now its more clear. Thanks for your response. |
Sorry its still hard to understand. If you want to change the xhr request in hello.api() then take a look at https://github.com/MrSwitch/hello.js/blob/master/src/modules/windows.js#L145 Since the OAuth flow works by opening pages with test/html, i fail to grasp what you mean when you say "post back on my callback_url as JSON.". |
@JNajera please comment and i'll reopen this if its still an issue |
It there's any way I can set the dataType for my callback at hello.login()? Because for some apps Im developing, i need to return it as JSON to my callback url.
Thanks in advance
The text was updated successfully, but these errors were encountered: