|
| 1 | +package filestack |
| 2 | + |
| 3 | +func DialogOpenJSON() string { |
| 4 | + return `{ |
| 5 | + "action": "fp.dialog", |
| 6 | + "timestamp": 1435584646, |
| 7 | + "id": 102, |
| 8 | + "text": { |
| 9 | + "mimetypes": ["*/*"], |
| 10 | + "iframe": false, |
| 11 | + "language": "en", |
| 12 | + "id": "1435584650723", |
| 13 | + "mobile": false, |
| 14 | + "app":{ |
| 15 | + "upsell": "false", |
| 16 | + "apikey": "YOUR_API_KEY", |
| 17 | + "customization":{ |
| 18 | + "saveas_subheader": "Save it down to your local device or onto the Cloud", |
| 19 | + "folder_subheader": "Choose a folder to share with this application", |
| 20 | + "open_subheader": "Choose from the files on your local device or the ones you have online", |
| 21 | + "folder_header": "Select a folder", |
| 22 | + "help_text": "", |
| 23 | + "saveas_header": "Save your file", |
| 24 | + "open_header": "Upload a file" |
| 25 | + } |
| 26 | + }, |
| 27 | + "dialogType": "open", |
| 28 | + "auth": false, |
| 29 | + "welcome_header": "Upload a file", |
| 30 | + "welcome_subheader": "Choose from the files on your local device or the ones you have online", |
| 31 | + "help_text": "", |
| 32 | + "recent_path": "/", |
| 33 | + "extensions": null, |
| 34 | + "maxSize": 0, |
| 35 | + "signature": null, |
| 36 | + "policy": null, |
| 37 | + "custom_providers": "imgur,cloudapp", |
| 38 | + "intra": false |
| 39 | + } |
| 40 | + }` |
| 41 | +} |
| 42 | + |
| 43 | +func UploadJSON() string { |
| 44 | + return `{ |
| 45 | + "action":"fp.upload", |
| 46 | + "timestamp":1443444905, |
| 47 | + "id":100946, |
| 48 | + "text":{ |
| 49 | + "url":"https://www.filestackapi.com/api/file/WAunDTTqQfCNWwUUyf6n", |
| 50 | + "client":"Facebook", |
| 51 | + "type":"image/jpeg", |
| 52 | + "filename":"1579337399020824.jpg", |
| 53 | + "size":139154 |
| 54 | + } |
| 55 | + }` |
| 56 | +} |
| 57 | + |
| 58 | +func VideoConversionJSON() string { |
| 59 | + return `{ |
| 60 | + "status":"completed", |
| 61 | + "message":"Done", |
| 62 | + "data":{ |
| 63 | + "thumb":"https://cdn.filestackcontent.com/f1e8V88QDuxzOvtOAq1W", |
| 64 | + "thumb100x100":"https://process.filestackapi.com/AhTgLagciQByzXpFGRI0Az/resize=w:100,h:100,f:crop/output=f:jpg,q:66/https://cdn.filestackcontent.com/f1e8V88QDuxzOvtOAq1W", |
| 65 | + "thumb200x200":"https://process.filestackapi.com/AhTgLagciQByzXpFGRI0Az/resize=w:200,h:200,f:crop/output=f:jpg,q:66/https://cdn.filestackcontent.com/f1e8V88QDuxzOvtOAq1W", |
| 66 | + "thumb300x300":"https://process.filestackapi.com/AhTgLagciQByzXpFGRI0Az/resize=w:300,h:300,f:crop/output=f:jpg,q:66/https://cdn.filestackcontent.com/f1e8V88QDuxzOvtOAq1W", |
| 67 | + "url":"https://cdn.filestackcontent.com/VgvFVdvvTkml0WXPIoGn" |
| 68 | + }, |
| 69 | + "metadata":{ |
| 70 | + "result":{ |
| 71 | + "audio_channels":2, |
| 72 | + "audio_codec":"vorbis", |
| 73 | + "audio_sample_rate":44100, |
| 74 | + "created_at":"2015/12/21 20:45:19 +0000", |
| 75 | + "duration":10587, |
| 76 | + "encoding_progress":100, |
| 77 | + "encoding_time":8, |
| 78 | + "extname":".webm", |
| 79 | + "file_size":293459, |
| 80 | + "fps":24, |
| 81 | + "height":260, |
| 82 | + "mime_type":"video/webm", |
| 83 | + "started_encoding_at":"2015/12/21 20:45:22 +0000", |
| 84 | + "updated_at":"2015/12/21 20:45:32 +0000", |
| 85 | + "video_bitrate":221, |
| 86 | + "video_codec":"vp8", |
| 87 | + "width":300 |
| 88 | + }, |
| 89 | + "source":{ |
| 90 | + "audio_bitrate":125, |
| 91 | + "audio_channels":2, |
| 92 | + "audio_codec":"aac", |
| 93 | + "audio_sample_rate":44100, |
| 94 | + "created_at":"2015/12/21 20:45:19 +0000", |
| 95 | + "duration":10564, |
| 96 | + "extname":".mp4", |
| 97 | + "file_size":875797, |
| 98 | + "fps":24, |
| 99 | + "height":360, |
| 100 | + "mime_type":"video/mp4", |
| 101 | + "updated_at":"2015/12/21 20:45:32 +0000", |
| 102 | + "video_bitrate":196, |
| 103 | + "video_codec":"h264", |
| 104 | + "width":480 |
| 105 | + } |
| 106 | + }, |
| 107 | + "timestamp":"1453850583", |
| 108 | + "uuid":"638311d89d2bc849563a674a45809b7c" |
| 109 | + }` |
| 110 | +} |
0 commit comments