Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Scratch APIs
- WooHooBoy
- Scratcher
1000+ posts
Scratch APIs
Hm, still doesn't work. I'm using qwest, does that make a difference?If CORS isn't enabled on the API server, just append Welp, I know nothing about CORS…
Anyone mind giving a little explanation on using the API in a webapp? (I'm really dumb )to the front of any URL, and it should work automagically. shameless plughttps://crossorigin.me/
considered harmful
- BookOwl
- Scratcher
1000+ posts
Scratch APIs
Yay!I do :pturing complete.Nobody seems to get my joke. My life is
who needs signatures
- Jonathan50
- Scratcher
1000+ posts
Scratch APIs
https://api-staging.scratch.mit.edu/proxy/users/kaj/activity/count has 403 unread messagesI did that before @comp09
That's the first thing I tried
DANGIT SOMEONE ELSE ALREADY DID IT SMGLKJ$JGLJSF
https://api.scratch.mit.edu/users/thisandagain/following thanks thisandagain
Not yet a Knight of the Mu Calculus.
- Jonathan50
- Scratcher
1000+ posts
Scratch APIs
Oh BTW to find APIs you can use something like Fiddler etc. it works great but for now only on the front page for the new ones…
Not yet a Knight of the Mu Calculus.
- WooHooBoy
- Scratcher
1000+ posts
Scratch APIs
Hm, still doesn't work. I'm using qwest, does that make a difference?If CORS isn't enabled on the API server, just append Welp, I know nothing about CORS…
Anyone mind giving a little explanation on using the API in a webapp? (I'm really dumb )to the front of any URL, and it should work automagically. shameless plughttps://crossorigin.me/
help!
considered harmful
- technoboy10
- Scratcher
1000+ posts
Scratch APIs
No, it shouldn't. Can you post the actual error you're getting?Hm, still doesn't work. I'm using qwest, does that make a difference?If CORS isn't enabled on the API server, just append Welp, I know nothing about CORS…
Anyone mind giving a little explanation on using the API in a webapp? (I'm really dumb )to the front of any URL, and it should work automagically. shameless plughttps://crossorigin.me/
trans rights are human rights
- WooHooBoy
- Scratcher
1000+ posts
Scratch APIs
http://prntscr.com/8w3z5rNo, it shouldn't. Can you post the actual error you're getting?Hm, still doesn't work. I'm using qwest, does that make a difference?If CORS isn't enabled on the API server, just append Welp, I know nothing about CORS…
Anyone mind giving a little explanation on using the API in a webapp? (I'm really dumb )to the front of any URL, and it should work automagically. shameless plughttps://crossorigin.me/
Last edited by WooHooBoy (Oct. 28, 2015 00:18:31)
considered harmful
- technoboy10
- Scratcher
1000+ posts
Scratch APIs
Try using https instead of http.http://prntscr.com/8w3z5rNo, it shouldn't. Can you post the actual error you're getting?Hm, still doesn't work. I'm using qwest, does that make a difference?If CORS isn't enabled on the API server, just append Welp, I know nothing about CORS…
Anyone mind giving a little explanation on using the API in a webapp? (I'm really dumb )to the front of any URL, and it should work automagically. shameless plughttps://crossorigin.me/
trans rights are human rights
- WooHooBoy
- Scratcher
1000+ posts
Scratch APIs
Same thing.Try using https instead of http.http://prntscr.com/8w3z5rNo, it shouldn't. Can you post the actual error you're getting?Hm, still doesn't work. I'm using qwest, does that make a difference?If CORS isn't enabled on the API server, just append Welp, I know nothing about CORS…
Anyone mind giving a little explanation on using the API in a webapp? (I'm really dumb )to the front of any URL, and it should work automagically. shameless plughttps://crossorigin.me/
considered harmful
- thisandagain
- Forum Moderator
500+ posts
Scratch APIs
If CORS isn't enabled on the API server, just append Welp, I know nothing about CORS…
Anyone mind giving a little explanation on using the API in a webapp? (I'm really dumb )to the front of any URL, and it should work automagically. shameless plughttps://crossorigin.me/
CORS is enabled (allow “*”) on the new API. Just let me know if you see anything weird / broken. I'll try to get patches out for you folks quickly.
- WooHooBoy
- Scratcher
1000+ posts
Scratch APIs
Hm, still doesn't work for me. Oh yeah, I don't think qwest works with some things. Time to go find something else to use!If CORS isn't enabled on the API server, just append Welp, I know nothing about CORS…
Anyone mind giving a little explanation on using the API in a webapp? (I'm really dumb )to the front of any URL, and it should work automagically. shameless plughttps://crossorigin.me/
CORS is enabled (allow “*”) on the new API. Just let me know if you see anything weird / broken. I'll try to get patches out for you folks quickly.
considered harmful
- thisandagain
- Forum Moderator
500+ posts
Scratch APIs
Hm, still doesn't work. I'm using qwest, does that make a difference?
Can you post your code in addition to the error? Here is a working example:
http://codepen.io/anon/pen/wKjgEp?editors=001
- Jonathan50
- Scratcher
1000+ posts
Scratch APIs
I might rewrite scribblemod.tk with PHP or Python/Django or C/C++ and take advantage of these…
Not yet a Knight of the Mu Calculus.
- WooHooBoy
- Scratcher
1000+ posts
Scratch APIs
Sure.Same thing.Try using https instead of http.http://prntscr.com/8w3z5rNo, it shouldn't. Can you post the actual error you're getting?Hm, still doesn't work. I'm using qwest, does that make a difference?If CORS isn't enabled on the API server, just append Welp, I know nothing about CORS…
Anyone mind giving a little explanation on using the API in a webapp? (I'm really dumb )to the front of any URL, and it should work automagically. shameless plughttps://crossorigin.me/
Can you post your code in addition to the error?
qwest.get('https://crossorigin.me/https://api.scratch.mit.edu/users/WooHooBoy/following?limit=5') .then(function(xhr, response) { // things });
Probably a problem with qwest…
considered harmful
- ChocolatePi
- Scratcher
1000+ posts
Scratch APIs
why not just use the standard xhr?Sure.Same thing.Try using https instead of http.http://prntscr.com/8w3z5rNo, it shouldn't. Can you post the actual error you're getting?Hm, still doesn't work. I'm using qwest, does that make a difference?If CORS isn't enabled on the API server, just append Welp, I know nothing about CORS…
Anyone mind giving a little explanation on using the API in a webapp? (I'm really dumb )to the front of any URL, and it should work automagically. shameless plughttps://crossorigin.me/
Can you post your code in addition to the error?qwest.get('https://crossorigin.me/https://api.scratch.mit.edu/users/WooHooBoy/following?limit=5') .then(function(xhr, response) { // things });
Probably a problem with qwest…
- Jonathan50
- Scratcher
1000+ posts
Scratch APIs
If you got cross-origin request errors that's unlikely… Probably a problem with qwest…
Not yet a Knight of the Mu Calculus.
- WooHooBoy
- Scratcher
1000+ posts
Scratch APIs
Because I was lazywhy not just use the standard xhr?Sure.Same thing.Try using https instead of http.http://prntscr.com/8w3z5rNo, it shouldn't. Can you post the actual error you're getting?Hm, still doesn't work. I'm using qwest, does that make a difference?If CORS isn't enabled on the API server, just append Welp, I know nothing about CORS…
Anyone mind giving a little explanation on using the API in a webapp? (I'm really dumb )to the front of any URL, and it should work automagically. shameless plughttps://crossorigin.me/
Can you post your code in addition to the error?qwest.get('https://crossorigin.me/https://api.scratch.mit.edu/users/WooHooBoy/following?limit=5') .then(function(xhr, response) { // things });
Probably a problem with qwest…
I'll try standard.
Hmmm, seems to work fine. Stupid qwest.
considered harmful
- thisandagain
- Forum Moderator
500+ posts
Scratch APIs
Sure.qwest.get('https://crossorigin.me/https://api.scratch.mit.edu/users/WooHooBoy/following?limit=5') .then(function(xhr, response) { // things });
Probably a problem with qwest…
Huh. It seems like the qwest library is appending some cache-control headers that we don't support. FWIW we use `xhr`:
https://www.npmjs.com/package/xhr
Also, you can drop the "https://crossorigin.me/“ part as we support requests from ”*".
- WooHooBoy
- Scratcher
1000+ posts
Scratch APIs
I'll check that out, looks pretty good.Sure.qwest.get('https://crossorigin.me/https://api.scratch.mit.edu/users/WooHooBoy/following?limit=5') .then(function(xhr, response) { // things });
Probably a problem with qwest…
Huh. It seems like the qwest library is appending some cache-control headers that we don't support. FWIW we use `xhr`:
https://www.npmjs.com/package/xhr
Also, you can drop the "https://crossorigin.me/“ part as we support requests from ”*".
I'll probably just create my own for this purpose.
considered harmful
- MegaApuTurkUltra
- Scratcher
1000+ posts
Scratch APIs
Will we get the ability to read messages?If CORS isn't enabled on the API server, just append Welp, I know nothing about CORS…
Anyone mind giving a little explanation on using the API in a webapp? (I'm really dumb )to the front of any URL, and it should work automagically. shameless plughttps://crossorigin.me/
CORS is enabled (allow “*”) on the new API. Just let me know if you see anything weird / broken. I'll try to get patches out for you folks quickly.
$(".box-head")[0].textContent = "committing AT crimes since $whenever"