|
| 1 | +/* tslint:disable */ |
| 2 | +/* eslint-disable */ |
| 3 | +/** |
| 4 | + * @solvedac/unofficial-documentation |
| 5 | + * 이 프로젝트는 [solved.ac](https://solved.ac/) API를 문서화하는 커뮤니티 프로젝트입니다. 이 저장소는 원작자의 요청에 따라 언제든 지워질 수 있으며, 현재 API와 일치하지 않을 수도 있는 점 양해 부탁드립니다. <sup> solved.ac 서비스는 shiftpsh가 기획·개발·디자인·운영하는 프로젝트로, 이 저장소와는 solved.ac의 API를 문서화해둔 것 이외에는 아무런 관련이 없습니다. </sup> [GitHub에서 보기](https://github.com/solvedac/unofficial-documentation)  |
| 6 | + * |
| 7 | + * The version of the OpenAPI document: 3.2021.09+b2 |
| 8 | + * Contact: public.ranolp@gmail.com |
| 9 | + * |
| 10 | + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). |
| 11 | + * https://openapi-generator.tech |
| 12 | + * Do not edit the class manually. |
| 13 | + */ |
| 14 | +import * as runtime from '../runtime'; |
| 15 | +/** |
| 16 | + * |
| 17 | + */ |
| 18 | +export class AccountApi extends runtime.BaseAPI { |
| 19 | + /** |
| 20 | + * 계정의 설정을 변경합니다. |
| 21 | + * 계정 설정 변경하기 |
| 22 | + */ |
| 23 | + async updateAccountSettingsRaw(requestParameters, initOverrides) { |
| 24 | + if (requestParameters.inlineObject === null || requestParameters.inlineObject === undefined) { |
| 25 | + throw new runtime.RequiredError('inlineObject', 'Required parameter requestParameters.inlineObject was null or undefined when calling updateAccountSettings.'); |
| 26 | + } |
| 27 | + const queryParameters = {}; |
| 28 | + const headerParameters = {}; |
| 29 | + headerParameters['Content-Type'] = 'application/json'; |
| 30 | + const response = await this.request({ |
| 31 | + path: `/account/update_settings`, |
| 32 | + method: 'PATCH', |
| 33 | + headers: headerParameters, |
| 34 | + query: queryParameters, |
| 35 | + body: requestParameters.inlineObject, |
| 36 | + }, initOverrides); |
| 37 | + return new runtime.VoidApiResponse(response); |
| 38 | + } |
| 39 | + /** |
| 40 | + * 계정의 설정을 변경합니다. |
| 41 | + * 계정 설정 변경하기 |
| 42 | + */ |
| 43 | + async updateAccountSettings(requestParameters, initOverrides) { |
| 44 | + await this.updateAccountSettingsRaw(requestParameters, initOverrides); |
| 45 | + } |
| 46 | + /** |
| 47 | + * 현재 로그인한 계정 정보를 가져옵니다. |
| 48 | + * 로그인 정보 가져오기 |
| 49 | + */ |
| 50 | + async verifyAccountCredentialsRaw(initOverrides) { |
| 51 | + const queryParameters = {}; |
| 52 | + const headerParameters = {}; |
| 53 | + const response = await this.request({ |
| 54 | + path: `/account/verify_credentials`, |
| 55 | + method: 'GET', |
| 56 | + headers: headerParameters, |
| 57 | + query: queryParameters, |
| 58 | + }, initOverrides); |
| 59 | + return new runtime.JSONApiResponse(response); |
| 60 | + } |
| 61 | + /** |
| 62 | + * 현재 로그인한 계정 정보를 가져옵니다. |
| 63 | + * 로그인 정보 가져오기 |
| 64 | + */ |
| 65 | + async verifyAccountCredentials(initOverrides) { |
| 66 | + const response = await this.verifyAccountCredentialsRaw(initOverrides); |
| 67 | + return await response.value(); |
| 68 | + } |
| 69 | +} |
0 commit comments