Skip to content

Commit 82fc8f0

Browse files
authored
Merge pull request #1 from xianzhe18/xianzhe18-patch-1
request `create_download_url`
2 parents bc12f69 + cc78a98 commit 82fc8f0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/Api/Rooms/Files.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,18 @@ public function show($accountId = null)
6767

6868
/**
6969
* @param $id
70+
* @param $downloadLink
7071
*
7172
* @return File
7273
*/
73-
public function detail($id)
74+
public function detail($id, $downloadLink = false)
7475
{
7576
return $this->factory->entity(
7677
$this->client->get(
77-
"rooms/{$this->roomId}/files/{$id}"
78+
"rooms/{$this->roomId}/files/{$id}",
79+
[
80+
'create_download_url' => (int) $downloadLink,
81+
]
7882
)
7983
);
8084
}

0 commit comments

Comments
 (0)