Also worth mentioning that if you don’t want to use the REST API directly there are libraries that wrap it, e.g.