Discuss Scratch
- BowWhalley
- Scratcher
100+ posts
Manipulate Cloud Data externally.
So I have seen a few cool projects that are controlled through cloud variables, which are controlled from an private computer/server.
I was wondering how I can get started into this and what may be required.
I was wondering how I can get started into this and what may be required.
Last edited by BowWhalley (Oct. 31, 2015 13:01:43)
Check out my new WIP MAP. I need people to join - 9th March 2018
Please check out my new game, AppleCatch! - 8th March 2018
Profile picture made by @HelloUnicorns2
- BowWhalley
- Scratcher
100+ posts
Manipulate Cloud Data externally.
Bump.
Check out my new WIP MAP. I need people to join - 9th March 2018
Please check out my new game, AppleCatch! - 8th March 2018
Profile picture made by @HelloUnicorns2
- DigiTechs
- Scratcher
500+ posts
Manipulate Cloud Data externally.
Essentially, you'd need to do something like this in code:
Login with the desired username + password
Get the CSRF token
Send a request to get/set cloud data
Although, unlike other people, I don't know what the API endpoints are.
Login with the desired username + password
Get the CSRF token
Send a request to get/set cloud data
Although, unlike other people, I don't know what the API endpoints are.
I do, in fact, have my own site; it's here.
I'm also working on a thing called Fetch. Look at it here!
@thisandagain pls explain. @thisandagain pls explain. @thisandagain pls explain. @thisandagain pls explain. @thisandagain pls explain.
- BowWhalley
- Scratcher
100+ posts
Manipulate Cloud Data externally.
ok, thanks . Now, how can I use the api? Should I use a JavaScript Script?
Check out my new WIP MAP. I need people to join - 9th March 2018
Please check out my new game, AppleCatch! - 8th March 2018
Profile picture made by @HelloUnicorns2
- PullJosh
- Scratcher
1000+ posts
Manipulate Cloud Data externally.
https://www.npmjs.com/package/scratch-apiOh wow, I forgot that was a thing.
Come to think of it, wasn't there a python version at one point? Or is that just me…
- BookOwl
- Scratcher
1000+ posts
Manipulate Cloud Data externally.
I wish… Python is WAY more stable than nodehttps://www.npmjs.com/package/scratch-apiOh wow, I forgot that was a thing.
Come to think of it, wasn't there a python version at one point? Or is that just me…
who needs signatures
- PullJosh
- Scratcher
1000+ posts
Manipulate Cloud Data externally.
Someone should make that.I wish… Python is WAY more stable than nodehttps://www.npmjs.com/package/scratch-apiOh wow, I forgot that was a thing.
Come to think of it, wasn't there a python version at one point? Or is that just me…
- MathWizz
- Scratcher
100+ posts
Manipulate Cloud Data externally.
Why do you say this…? Python is WAY more stable than node
You need to install ok, thanks . Now, how can I use the api? Should I use a JavaScript Script?node.js and install the package with npm. Then you can write a JavaScript program to use the package and run it using node.
Last edited by MathWizz (Oct. 31, 2015 23:56:31)
running Chromium 42.0.2311.90 with Flash Player 15.0.0.189 on Arch Linux 3.19.5-1-ck
MathWizz — JsScratch && sb.js & Amber (coming soon! maybe)
- BowWhalley
- Scratcher
100+ posts
Manipulate Cloud Data externally.
Ok thankyou. I am running a mac, do you recommend any programs to write the code with?Why do you say this…? Python is WAY more stable than nodeYou need to install ok, thanks . Now, how can I use the api? Should I use a JavaScript Script?node.js and install the package with npm. Then you can write a JavaScript program to use the package and run it using node.
Check out my new WIP MAP. I need people to join - 9th March 2018
Please check out my new game, AppleCatch! - 8th March 2018
Profile picture made by @HelloUnicorns2
- BowWhalley
- Scratcher
100+ posts
Manipulate Cloud Data externally.
bump
Check out my new WIP MAP. I need people to join - 9th March 2018
Please check out my new game, AppleCatch! - 8th March 2018
Profile picture made by @HelloUnicorns2
- liam48D
- Scratcher
1000+ posts
Manipulate Cloud Data externally.
Try Sublime Text.Ok thankyou. I am running a mac, do you recommend any programs to write the code with?Why do you say this…? Python is WAY more stable than nodeYou need to install ok, thanks . Now, how can I use the api? Should I use a JavaScript Script?node.js and install the package with npm. Then you can write a JavaScript program to use the package and run it using node.
It costs 70 dollars but you can download and use it for as long as you want for free, so long as you can deal with a popup that appears every 500 saves or whatever.
202e-202e-202e-202e-202e UNI-CODE~~~~~
- BowWhalley
- Scratcher
100+ posts
Manipulate Cloud Data externally.
Ok thankyou, I do not know how to run the script though. Also I am not sure how to save it with java script encoding as it is not listed by default.Try Sublime Text.Ok thankyou. I am running a mac, do you recommend any programs to write the code with?Why do you say this…? Python is WAY more stable than nodeYou need to install ok, thanks . Now, how can I use the api? Should I use a JavaScript Script?node.js and install the package with npm. Then you can write a JavaScript program to use the package and run it using node.
It costs 70 dollars but you can download and use it for as long as you want for free, so long as you can deal with a popup that appears every 500 saves or whatever.
Check out my new WIP MAP. I need people to join - 9th March 2018
Please check out my new game, AppleCatch! - 8th March 2018
Profile picture made by @HelloUnicorns2
- WooHooBoy
- Scratcher
1000+ posts
Manipulate Cloud Data externally.
Just save it as main.js, and go to a command line and typeOk thankyou, I do not know how to run the script though. Also I am not sure how to save it with java script encoding as it is not listed by default.Try Sublime Text.Ok thankyou. I am running a mac, do you recommend any programs to write the code with?Why do you say this…? Python is WAY more stable than nodeYou need to install ok, thanks . Now, how can I use the api? Should I use a JavaScript Script?node.js and install the package with npm. Then you can write a JavaScript program to use the package and run it using node.
It costs 70 dollars but you can download and use it for as long as you want for free, so long as you can deal with a popup that appears every 500 saves or whatever.
node main.js
considered harmful
- robinp
- Scratcher
100+ posts
Manipulate Cloud Data externally.
I'm making one right now. Setting vars works right now but the CSRF token is giving me a headachehttps://www.npmjs.com/package/scratch-apiOh wow, I forgot that was a thing.
Come to think of it, wasn't there a python version at one point? Or is that just me…
- PullJosh
- Scratcher
1000+ posts
Manipulate Cloud Data externally.
Awesome! I hope it works out.I'm making one right now. Setting vars works right now but the CSRF token is giving me a headachehttps://www.npmjs.com/package/scratch-apiOh wow, I forgot that was a thing.
Come to think of it, wasn't there a python version at one point? Or is that just me…
- BowWhalley
- Scratcher
100+ posts
Manipulate Cloud Data externally.
All is going well for me now but with the functions, it wants a callback I think it is called.
returns this in console/terminal
var Scratch = require('scratch-api');
console.log(Scratch.getProject(85635578))
undefined
Check out my new WIP MAP. I need people to join - 9th March 2018
Please check out my new game, AppleCatch! - 8th March 2018
Profile picture made by @HelloUnicorns2
- liam48D
- Scratcher
1000+ posts
Manipulate Cloud Data externally.
All is going well for me now but with the functions, it wants a callback I think it is called.returns this in console/terminalvar Scratch = require('scratch-api');
console.log(Scratch.getProject(85635578))undefined
I've not used the API before but perhaps (this is a guess) Scratch.getProject takes a function as a callback?
I.e:
Scratch.getProject(..., function(data) {
console.log("Data loaded!");
console.log(data);
});
202e-202e-202e-202e-202e UNI-CODE~~~~~
- PullJosh
- Scratcher
1000+ posts
Manipulate Cloud Data externally.
It seems so.All is going well for me now but with the functions, it wants a callback I think it is called.returns this in console/terminalvar Scratch = require('scratch-api');
console.log(Scratch.getProject(85635578))undefined
I've not used the API before but perhaps (this is a guess) Scratch.getProject takes a function as a callback?
I.e:Scratch.getProject(..., function(data) {
console.log("Data loaded!");
console.log(data);
});
- BowWhalley
- Scratcher
100+ posts
Manipulate Cloud Data externally.
Replies, null and undefined.
var Scratch = require("scratch-api");
Scratch.getProject(85635578,function(data){
console.log("this is a test");
console.log(data);
});
Bowan:~ Rocketman2040$ node /Users/Rocketman2040/Desktop/Media/JavaScript/Bowan.js
this is a test
null
Bowan:~ Rocketman2040$
Last edited by BowWhalley (Nov. 1, 2015 20:25:03)
Check out my new WIP MAP. I need people to join - 9th March 2018
Please check out my new game, AppleCatch! - 8th March 2018
Profile picture made by @HelloUnicorns2