Skip to content

Commit

Permalink
Merge pull request #91 from HubSpot/feature/add-site-search-cms-clients
Browse files Browse the repository at this point in the history
Feature/add site search cms clients
  • Loading branch information
Andriy Prots authored and GitHub Enterprise committed Jun 18, 2020
2 parents 455e594 + a4c0c6b commit 391b514
Show file tree
Hide file tree
Showing 14 changed files with 1,795 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- validateSignature method to webhooks

## [2.1.0] - 2020-06-16
## [2.1.0] - 2020-06-18

### Added

- auditLogs, domains, performance and urlRedirects cms clients
- auditLogs, domains, performance, urlRedirects and siteSearch cms clients
- imports-contacts-app sample
- limiter for search methods
- search-results-paging-app sample
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,14 @@ return hubspotClient.oauth.defaultApi.createToken(
).then(...)
```

### CMS

#### Get audit logs

```javascript
const auditLogsResponse = await hubspotClient.cms.auditLogs.defaultApi.getPage()
```

## Not wrapped endpoint(s)

It is possible to access the hubspot request method directly,
Expand Down
3 changes: 3 additions & 0 deletions codegen/cms/site_search/api.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// This is the entrypoint for the package
export * from './api/apis';
export * from './model/models';
23 changes: 23 additions & 0 deletions codegen/cms/site_search/api/apis.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
export * from './defaultApi';
import { DefaultApi } from './defaultApi';
import * as fs from 'fs';
import * as http from 'http';

export class HttpError extends Error {
constructor (public response: http.IncomingMessage, public body: any, public statusCode?: number) {
super('HTTP request failed');
this.name = 'HttpError';
}
}

export interface RequestDetailedFile {
value: Buffer;
options?: {
filename?: string;
contentType?: string;
}
}

export type RequestFile = string | Buffer | fs.ReadStream | RequestDetailedFile;

export const APIS = [DefaultApi];
340 changes: 340 additions & 0 deletions codegen/cms/site_search/api/defaultApi.ts

Large diffs are not rendered by default.

Loading

0 comments on commit 391b514

Please sign in to comment.