Project API

Overview of project API methods

get
Get Project Data

https://api.codemash.io/:version/projects/:projectId
Gets data of a particular project.
Request
Response
Request
Path Parameters
version
required
string
The version of API endpoint.
projectId
required
string
Your project's ID.
Headers
Authorization
required
string
Secret API key which belongs to your project or user. Not required if using cookies with session ID.
Response
200: OK
Returns the data of a project.
{
"result": {
"id": "aa8f9298-7a4f-4b44-8f90-b80d150d946f",
"tokens": [
{
"key": "key 1",
"value": "value 1",
}
],
"languages": [
"en"
],
"defaultLanguage": "en",
"defaultTimeZone": "Etc/UTC",
"name": "Example Project",
"description": "An example project",
"slugifiedName": "example-project"
}
}
.NET
Node
.NET
var client = new CodeMashClient(apiKey, projectId);
var projectService = new CodeMashProjectService(client);
var settings = await projectService.GetProjectAsync(new GetProjectRequest());

If you are using client provided by SDK, project ID will be set from client. Otherwise, specify project ID in request object.

Node