We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8a11504 + c6fd92e commit 3359120Copy full SHA for 3359120
lib/Gitlab/Api/Repositories.php
@@ -289,6 +289,19 @@ public function contributors($project_id)
289
return $this->get($this->getProjectPath($project_id, 'repository/contributors'));
290
}
291
292
+ /**
293
+ * File content is base64 encoded and placed in the "content" index of the returning array.
294
+ * You can then save the content with the tar.gz extension
295
+ *
296
+ * @param int $project_id
297
+ * @param array $params
298
+ * @return mixed
299
+ */
300
+ public function archive($project_id, $params = array())
301
+ {
302
+ return $this->get($this->getProjectPath($project_id, 'repository/archive'), $params);
303
+ }
304
+
305
/**
306
* @param string $path
307
* @return string
0 commit comments