Skip to main content

Get the current project

Log in to add to favourites

Requesting the current project can be achieved by using the get method on the client's project property.

get(): Promise<Project>

Returns

A Promise that will resolve with the Project

JavaScript
ContensisClient.project.get().then(function(currentProject) {
    console.log(currentProject.name);
    console.log(currentProject.primaryLanguage);
    console.log(currentProject.supportedLanguages);
});

Still need help?

If you still need help after reading this article, don't hesitate to reach out to the Contensis community on Slack or raise a support ticket to get help from our team.
New support request