Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

donaldp's avatar
donaldp
Collaborator | Level 9
7 years ago
Solved

RespondPageWithJSRedirect() - where is this defined?

Hi,

I am trying to set-up a Dropbox connection in .NET (Xamarin to be precise). I am following http://dropbox.github.io/dropbox-sdk-dotnet/html/T_Dropbox_Api_DropboxOAuth2Helper.htm. When I start typing in "RespondPageWithJSRedirect()" it isn't being detected anywhere by intellisense (Visual Studio 2017). I've got all the usings that have been specified on the quoted page, so I'm either mssing a nuget, or another using, or something like that. When I search for this string on the gitgub page https://github.com/dropbox/dropbox-sdk-dotnet/blob/master/dropbox-sdk-dotnet/Dropbox.Api/DropboxOauth2Helper.cs it only finds 2 instances - a comment and the call itself. Where is this defined? What do I need to add?

 

thanks,

  Donald.

12 Replies

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    7 years ago

    I see, thanks for the feedback!

    For the current issue, since you modified the code, please revert to the original SimpleTest code (or switch to a fresh copy). You should only have to add your app key; no other code changes are necessary for that sample.

    It sounds like the app is hanging waiting on the user to come back to the previously configured redirect URI, but you may have accidentally changed what that path is, meaning it will never match

  • donaldp's avatar
    donaldp
    Collaborator | Level 9
    7 years ago

    Woo hoo! Success! :-)

    > you may have accidentally changed what that path is, meaning it will never match

    It was actually getting stuck at the line before the one you have highlighted, but in any case loading in a fresh copy, and knowing what to put into the website now, got it all working. :-)

    Now that we've got that little proof of concept done on my computer, I can get back to MY program and try and work out why IT'S not working (but now I can compare directly to SimpleTest, sicne I know that works). Will let you know how I go.

    BTW, I still recommend you fix up that hint text (and be more specific with people when they ask what needs to go there). It DOES NOT work unless you include a port (and in the case of SimpleTest, you must also include the authorize). A proper example in the hint (i.e. showing that you need to the port number too) would be helpful.

    Thanks! :-)

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!