| @@ 119-129 (lines=11) @@ | ||
| 116 | * |
|
| 117 | * @return \Psr\Http\Message\ResponseInterface |
|
| 118 | */ |
|
| 119 | public function delete($name) |
|
| 120 | { |
|
| 121 | $path = sprintf( |
|
| 122 | 'project/%s/delete-directory?key=%s', |
|
| 123 | $this->getProjectId(), |
|
| 124 | $this->getApiKey() |
|
| 125 | ); |
|
| 126 | ||
| 127 | return $this->getHttpClient() |
|
| 128 | ->post($path, ['form_params' => ['name' => $name]]); |
|
| 129 | } |
|
| 130 | } |
|
| 131 | ||
| @@ 148-158 (lines=11) @@ | ||
| 145 | * |
|
| 146 | * @return \Psr\Http\Message\ResponseInterface |
|
| 147 | */ |
|
| 148 | public function delete($file) |
|
| 149 | { |
|
| 150 | $path = sprintf( |
|
| 151 | 'project/%s/delete-file?key=%s', |
|
| 152 | $this->getProjectId(), |
|
| 153 | $this->getApiKey() |
|
| 154 | ); |
|
| 155 | ||
| 156 | return $this->getHttpClient() |
|
| 157 | ->post($path, ['form_params' => ['file' => $file]]); |
|
| 158 | } |
|
| 159 | ||
| 160 | /** |
|
| 161 | * This method exports single translated files from Crowdin. |
|