Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"project": "./tsconfig.tests.json"
"project": "./tsconfig.lint.json"
},
"plugins": [
"import"
Expand All @@ -24,6 +24,22 @@
"import/no-cycle": "off",
"no-underscore-dangle": "off",
"lines-between-class-members": "off",
"eol-last": "error",
"sort-imports": [
"error",
{
"ignoreCase": true,
"ignoreDeclarationSort": false,
"ignoreMemberSort": false,
"memberSyntaxSortOrder": [
"all",
"single",
"multiple",
"none"
],
"allowSeparatedGroups": false
}
],
"padding-line-between-statements": [
"error",
{
Expand Down
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog

- Analytics API added.
- ContentContentState API added.
- `deletePageTree` method added to `Experimental`.
- `getUserProperties` method added to `Experimental`.
- `getUserProperty` method added to `Experimental`.
- `createUserProperty` method added to `Experimental`.
- `updateUserProperty` method added to `Experimental`.
- `deleteUserProperty` method added to `Experimental`.
- `getContentStateSettings` method added to `Settings`.
- Another small changes.
- Personal Access token authentication added.

### 1.3.0

- Telemetry removed (deprecated)
Expand Down
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Usability, consistency, and performance are key focuses of confluence.js, and it
- [Basic](#basic-authenticationhttpsdeveloperatlassiancomcloudconfluencebasic-auth-for-rest-apis)
- [OAuth 2.0](#oauth-20httpsdeveloperatlassiancomcloudconfluenceoauth-2-3lo-apps)
- [JWT](#jwthttpsdeveloperatlassiancomcloudconfluenceunderstanding-jwt)
- [Personal access token](#personal-access-token)
- [Your first request and using algorithm](#your-first-request-and-using-algorithm)
- [Decreasing Webpack bundle size](#decreasing-webpack-bundle-size)
- [Take a look at our other products](#take-a-look-at-our-other-products)
Expand Down Expand Up @@ -122,6 +123,19 @@ const client = new ConfluenceClient({
});
```

##### [Personal access token](https://confluence.atlassian.com/enterprise/using-personal-access-tokens-1026032365.html)

```typescript
import { ConfluenceClient } from 'confluence.js';

const client = new ConfluenceClient({
host: 'https://your-domain.atlassian.net',
authentication: {
personalAccessToken: 'secrectPAT',
},
});
```

#### Your first request and using algorithm

```typescript
Expand Down Expand Up @@ -221,6 +235,7 @@ client.<group>.<methodName>(parametersObject);

Available groups:

- [analytics](https://developer.atlassian.com/cloud/confluence/rest/api-group-analytics/)
- [audit](https://developer.atlassian.com/cloud/confluence/rest/api-group-audit)
- [content](https://developer.atlassian.com/cloud/confluence/rest/api-group-content/)
- [contentAttachments](https://developer.atlassian.com/cloud/confluence/rest/api-group-content---attachments/#api-group-content---attachments)
Expand Down
Loading