Skip to content

Instantly share code, notes, and snippets.

@Rio517
Created May 22, 2018 11:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Rio517/d117e027afea18f9e94e8d3dca86f8c4 to your computer and use it in GitHub Desktop.
Save Rio517/d117e027afea18f9e94e8d3dca86f8c4 to your computer and use it in GitHub Desktop.
Slack API Issue
curl -X GET \
'https://slack.com/api/files.list?token=REMOVED&page=1&types=&channel=' \
-H 'Cache-Control: no-cache' \
-H 'accept: application/json, text/plain, */*' \
-H 'accept-encoding: gzip, deflate, br' \
-H 'accept-language: en-US,en;q=0.9,de;q=0.8' \
-H 'authority: slack.com' \
-H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36'
{
"ok": true,
"files": [
{
"id": "FALTCS6SZ",
"created": 1525860793,
"timestamp": 1525860793,
"name": "2018-04-14 Jumeirah Royal Saray MenuPlus Arch.pdf",
"title": "Diagram example",
"mimetype": "application/pdf",
"filetype": "pdf",
"pretty_type": "PDF",
"user": "U0DC083A8",
"editable": false,
"size": 285217,
"mode": "hosted",
"is_external": false,
"external_type": "",
"is_public": false,
"public_url_shared": false,
"display_as_bot": false,
"username": "",
"url_private": "https://files.slack.com/files-pri/T025NTH09-FALTCS6SZ/2018-04-14_jumeirah_royal_saray_menuplus_arch.pdf",
"url_private_download": "https://files.slack.com/files-pri/T025NTH09-FALTCS6SZ/download/2018-04-14_jumeirah_royal_saray_menuplus_arch.pdf",
"thumb_pdf": "https://files.slack.com/files-tmb/T025NTH09-FALTCS6SZ-e618a7cf9f/2018-04-14_jumeirah_royal_saray_menuplus_arch_thumb_pdf.png",
"thumb_pdf_w": 1286,
"thumb_pdf_h": 909,
"permalink": "https://suitepad.slack.com/files/U0DC083A8/FALTCS6SZ/2018-04-14_jumeirah_royal_saray_menuplus_arch.pdf",
"permalink_public": "https://slack-files.com/T025NTH09-FALTCS6SZ-8574c39f9d",
"channels": [],
"groups": [],
"ims": [
"D3FSUNJCC"
],
"comments_count": 0
},
{
"id": "FAJPDA61M",
"created": 1525353019,
"timestamp": 1525353019,
"name": "Image uploaded from iOS.jpg",
"title": "Slack for iOS Upload",
"mimetype": "image/jpeg",
"filetype": "jpg",
"pretty_type": "JPEG",
"user": "U025WQ0H7",
"editable": false,
"size": 6328285,
"mode": "hosted",
"is_external": false,
"external_type": "",
"is_public": false,
"public_url_shared": false,
"display_as_bot": false,
"username": "",
"url_private": "https://files.slack.com/files-pri/T025NTH09-FAJPDA61M/image_uploaded_from_ios.jpg",
"url_private_download": "https://files.slack.com/files-pri/T025NTH09-FAJPDA61M/download/image_uploaded_from_ios.jpg",
"thumb_64": "https://files.slack.com/files-tmb/T025NTH09-FAJPDA61M-0824429066/image_uploaded_from_ios_64.jpg",
"thumb_80": "https://files.slack.com/files-tmb/T025NTH09-FAJPDA61M-0824429066/image_uploaded_from_ios_80.jpg",
"thumb_360": "https://files.slack.com/files-tmb/T025NTH09-FAJPDA61M-0824429066/image_uploaded_from_ios_360.jpg",
"thumb_360_w": 270,
"thumb_360_h": 360,
"thumb_480": "https://files.slack.com/files-tmb/T025NTH09-FAJPDA61M-0824429066/image_uploaded_from_ios_480.jpg",
"thumb_480_w": 360,
"thumb_480_h": 480,
"thumb_160": "https://files.slack.com/files-tmb/T025NTH09-FAJPDA61M-0824429066/image_uploaded_from_ios_160.jpg",
"thumb_720": "https://files.slack.com/files-tmb/T025NTH09-FAJPDA61M-0824429066/image_uploaded_from_ios_720.jpg",
"thumb_720_w": 540,
"thumb_720_h": 720,
"thumb_800": "https://files.slack.com/files-tmb/T025NTH09-FAJPDA61M-0824429066/image_uploaded_from_ios_800.jpg",
"thumb_800_w": 800,
"thumb_800_h": 1067,
"thumb_960": "https://files.slack.com/files-tmb/T025NTH09-FAJPDA61M-0824429066/image_uploaded_from_ios_960.jpg",
"thumb_960_w": 720,
"thumb_960_h": 960,
"thumb_1024": "https://files.slack.com/files-tmb/T025NTH09-FAJPDA61M-0824429066/image_uploaded_from_ios_1024.jpg",
"thumb_1024_w": 768,
"thumb_1024_h": 1024,
"image_exif_rotation": 1,
"original_w": 3024,
"original_h": 4032,
"permalink": "https://suitepad.slack.com/files/U025WQ0H7/FAJPDA61M/image_uploaded_from_ios.jpg",
"permalink_public": "https://slack-files.com/T025NTH09-FAJPDA61M-6398a9c8b0",
"channels": [],
"groups": [
"G8PJ2BCLU"
],
"ims": [],
"comments_count": 0
},
{
"id": "F95H148BZ",
"created": 1517912133,
"timestamp": 1517912133,
"name": "system_chart.png",
"title": "system_chart.png",
"mimetype": "image/png",
"filetype": "png",
"pretty_type": "PNG",
"user": "U8E5754UE",
"editable": false,
"size": 331956,
"mode": "hosted",
"is_external": false,
"external_type": "",
"is_public": false,
"public_url_shared": false,
"display_as_bot": false,
"username": "",
"url_private": "https://files.slack.com/files-pri/T025NTH09-F95H148BZ/system_chart.png",
"url_private_download": "https://files.slack.com/files-pri/T025NTH09-F95H148BZ/download/system_chart.png",
"thumb_64": "https://files.slack.com/files-tmb/T025NTH09-F95H148BZ-99985de460/system_chart_64.png",
"thumb_80": "https://files.slack.com/files-tmb/T025NTH09-F95H148BZ-99985de460/system_chart_80.png",
"thumb_360": "https://files.slack.com/files-tmb/T025NTH09-F95H148BZ-99985de460/system_chart_360.png",
"thumb_360_w": 338,
"thumb_360_h": 360,
"thumb_480": "https://files.slack.com/files-tmb/T025NTH09-F95H148BZ-99985de460/system_chart_480.png",
"thumb_480_w": 451,
"thumb_480_h": 480,
"thumb_160": "https://files.slack.com/files-tmb/T025NTH09-F95H148BZ-99985de460/system_chart_160.png",
"thumb_720": "https://files.slack.com/files-tmb/T025NTH09-F95H148BZ-99985de460/system_chart_720.png",
"thumb_720_w": 676,
"thumb_720_h": 720,
"thumb_800": "https://files.slack.com/files-tmb/T025NTH09-F95H148BZ-99985de460/system_chart_800.png",
"thumb_800_w": 800,
"thumb_800_h": 852,
"thumb_960": "https://files.slack.com/files-tmb/T025NTH09-F95H148BZ-99985de460/system_chart_960.png",
"thumb_960_w": 901,
"thumb_960_h": 960,
"thumb_1024": "https://files.slack.com/files-tmb/T025NTH09-F95H148BZ-99985de460/system_chart_1024.png",
"thumb_1024_w": 961,
"thumb_1024_h": 1024,
"image_exif_rotation": 1,
"original_w": 1573,
"original_h": 1676,
"permalink": "https://suitepad.slack.com/files/U8E5754UE/F95H148BZ/system_chart.png",
"permalink_public": "https://slack-files.com/T025NTH09-F95H148BZ-829660b1dd",
"channels": [],
"groups": [],
"ims": [
"D8CSG7AKB"
],
"comments_count": 1,
"initial_comment": {
"id": "Fc93UM9ZK3",
"created": 1517912133,
"timestamp": 1517912133,
"user": "U8E5754UE",
"is_intro": true,
"comment": "Third, the second!"
}
},
{
"id": "F7GQD10PK",
"created": 1507817374,
"timestamp": 1507817374,
"name": "Image uploaded from iOS.jpg",
"title": "Image uploaded from iOS",
"mimetype": "image/jpeg",
"filetype": "jpg",
"pretty_type": "JPEG",
"user": "U025WQ0H7",
"editable": false,
"size": 4689939,
"mode": "hosted",
"is_external": false,
"external_type": "",
"is_public": false,
"public_url_shared": false,
"display_as_bot": false,
"username": "",
"url_private": "https://files.slack.com/files-pri/T025NTH09-F7GQD10PK/image_uploaded_from_ios.jpg",
"url_private_download": "https://files.slack.com/files-pri/T025NTH09-F7GQD10PK/download/image_uploaded_from_ios.jpg",
"thumb_64": "https://files.slack.com/files-tmb/T025NTH09-F7GQD10PK-aef714cccd/image_uploaded_from_ios_64.jpg",
"thumb_80": "https://files.slack.com/files-tmb/T025NTH09-F7GQD10PK-aef714cccd/image_uploaded_from_ios_80.jpg",
"thumb_360": "https://files.slack.com/files-tmb/T025NTH09-F7GQD10PK-aef714cccd/image_uploaded_from_ios_360.jpg",
"thumb_360_w": 360,
"thumb_360_h": 270,
"thumb_480": "https://files.slack.com/files-tmb/T025NTH09-F7GQD10PK-aef714cccd/image_uploaded_from_ios_480.jpg",
"thumb_480_w": 480,
"thumb_480_h": 361,
"thumb_160": "https://files.slack.com/files-tmb/T025NTH09-F7GQD10PK-aef714cccd/image_uploaded_from_ios_160.jpg",
"thumb_720": "https://files.slack.com/files-tmb/T025NTH09-F7GQD10PK-aef714cccd/image_uploaded_from_ios_720.jpg",
"thumb_720_w": 720,
"thumb_720_h": 541,
"thumb_800": "https://files.slack.com/files-tmb/T025NTH09-F7GQD10PK-aef714cccd/image_uploaded_from_ios_800.jpg",
"thumb_800_w": 800,
"thumb_800_h": 601,
"thumb_960": "https://files.slack.com/files-tmb/T025NTH09-F7GQD10PK-aef714cccd/image_uploaded_from_ios_960.jpg",
"thumb_960_w": 960,
"thumb_960_h": 721,
"thumb_1024": "https://files.slack.com/files-tmb/T025NTH09-F7GQD10PK-aef714cccd/image_uploaded_from_ios_1024.jpg",
"thumb_1024_w": 1024,
"thumb_1024_h": 769,
"image_exif_rotation": 1,
"original_w": 3088,
"original_h": 2320,
"permalink": "https://suitepad.slack.com/files/U025WQ0H7/F7GQD10PK/image_uploaded_from_ios.jpg",
"permalink_public": "https://slack-files.com/T025NTH09-F7GQD10PK-7a11db424e",
"channels": [],
"groups": [],
"ims": [
"D31CF5150"
],
"comments_count": 0
}
],
"paging": {
"count": 100,
"total": 4,
"page": 1,
"pages": 1
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment