(command: string, params: any)
| 53 | } |
| 54 | |
| 55 | async _get(command: string, params: any) { |
| 56 | // Create query with given parameters, if applicable |
| 57 | params = params || {}; |
| 58 | |
| 59 | const options = { |
| 60 | params, |
| 61 | }; |
| 62 | |
| 63 | const httpClient = await this.getHttpClient(); |
| 64 | return httpClient |
| 65 | .get(command, options) |
| 66 | .json() |
| 67 | .then(this._parseResponse) |
| 68 | .catch(this._parseError); |
| 69 | } |
| 70 | |
| 71 | async _post(command: string, data: any) { |
| 72 | const options = { |
no test coverage detected