Both sides previous revisionPrevious revision | Next revisionBoth sides next revision |
remarkable [2018/01/29 18:12] – andi | remarkable [2018/01/29 18:29] – andi |
---|
}] | }] |
</code> | </code> |
| |
| ===== Create Folder ===== |
| |
| <code> |
| curl -H 'Content-Type: application/json' -H 'Authorization: Bearer <token>' -H 'Accept-Language: en-DE,*' -H 'User-Agent: Mozilla/5.0' -H 'Host: document-storage-production-dot-remarkable-production.appspot.com:443' --data-binary '[ |
| { |
| "ID": "1dd71dfc-a463-4317-9428-ece0bff128b9", |
| "Parent": "", |
| "Type": "CollectionType", |
| "Version": 1 |
| } |
| ] |
| ' -X PUT --compressed 'https://document-storage-production-dot-remarkable-production.appspot.com/document-storage/json/2/upload/request' |
| </code> |
| |
| <code> |
| [{ |
| "ID": "1dd71dfc-a463-4317-9428-ece0bff128b9", |
| "Version": 1, |
| "Message": "", |
| "Success": true, |
| "BlobURLPut": "https://storage.googleapis.com/remarkable-production-document-storage/user-auth0%7C5a68dc51cb30df3877a1d7c4/1dd71dfc-a463-4317-9428-ece0bff128b9?Expires=1517253532\u0026GoogleAccessId=remarkable-production%40appspot.gserviceaccount.com\u0026Signature=RklnAKXYxl6%2FEDXxAj%2B0d8W8IrqymHYeNZoPXEcHTGdjc1F0%2B8jsxsYFC7AVYVYG2yHt3R3ujTaWfaV1fa%2BX1MMjdLEjzsbhDv5F5HW3dJ4OHtllwBMi7HY8pEj%2FIO2c0PkY1vhfNuRriAhhPKVMm3Y17g7vdm%2Bcli90QtIvdh%2FlHfPh8OWhlZ%2BShH5fwEzNH%2Bs5EgUoq2YVqEOzWdPUclSPQGp9PbKQwJuKw7tTynjbfQCV%2FRFrh2zDn%2BK7Pci4CVCMjZCKfFqUThTxVmPEBLHtC%2F2oKWTOL4CQ8FQPtAWIPmL65zm7iGIlmfkTzu9BRpUov86QXds6tpSFSLcAmQ%3D%3D", |
| "BlobURLPutExpires": "2018-01-29T19:18:52.854382809Z" |
| }] |
| </code> |
| |
| set name: |
| |
| <code> |
| curl -H 'Content-Type: application/json' -H 'Authorization: Bearer <token>' -H 'Accept-Language: en-DE,*' -H 'User-Agent: Mozilla/5.0' -H 'Host: document-storage-production-dot-remarkable-production.appspot.com:443' --data-binary '[ |
| { |
| "Bookmarked": false, |
| "ID": "1dd71dfc-a463-4317-9428-ece0bff128b9", |
| "ModifiedClient": "2018-01-29T19:18:55.017017Z", |
| "Parent": "", |
| "Type": "CollectionType", |
| "Version": 1, |
| "VissibleName": "Folder" |
| } |
| ] |
| ' -X PUT --compressed 'https://document-storage-production-dot-remarkable-production.appspot.com/document-storage/json/2/upload/update-status' |
| </code> |
| |
| ===== Delete Folder ===== |
| |
| <code> |
| curl -H 'Content-Type: application/json' -H 'Authorization: Bearer <token>' -H 'Accept-Language: en-DE,*' -H 'User-Agent: Mozilla/5.0' -H 'Host: document-storage-production-dot-remarkable-production.appspot.com:443' --data-binary '[ |
| { |
| "ID": "1dd71dfc-a463-4317-9428-ece0bff128b9", |
| "Version": 1 |
| } |
| ] |
| ' -X PUT --compressed 'https://document-storage-production-dot-remarkable-production.appspot.com/document-storage/json/2/delete' |
| </code> |
| |
| ===== Upload File ===== |
| |
| <code> |
| curl -H 'Content-Type: application/json' -H 'Authorization: Bearer <token>' -H 'Accept-Language: en-DE,*' -H 'User-Agent: Mozilla/5.0' -H 'Host: document-storage-production-dot-remarkable-production.appspot.com:443' --data-binary '[ |
| { |
| "ID": "3a3d6e24-d5f1-4016-9d77-f32b594fe3b0", |
| "Parent": "", |
| "Type": "DocumentType", |
| "Version": 1 |
| } |
| ] |
| ' -X PUT --compressed 'https://document-storage-production-dot-remarkable-production.appspot.com/document-storage/json/2/upload/request' |
| </code> |
| |
| <code> |
| [{ |
| "ID": "3a3d6e24-d5f1-4016-9d77-f32b594fe3b0", |
| "Version": 1, |
| "Message": "", |
| "Success": true, |
| "BlobURLPut": "https://storage.googleapis.com/remarkable-production-document-storage/user-auth0%7C5a68dc51cb30df3877a1d7c4/3a3d6e24-d5f1-4016-9d77-f32b594fe3b0?Expires=1517253910\u0026GoogleAccessId=remarkable-production%40appspot.gserviceaccount.com\u0026Signature=GbTaxXZ5sGqMGMOl0NAxwatdKJbPaKanScsjszVlkTtmmlkjthu94x7L0tcKkM2uOOHR32QToVW%2FxnQzH8Kh5w46NMKl5frBsPxnxDMsRB97ZFWU7LswvsIfzgZwpv6cZiZRcHPhdG07EYW2axU5eS7adZFOo8t7DN5mX%2BDNIWeMz2wi%2Bwa%2F3NpOfry6WHAQYJvEusl16cw4ZEnBZ1ignBmLbwFs8qYSBRuIrePVssYN9vDD8s%2F%2B%2FX2XmSRFzC0Lpsa0%2BMoazgSn2BUknh3muCSY27eXBts7ZV8452fZoeIeiflpaz05B3VE4NzGW9ynCpwUyhaZxlPWMGUHuMlI0g%3D%3D", |
| "BlobURLPutExpires": "2018-01-29T19:25:10.314206921Z" |
| }] |
| </code> |
| |
| <code> |
| curl -H 'Content-Type: application/json' -H 'Authorization: Bearer <token>' -H 'Accept-Language: en-DE,*' -H 'User-Agent: Mozilla/5.0' -H 'Host: document-storage-production-dot-remarkable-production.appspot.com:443' --data-binary '[ |
| { |
| "Bookmarked": false, |
| "CurrentPage": 0, |
| "ID": "3a3d6e24-d5f1-4016-9d77-f32b594fe3b0", |
| "ModifiedClient": "2018-01-29T19:25:12.519519Z", |
| "Parent": "", |
| "Type": "DocumentType", |
| "Version": 1, |
| "VissibleName": "2017-11-09 21" |
| } |
| ] |
| ' -X PUT --compressed 'https://document-storage-production-dot-remarkable-production.appspot.com/document-storage/json/2/upload/update-status' |
| </code> |
| |
| <code> |
| curl -H 'Accept-Language: en-DE,*' -H 'User-Agent: Mozilla/5.0' -H 'Host: storage.googleapis.com' --data-binary "<data>" -X PUT --compressed 'https://storage.googleapis.com/remarkable-production-document-storage/user-auth0%7C5a68dc51cb30df3877a1d7c4/3a3d6e24-d5f1-4016-9d77-f32b594fe3b0?Expires=1517253910&GoogleAccessId=remarkable-production%40appspot.gserviceaccount.com&Signature=GbTaxXZ5sGqMGMOl0NAxwatdKJbPaKanScsjszVlkTtmmlkjthu94x7L0tcKkM2uOOHR32QToVW%2FxnQzH8Kh5w46NMKl5frBsPxnxDMsRB97ZFWU7LswvsIfzgZwpv6cZiZRcHPhdG07EYW2axU5eS7adZFOo8t7DN5mX%2BDNIWeMz2wi%2Bwa%2F3NpOfry6WHAQYJvEusl16cw4ZEnBZ1ignBmLbwFs8qYSBRuIrePVssYN9vDD8s%2F%2B%2FX2XmSRFzC0Lpsa0%2BMoazgSn2BUknh3muCSY27eXBts7ZV8452fZoeIeiflpaz05B3VE4NzGW9ynCpwUyhaZxlPWMGUHuMlI0g%3D%3D' |
| </code> |
| |