107.0.3368 • Published 29 days ago

projectmanager-sdk v107.0.3368

Weekly downloads
-
License
MIT
Repository
github
Last release
29 days ago

npm

ProjectManager.com SDK for API v4

This software development kit contains all API definitions for the ProjectManager.com REST API v4 as a software development kit for TypeScript / JavaScript.

Why use the SDK?

The ProjectManager API v4 is available as a REST definition in OpenAPI format. You can read the documentation online at developer.projectmanager.com.

This SDK provides a few capabilities that developers may find more useful than hand-writing REST API code:

  • Documentation is available in your editor via autocomplete and hover docblocks
  • Automated updates whenever new API endpoints are added

Using this SDK

Here's how to add this SDK to create a project.

npm install projectmanager-sdk

To create an API client for ProjectManager, you must specify:

  • Your API key, and
  • Your environment URL.

For the ProjectManager production environment, the environment URL is https://api.projectmanager.com.

To obtain a ProjectManager.com API key:

  • Log on to ProjectManager.com
  • Click your name in the bottom left hand corner
  • Select Account, then API
  • Follow the instructions on the page to create a new API key
import process from 'process';
import { ProjectManagerClient } from 'projectmanager-sdk';

// Construct a client to talk to the ProjectManager API using your server and token
var client = ProjectManagerClient
    .withEnvironment(process.env["PM_ENV"])
    .withBearerToken(process.env["PM_API_KEY"]);

// Call the RetrieveMe endpoint to verify that you are logged on
var result = await client.Me.retrieveMe();
if (result.success) {
    console.log(`Connected as ${result.data?.fullName} (${result.data?.emailAddress})`);
} else {
    console.log(`Failed to connect: ${result.error}`);
}
107.0.3368

29 days ago

104.0.3086

2 months ago

103.0.3003

3 months ago

102.0.2886

4 months ago

99.0.2549

5 months ago

98.0.2363

6 months ago

97.0.2178

7 months ago

96.0.2123

7 months ago

11.1.2053

7 months ago