127.0.185 • Published 4 months ago

projectmanager-sdk v127.0.185

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months 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}`);
}
122.0.214

8 months ago

127.0.185

4 months ago

125.2.176

5 months ago

121.0.4887

9 months ago

120.0.4689

9 months ago

119.0.4625

10 months ago

117.0.4438

10 months ago

114.0.4169

12 months ago

115.0.4328

11 months ago

112.0.3856

1 year ago

110.0.3705

1 year ago

107.0.3368

1 year ago

104.0.3086

1 year ago

103.0.3003

1 year ago

102.0.2886

1 year ago

99.0.2549

2 years ago

98.0.2363

2 years ago

97.0.2178

2 years ago

96.0.2123

2 years ago

11.1.2053

2 years ago