From Bright Pattern Documentation
|
|
Line 1: |
Line 1: |
− | <translate>= Get File=
| + | #REDIRECT [[Api]] |
− | ''Get File'' downloads a file from the server using the received file ID. See server event [[mobile-web-api-specification/ServerEvents#Chat_Session_File|Chat Session File]].
| |
− | | |
− | | |
− | == URI ==
| |
− | http[s]://{host:port}/clientweb/api/v1/chats/{chatId}/files/{fileId}
| |
− | | |
− | | |
− | == HTTP Method ==
| |
− | GET
| |
− | | |
− | | |
− | == Parameters ==
| |
− | * '''fileId''' - File ID to download
| |
− | * '''chatId''' - Current chat ID
| |
− | | |
− | | |
− | == Request Body ==
| |
− | ID of the file to be downloaded
| |
− | | |
− | | |
− | === Example ===
| |
− | {|border="1" style="border-collapse:collapse" cellpadding="5"
| |
− | |<blockquote>''fileId={file id of file to download}''
| |
− | | |
− | ''chatId=current chat id''
| |
− | </blockquote>
| |
− | |}
| |
− | | |
− | | |
− | == Returns ==
| |
− | '''200''' – File content type
| |
− | | |
− | | |
− | == Errors ==
| |
− | '''401''' – Unauthorized
| |
− | | |
− | '''404''' – Not Found
| |
− | | |
− | | |
− | | |
− | <center>[[mobile-web-api-specification/UploadFile|< Previous]] | [[mobile-web-api-specification/GetAgentProfilePhoto|Next >]]</center>
| |
− | | |
− | </translate>
| |
Latest revision as of 22:56, 6 August 2020