Both sides previous revisionPrevious revisionNext revision | Previous revision |
remarkable [2018/01/29 18:12] – andi | remarkable [2018/02/01 19:03] (current) – andi |
---|
====== Remarkable ====== | ====== Remarkable ====== |
| |
| ====== Token Request ====== |
| |
| <code> |
| curl -H 'Authorization: Bearer' -H 'Accept-Language: en-DE,*' -H 'User-Agent: Mozilla/5.0' -H 'Host: my.remarkable.com' --data '{ |
| "code": "gliuqtne", |
| "deviceDesc": "desktop-windows", |
| "deviceID": "701c3752-1025-4770-af43-5ddcfa4dabb2" |
| } |
| ' --compressed 'https://my.remarkable.com/token/device/new' |
| </code> |
| |
| <code> |
| HTTP/1.1 200 OK |
| Content-Type: text/html; charset=utf-8 |
| Content-Encoding: gzip |
| X-Cloud-Trace-Context: 780b44bdfad364f96f4122902187ab38 |
| Vary: Accept-Encoding |
| Date: Mon, 29 Jan 2018 18:30:12 GMT |
| Server: Google Frontend |
| Cache-Control: private |
| Transfer-Encoding: chunked |
| Connection: Keep-alive |
| <token> |
| </code> |
| |
===== Token Refresh ===== | ===== Token Refresh ===== |
}] | }] |
</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> |
| |
| ===== Doc Download ===== |
| |
| <code> |
| curl -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' --compressed 'https://document-storage-production-dot-remarkable-production.appspot.com/document-storage/json/2/docs?withBlob=true&doc=0fe25ee9-82a0-4a20-bad3-50eee6dc8d27' |
| </code> |
| |
| <code> |
| [{ |
| "ID": "0fe25ee9-82a0-4a20-bad3-50eee6dc8d27", |
| "Version": 1, |
| "Message": "", |
| "Success": true, |
| "BlobURLGet": "https://storage.googleapis.com/remarkable-production-document-storage/user-auth0%7C5a68dc51cb30df3877a1d7c4/0fe25ee9-82a0-4a20-bad3-50eee6dc8d27?Expires=1517515071\u0026GoogleAccessId=remarkable-production%40appspot.gserviceaccount.com\u0026Signature=neNCBGghL3jkg3BZIUDDJeWIKbNHT8Exl2HsNa7hYxtuR8j2j%2BUA5qeH1DaTYe%2FzcX7N%2FEXWfDHsR7QsZxVqJorpV3vvB6WWyT6pvlDPcuTvMURXpaXgmJ4JJluNbAmS6dzA04g8cZwvMRWz8fW90gyk8KHHsBZ5aoekOravQ3EkAyUYxMoP5lfm2PU7K6NfvWY%2BA3a4wrkPQr3AOzHvsa2ZlYaSlecmMRELMalT8307YbLULTa%2FKb3mqkYXtnxqGe2iNzBjR18ycoGGZFBMUzEWpp089T%2BePBJbWEB6tsnljDEuuXqd1GOM4du8B7cCDSsY28LSyWswbuq3WRYzxw%3D%3D", |
| "BlobURLGetExpires": "2018-02-01T19:57:51.259624578Z", |
| "ModifiedClient": "2018-01-30T15:47:17.6464Z", |
| "Type": "DocumentType", |
| "VissibleName": "Notebook", |
| "CurrentPage": 0, |
| "Bookmarked": false, |
| "Parent": "6d6ad886-5d8d-4b3e-aa6f-b05d46d31e83" |
| }] |
| </code> |
| |
| file download has PK encoded data. Zip file with all files? |