{"info":{"_postman_id":"e30209a8-c979-4984-bc0d-a1177b568c65","name":"Ogram","description":"<html><head></head><body><p>All requests to communicate with Ogram API for sending and getting files !</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"2696027","collectionId":"e30209a8-c979-4984-bc0d-a1177b568c65","publishedId":"SzYgRaw1","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-04-10T15:57:20.000Z"},"item":[{"name":"Api","id":"a12f6926-1d9b-48b5-b4d7-67418b6fb24e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://ogramcloud.com/api","urlObject":{"protocol":"https","path":["api"],"host":["ogramcloud","com"],"query":[],"variable":[]}},"response":[{"id":"cc33bfd7-2df1-4576-a37f-92cec34ada3e","name":"ApiDescription","originalRequest":{"method":"GET","header":[],"url":"https://ogramcloud.com/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Sun, 19 Jul 2020 00:14:50 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"214"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"author\": \"sanix-darker (github.com/sanix-darker)\",\n    \"documentation\": \"https://documenter.getpostman.com/view/2696027/SzYgRaw1?version=latest\",\n    \"message\": \"Welcome to Ogram API.\",\n    \"status\": \"success\"\n}"}],"_postman_id":"a12f6926-1d9b-48b5-b4d7-67418b6fb24e"},{"name":"SendFile","id":"ad2e859a-18ed-409e-b8e7-0c96f53c4af9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":"/home/d4rk3r/Downloads/photo_2019-09-11_13-58-01.jpg"},{"key":"chat_id","value":"111111111","type":"text"}]},"url":"https://ogramcloud.com/api/upload","description":"<p>This POST request is for uploading a file, you need to provide : </p>\n<ul>\n<li>The file path (file)</li>\n<li>The chat_id (To get this parameter you need to start the bot on telegram)</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","upload"],"host":["ogramcloud","com"],"query":[],"variable":[]}},"response":[{"id":"cae89f69-6cf2-4b79-b066-b2279f1b130f","name":"Example_SendFile","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":"/home/d4rk3r/bg.jpg"},{"key":"chat_id","value":"111111111","type":"text"}]},"url":"https://ogram_api.ngrok.io/upload"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"741"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/1.0.0 Python/3.6.8"},{"key":"Date","value":"Fri, 10 Apr 2020 22:36:15 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"file_key\": \"b2a478f4be5107925f784f9bae82dd66\",\n    \"json_map\": {\n        \"cloud_map\": [\n            {\n                \"chunk_id\": \"BQACAgQAAxkDAAM7XpD036WFAydO2SmWE3TUQpNMuAADFQsAAjzkiVAI2u68gssblRgE\",\n                \"chunk_name\": \"caae245e4620464197d5d4506d1f349e\",\n                \"datetime\": 1586558175.923594\n            }\n        ],\n        \"file\": {\n            \"file_name\": \"bg.jpg\",\n            \"file_path\": \"./app/server/static/bg.jpg\"\n        },\n        \"file_map\": {\n            \"0\": \"caae245e4620464197d5d4506d1f349e\"\n        },\n        \"md5_sum\": \"b2a478f4be5107925f784f9bae82dd66\"\n    },\n    \"message\": \"Your file bg.jpg have been saved successfully !\",\n    \"status\": \"success\"\n}"}],"_postman_id":"ad2e859a-18ed-409e-b8e7-0c96f53c4af9"},{"name":"SendChunk","id":"06d9cdc0-766f-4a59-af95-fc16da305586","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"chunk","type":"file","src":"/home/d4rk3r/Downloads/shadow.png"},{"key":"chat_id","type":"text","value":"111111111"}]},"url":"https://ogramcloud.com/api/uploadchunk","description":"<p>This POST request is for uploading a file, you need to provide : </p>\n<ul>\n<li>The file path (file)</li>\n<li>The chat_id (To get this parameter you need to start the bot on telegram)</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","uploadchunk"],"host":["ogramcloud","com"],"query":[],"variable":[]}},"response":[{"id":"4861074b-3149-45d9-8113-d427ad49231e","name":"Example_SendChunk","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"chunk","type":"file","src":"/home/d4rk3r/Downloads/shadow.png"},{"key":"chat_id","type":"text","value":"111111111"}]},"url":"https://ogramcloud.com/api/uploadchunk"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 25 Jul 2020 18:47:18 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"85"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Your chunk have been seend successfully !\",\n    \"status\": \"success\"\n}"}],"_postman_id":"06d9cdc0-766f-4a59-af95-fc16da305586"},{"name":"GetFile","id":"424c18e9-85ea-46cd-979f-4a3978b972eb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://ogramcloud.com/api/download/1b33e396489f1a5a8351454390ef0c14","description":"<p>To get a file (The direct-download link of the file), you need to provide the file_key parameter you had when you was uploading the file !</p>\n","urlObject":{"protocol":"https","path":["api","download","1b33e396489f1a5a8351454390ef0c14"],"host":["ogramcloud","com"],"query":[],"variable":[]}},"response":[{"id":"f7e3044c-522d-49e4-a6c4-b7d2946d405c","name":"Example_GetFile","originalRequest":{"method":"GET","header":[],"url":"https://ogram_api.ngrok.io/download/b2a478f4be5107925f784f9bae82dd66"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"186"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/1.0.0 Python/3.6.8"},{"key":"Date","value":"Fri, 10 Apr 2020 22:36:40 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"download_link\": \"http://ogram_api.ngrok.io/api/file/b2a478f4be5107925f784f9bae82dd66\",\n    \"file_key\": \"b2a478f4be5107925f784f9bae82dd66\",\n    \"message\": \"file restored successfully !\",\n    \"status\": \"success\"\n}"}],"_postman_id":"424c18e9-85ea-46cd-979f-4a3978b972eb"},{"name":"DownloadFile","id":"71abaecd-486f-4901-b8bb-1ec69f599510","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://ogramcloud.com/api/download/1b33e396489f1a5a8351454390ef0c14","description":"<p>To get a file (The direct-download link of the file), you need to provide the file_key parameter you had when you was uploading the file !</p>\n","urlObject":{"protocol":"https","path":["api","download","1b33e396489f1a5a8351454390ef0c14"],"host":["ogramcloud","com"],"query":[],"variable":[]}},"response":[{"id":"31e05e5e-c67a-4c14-bf79-d30fe906b5ae","name":"Example_DownloadFile","originalRequest":{"method":"GET","header":[],"url":"https://ogramcloud.com/api/download/1b33e396489f1a5a8351454390ef0c14"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"71abaecd-486f-4901-b8bb-1ec69f599510"},{"name":"CountFiles","id":"00540065-f539-4152-9a6e-69c8a9334f3f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://ogramcloud.com/api/count","description":"<p>To get a file (The direct-download link of the file), you need to provide the file_key parameter you had when you was uploading the file !</p>\n","urlObject":{"protocol":"https","path":["api","count"],"host":["ogramcloud","com"],"query":[],"variable":[]}},"response":[{"id":"9501784f-089f-4115-bce0-8a92161c7a88","name":"Example_CountFiles","originalRequest":{"method":"GET","header":[],"url":"https://ogramcloud.com/api/count"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"00540065-f539-4152-9a6e-69c8a9334f3f"}],"event":[{"listen":"prerequest","script":{"id":"745fb473-dab4-499e-a5ca-43643506dbc9","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"9ac152f2-b13e-4d7b-bdde-b0af61dd0331","type":"text/javascript","exec":[""]}}]}