Questions tagged [javascript]
Questions about usage of the Stack Exchange API in client-side browser JavaScript.
84
questions
5
votes
1
answer
118
views
How can I implement a method to call the SE API that handles backoff correctly?
I'm writing JavaScript (Node.js) code that calls the Stack Exchange API. One part of the API is that it may return a non-zero value for backoff, which essentially means "wait n seconds before ...
5
votes
0
answers
89
views
Load Anonymous feedback
Access to anonymous and low-rep post feedback
This User script allows to view anonymous and low-rep post feedback/votes under the voting menu:
You can get it from GitHub:
Source Install
What is ...
2
votes
0
answers
84
views
Uncaught channelUrl must be under the current domain
I'm developing a Stack Chrome extension that will make use of the API. I'm following the instructions on the API docs here.
My OAuth and host websites are set to stackexchange.com in my Stack Apps ...
1
vote
0
answers
45
views
How to get write access to Stack Exchange API? [duplicate]
I am trying to use Stack Exchange API to post upvotes and downvotes from my app. I have received the access token but not sure what to do with write_access
3
votes
1
answer
78
views
Where is it acceptable to store an access_token?
Obviously it isn't safe to broadcast any access_token to the public, especially those which are defined with no expiry date. It would also be considered a security issue if a list of registered access ...
5
votes
1
answer
565
views
Issue with JavaScript SDK
When using the JavaScript SDK to enable client side OAuth flow, I'm running into this issue: Uncaught TypeError: Cannot read properties of null (reading 'postMessage')
And the page gets stuck with the ...
0
votes
1
answer
159
views
Getting 405 when trying to post a comment
I'm trying to post a comment to The API Sandbox, I did one using the interactive documentation, but when trying to use my own code, it doesn't work. Instead, I get status code 405 (Method not allowed)
...
1
vote
1
answer
1k
views
Is it possible to get the response from a form POST?
This is related to my XYZ app to write comments.
I found a much neater way to submit the request using forms:
function post() {
se_url='https://api.stackexchange.com/2.3/posts/'+se_postId.value+'/...
2
votes
1
answer
980
views
Why doesn't my XMLHttpRequest call work in Excel?
I can make a simple API call in JavaScript using XMLHttpRequest:
<html>
<script>
function reqListener () {
out.textContent=this.responseText;
}
...
1
vote
0
answers
148
views
Extension; Access to layout and javascript of stackexchange network site instead of inject (Stacks is not defined)
Note: last update at the end of POST
I am developing an extension for community users.
Introduction:
The extension is under development on this github: https://github.com/IcarosNetSA/atsu
and these ...
6
votes
3
answers
93
views
Tab4SE - the TAB key in your post
Tab4SE
Screenshot / Code Snippet
About
Uses SmartTabbing™ technology to enable Tabing (Indent) and Shift+Tabing (Unindent).
Can be enabled via the toggle switch in the toolbar (preference is ...
1
vote
1
answer
1k
views
Why am I getting a 400 Bad Request error with this code?
I'm using this code (in an async function):
let about = await fetch("https://api.stackexchange.com/2.2/me?order=desc&access_token="+token+"&sort=reputation&site=gaming&...
2
votes
1
answer
277
views
What write in app access for sending data
Here is my app's code:
However, I get this error:
2
votes
0
answers
113
views
DAO.af browsable aggregated tags
About
goal is to learn skills faster by browsing the aggregated concepts. so you absorb big ideas before diving in. learn passively. its for everyone.
analyzes SE posts with IBM watson and allows ...
6
votes
0
answers
176
views
View close votes, reopen votes, and delete votes with insufficient repuation
Screenshot / Code Snippet
About
This script shows the number of current close votes, reopen votes and delete votes for a question. Works on all Stack Exchange sites.
License
GNU Lesser General Public ...