Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/src/publish/netlify/api/services/AccessTokenService.ts
6464 views
1
/* istanbul ignore file */
2
/* tslint:disable */
3
/* eslint-disable */
4
import type { CancelablePromise } from "../core/CancelablePromise.ts";
5
import type { BaseHttpRequest } from "../core/BaseHttpRequest.ts";
6
7
export class AccessTokenService {
8
constructor(public readonly httpRequest: BaseHttpRequest) {}
9
10
/**
11
* @returns any error
12
* @throws ApiError
13
*/
14
public exchangeTicket({
15
ticketId,
16
}: {
17
ticketId: string;
18
}): CancelablePromise<{
19
code?: number;
20
message: string;
21
}> {
22
return this.httpRequest.request({
23
method: "POST",
24
url: "/oauth/tickets/{ticket_id}/exchange",
25
path: {
26
"ticket_id": ticketId,
27
},
28
});
29
}
30
}
31
32