4
votes
How can I implement a method to call the SE API that handles backoff correctly?
I think a simple singleton that keeps track of the backoff should be enough.
I assume you do use the fetch API or any other async capable module. But the approach is also feasible with just Promises ...
rene♦
- 2,762
4
votes
Tab4SE - the TAB key in your post
bug
After I have installed this userscript, I got the menu toolbar empty:
Also I have got this in the console:
jQuery.Deferred exception: t.find(...).unadornedButtonClick is not a function c@https://...
4
votes
What write in app access for sending data
From the documentation:
Apps must have a registered Stack Apps post to write.
The next sentence (about links pointing back) is no longer true, but the one after that is right and important too:
You ...
4
votes
Accepted
JavaScript SDK-based workflow never pushes message back from OAuth login_success page on Stack Exchange side
Thanks for the report.
This has been fixed; for example you can see that the login demo is working properly again.
3
votes
Stack Exchange API in Chrome extension
I've built an extension that uses StackExchange API using OAuth2 flow. I did not use the JS SDK and did it manually instead.
Here is how I did it:
function auth(sendResponse) {
const scope = '...
3
votes
Accepted
How should I try to detect when the Share dialog is open in a userscript?
Instead of polling for it, you can use a MutationObserver which exists for this exact thing:
var observer = new MutationObserver(function(mutations, observer) {
for (var i = 0; i < mutations....
3
votes
Accepted
Where is it acceptable to store an access_token?
localStorage and cookies are both fine. Those are storage locations only accessible for the current domain and current user on their device. If an attacker has already access to the device all bets ...
rene♦
- 2,762
3
votes
Accepted
Why doesn't my XMLHttpRequest call work in Excel?
The response from Stack Exchange is always compressed, as indicated by Glorfindel.
Note that browsers offer the decompression to you by default but the MSXML2.serverXMLHTTP COM/OLE component pre-dates ...
rene♦
- 2,762
2
votes
Tab4SE - the TAB key in your post
feature-request
Could we enable this userscript in the edit page?
When I try to edit anything (either question or answer), I don't see the option to turn on/off.
Here is an example:
I am not sure if ...
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=...
2
votes
Accepted
Is it possible to get the response from a form POST?
The problem you are experiencing is a standardized default behavior of <form> elements. When a form is submitted, under normal circumstances, navigation happens as one of the last steps of ...
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 = {...
2
votes
How to analyze and debug Stack Exchange's Javascript?
Luckily for us, Stack Exchange's unminified Javascript is available on dev.stackoverflow.com. When you have a filename of the script you want to unminify (eg, from the network tab, you see https://cdn....
1
vote
Tab4SE - the TAB key in your post
bug status-completed
Fixed in version 1.2.
It doesn't work on Firefox with Windows 10, there is no option in the text box:
I tried version 1.0 also. On closer inspection, I saw an error in the ...
1
vote
Accepted
Why am I getting a 400 Bad Request error with this code?
An access_token is not enough; you need to specify a value for key as well. You can find it in the entry for your app here, this is how it looks like for one of mine:
I'm not sure how it works in ...
1
vote
Cannot authenticate with OAuth2
I don't know if this is an actual answer to the original issue, but it seems to be working fine now.
You can test by clicking on the button in the doc page: https://api.stackexchange.com/docs/js-lib#...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
javascript × 84support × 30
app × 19
script × 19
api × 10
library × 9
api-v2.2 × 8
oauth2 × 7
bug × 6
obsolete × 6
greasemonkey × 6
jquery × 6
discussion × 5
status-completed × 4
api-v2 × 4
authentication × 4
chat × 4
soapi.js × 4
feature-request × 3
website × 3
scripts × 3
node.js × 3
questions × 2
tags × 2
comments × 2