Hot answers tagged

3 votes
Accepted

When I perform an API call via browser, it displays pretty JSON. How come when I do the same request via nodejs in my console it is garbled?

I've been bitten by this feature as well in the past... Responses from the API are compressed with GZIP (by default; you can request DEFLATE as well). Your browser automatically knows how to handle ...
user avatar
  • 5,245
2 votes

How do I actually begin to code, in Node, using the Stack Exchange API?

There is an example of how to invoke the constructor here: // app/src/resolvers.js const stackexchange = require('stackexchange-node'); const config = require('../config/config'); const options = {...
user avatar
2 votes
Accepted

Getting 405 when trying to post a comment

The problem was the fact that I was using the http module, rather than https. Since its protocol is https, I have to use the https module const https = require("https") const data = `site=...
user avatar
1 vote

Generate Headers - a utility package for validating and auto generating userscript manager headers

feature-request I would like an option to have the generator expand a single match argument to all known Stack Exchange domains. So for example -m "https://*.stackexchange.com/reviews/*" -...
user avatar
  • 1,780
1 vote

Generate Headers - a utility package for validating and auto generating userscript manager headers

feature-request The package.json needs to exist and the required properties need to have a value. While it is documented it is easily overlooked. My use case is slightly different. I wanted to ...
user avatar
  • 1,780

Only top scored, non community-wiki answers of a minimum length are eligible