Get the current project
Log in to add to favouritesPage last updated 13 November 2024
Call the project.get() method in our delivery client to get the current project
Call signature
get(): Promise<Project>
Returns
A Promise that will resolve with the Project
Example
// Using TypeScript, or ES Module await syntax
const project = await client.project.get();
console.log(project.name);
console.log(project.primaryLanguage);
console.log(project.supportedLanguages);
// Using Common JS promise callback syntax
client.project.get()
.then(function(project) {
console.log(currentProject.name);
console.log(currentProject.primaryLanguage);
console.log(currentProject.supportedLanguages);
});