Skip to content

Robby-Blue/Scratch4J

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scratch4J

Scratch4J is a Java library for interacting with the scratch.mit.edu website.

Getting started

Logging into an account

Scratch4j scratch4j = new Scratch4j();
ScratchSession session = scratch4j.login("Username", "Password");

Cloud

Connecting to a project's cloud server and changing a variable

ScratchCloudSession cloudSession = session.startCloudSession(projectid);
cloudSession.setVariable("variable", "123");

Listening for cloud variable changes

cloudSession.addListener(event -> {
	System.out.println(event.getVariable() + " was changed to " + event.getValue());
});

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages