3

I'm sorry if this question seems trivial for the most of you but I'm not very familiar with OAuth and the Stack Exchange API.

Is it possible to use this API in local environment for the development process? Or it is mandatory to have a development server with a domain name?

1 Answer 1

1

Yes, you can use a local environment to develop. For example, this answer contains a complete start to authenticating an HTML+javascript app. All it requires is for you to run XAMPP (or similar server) on your local machine.

If you don't need authorization, you can even host your app on one of the free services. For example, this single-web-page app hosted on jsBin.

Other platforms (Python, Java, etc.) should be just as amenable.

One caveat is that the Stack Exchange authentication methods currently don't seem to handle non-standard ports very well (there are some bug reports about this).

Also, for local development, you normally will want to set your app with:

  1. "Client Side Flow" enabled
  2. "Desktop OAuth Redirect Uri" enabled

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .