File and Folder Service
API change historyRequest
Request URL
Request headers
-
(optional)stringMedia type of the body sent to the API.
Request body
Get top level folders request
{
"Scope": 0,
"LevelOfDetail": 0
}
<GetTopLevelFoldersRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Scope>All</Scope>
<LevelOfDetail>All</LevelOfDetail>
</GetTopLevelFoldersRequest>
Responses
200 OK
Representations
{
"Id": "00000000-0000-0000-0000-000000000000",
"ParentFolderId": "00000000-0000-0000-0000-000000000000",
"Name": "string",
"Description": "string",
"Attributes": 0,
"ReferenceData": "string",
"Created": "2018-05-17T11:31:11.136Z",
"OwnerUserDetails": {
"Id": "00000000-0000-0000-0000-000000000000",
"FirstName": "string",
"LastName": "string",
"Email": "string"
},
"SubFolders": [
{}
],
"Permissions": 0,
"WellKnownFolderType": 0
}
<StoreFolders xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<StoreFolder>
<Id>1b5e9faf-40f2-4f23-bfe8-4fa9a80a936e</Id>
<ParentFolderId xsi:nil="true" />
<Name>My Uploaded Print Files</Name>
<Description>Print Files you have uploaded using the Mimeo Printer</Description>
<Attributes>IsRootFolder IsSpecial</Attributes>
<ReferenceData />
<Created>2018-01-16T18:02:50.727Z</Created>
<StorageUserDetails>
<Id>03b83385-0e35-4413-b3fb-c5f5293f1e23</Id>
<FirstName>Test</FirstName>
<LastName>User</LastName>
<Email>dUser@mimeo.com</Email>
</StorageUserDetails>
<StoreFolders>
<StoreFolder>
<Id>b47eb254-3c6d-40d3-9da1-137e2fea20e1</Id>
<ParentFolderId>1b5e9faf-40f2-4f23-bfe8-4fa9a80a936e</ParentFolderId>
<Name>Document</Name>
<Description />
<Attributes>CanBeShared</Attributes>
<ReferenceData />
<Created>2019-08-12T06:10:26.21Z</Created>
<StoreFolders>
<StoreFolder>
<Id>865cf784-f22e-4437-9ed6-a83074c632a6</Id>
<ParentFolderId>b47eb254-3c6d-40d3-9da1-137e2fea20e1</ParentFolderId>
<Name>12</Name>
<Description />
<Attributes>CanBeShared</Attributes>
<ReferenceData />
<Created>2019-08-12T06:10:26.89Z</Created>
<StoreFolders>
<StoreFolder>
<Id>a2104c6f-bf27-47a2-890f-822b1e9ebcaf</Id>
<ParentFolderId>865cf784-f22e-4437-9ed6-a83074c632a6</ParentFolderId>
<Name>08</Name>
<Description />
<Attributes>CanBeShared</Attributes>
<ReferenceData />
<Created>2019-08-12T06:10:27.61Z</Created>
<StoreFolders>
<StoreFolder>
<Id>990f3d92-cbcd-458e-b43f-a8ff4bf9b967</Id>
<ParentFolderId>a2104c6f-bf27-47a2-890f-822b1e9ebcaf</ParentFolderId>
<Name>2019</Name>
<Description />
<Attributes>CanBeShared</Attributes>
<ReferenceData />
<Created>2019-08-12T06:10:28.367Z</Created>
<StoreFolders />
<Permissions>Full</Permissions>
</StoreFolder>
</StoreFolders>
<Permissions>Full</Permissions>
</StoreFolder>
</StoreFolders>
<Permissions>Full</Permissions>
</StoreFolder>
</StoreFolders>
<Permissions>Full</Permissions>
</StoreFolder>
<StoreFolder>
<Id>20221985-ec31-459d-b5fd-17e9bfdd47fa</Id>
<ParentFolderId>1b5e9faf-40f2-4f23-bfe8-4fa9a80a936e</ParentFolderId>
<Name>DnyTestSuit</Name>
<Description />
<Attributes>CanBeShared</Attributes>
<ReferenceData />
<Created>2019-08-05T04:12:19.733Z</Created>
<StoreFolders />
<Permissions>Full</Permissions>
</StoreFolder>
<StoreFolder>
<Id>183eca46-7f98-4c39-b157-1e3c8a9fe755</Id>
<ParentFolderId>1b5e9faf-40f2-4f23-bfe8-4fa9a80a936e</ParentFolderId>
<Name>Folder1</Name>
<Description />
<Attributes>CanBeShared</Attributes>
<ReferenceData />
<Created>2019-07-09T06:14:14.187Z</Created>
<StoreFolders />
<Permissions>Full</Permissions>
</StoreFolder>
<StoreFolder>
<Id>dffae7bb-fc9e-4ec0-9094-2b55ecb3ce56</Id>
<ParentFolderId>1b5e9faf-40f2-4f23-bfe8-4fa9a80a936e</ParentFolderId>
<Name>test-29.04.2019</Name>
<Description />
<Attributes>CanBeShared</Attributes>
<ReferenceData />
<Created>2019-05-10T07:11:26.29Z</Created>
<StoreFolders />
<Permissions>Full</Permissions>
</StoreFolder>
<StoreFolder>
<Id>b970125d-51e5-4523-94df-3410d78abca1</Id>
<ParentFolderId>1b5e9faf-40f2-4f23-bfe8-4fa9a80a936e</ParentFolderId>
<Name>test-09.04.2019</Name>
<Description />
<Attributes>CanBeShared</Attributes>
<ReferenceData />
<Created>2019-04-09T04:06:10.843Z</Created>
<StoreFolders />
<Permissions>Full</Permissions>
</StoreFolder>
<StoreFolder>
<Id>267c608c-48b9-4b02-83d4-38a0e463a88f</Id>
<ParentFolderId>1b5e9faf-40f2-4f23-bfe8-4fa9a80a936e</ParentFolderId>
<Name>Tanveer_Test2019</Name>
<Description />
<Attributes>CanBeShared</Attributes>
<ReferenceData />
<Created>2019-09-24T10:06:15.15Z</Created>
<StoreFolders />
<Permissions>Full</Permissions>
</StoreFolder>
<StoreFolder>
<Id>9bc33be8-58cf-4a58-91e3-3e7f76b21b35</Id>
<ParentFolderId>1b5e9faf-40f2-4f23-bfe8-4fa9a80a936e</ParentFolderId>
<Name>TestingAPI</Name>
<Description />
<Attributes>CanBeShared</Attributes>
<ReferenceData />
<Created>2018-06-06T03:56:21.44Z</Created>
<StoreFolders />
<Permissions>Full</Permissions>
</StoreFolder>
<StoreFolder>
<Id>9dc49284-fc5d-47f5-a7d5-58010c80d957</Id>
<ParentFolderId>1b5e9faf-40f2-4f23-bfe8-4fa9a80a936e</ParentFolderId>
<Name>PlaceOrder</Name>
<Description />
<Attributes>CanBeShared</Attributes>
<ReferenceData />
<Created>2019-09-26T04:38:00.527Z</Created>
<StoreFolders />
<Permissions>Full</Permissions>
</StoreFolder>
<StoreFolder>
<Id>12eddedd-f16a-446b-b91b-5d4c33c32905</Id>
<ParentFolderId>1b5e9faf-40f2-4f23-bfe8-4fa9a80a936e</ParentFolderId>
<Name>Dny</Name>
<Description />
<Attributes>CanBeShared</Attributes>
<ReferenceData />
<Created>2019-09-15T08:04:57.817Z</Created>
<StoreFolders />
<Permissions>Full</Permissions>
</StoreFolder>
<StoreFolder>
<Id>9fd582fb-7a8b-4f3e-93aa-60c05a8181cd</Id>
<ParentFolderId>1b5e9faf-40f2-4f23-bfe8-4fa9a80a936e</ParentFolderId>
<Name>Test2019</Name>
<Description />
<Attributes>CanBeShared</Attributes>
<ReferenceData />
<Created>2019-07-10T10:00:48.85Z</Created>
<StoreFolders>
<StoreFolder>
<Id>aa408dab-03ff-4f40-8304-e7d5330b7401</Id>
<ParentFolderId>9fd582fb-7a8b-4f3e-93aa-60c05a8181cd</ParentFolderId>
<Name>10July</Name>
<Description />
<Attributes>CanBeShared</Attributes>
<ReferenceData />
<Created>2019-07-10T10:00:49.977Z</Created>
<StoreFolders />
<Permissions>Full</Permissions>
</StoreFolder>
</StoreFolders>
<Permissions>Full</Permissions>
</StoreFolder>
<StoreFolder>
<Id>695eadd9-b977-42d5-a9a6-66010363c4cf</Id>
<ParentFolderId>1b5e9faf-40f2-4f23-bfe8-4fa9a80a936e</ParentFolderId>
<Name>test-05.04.2019</Name>
<Description />
<Attributes>CanBeShared</Attributes>
<ReferenceData />
<Created>2019-04-05T08:55:11.61Z</Created>
<StoreFolders />
<Permissions>Full</Permissions>
</StoreFolder>
<StoreFolder>
<Id>37d780ce-55b1-4294-9bf0-6f74532843e9</Id>
<ParentFolderId>1b5e9faf-40f2-4f23-bfe8-4fa9a80a936e</ParentFolderId>
<Name>test2018</Name>
<Description />
<Attributes>CanBeShared</Attributes>
<ReferenceData />
<Created>2018-06-06T04:13:06.973Z</Created>
<StoreFolders>
<StoreFolder>
<Id>850ec1a7-70d7-4154-b2fb-e04de0cdcc42</Id>
<ParentFolderId>37d780ce-55b1-4294-9bf0-6f74532843e9</ParentFolderId>
<Name>Deletefolder</Name>
<Description />
<Attributes>CanBeShared</Attributes>
<ReferenceData />
<Created>2018-06-06T08:42:05.393Z</Created>
<StoreFolders />
<Permissions>Full</Permissions>
</StoreFolder>
</StoreFolders>
<Permissions>Full</Permissions>
</StoreFolder>
<StoreFolder>
<Id>94b14338-d659-4757-ae14-93885b6490df</Id>
<ParentFolderId>1b5e9faf-40f2-4f23-bfe8-4fa9a80a936e</ParentFolderId>
<Name>Dny-us-31.07.2019</Name>
<Description />
<Attributes>CanBeShared</Attributes>
<ReferenceData />
<Created>2019-08-26T04:19:51.08Z</Created>
<StoreFolders />
<Permissions>Full</Permissions>
</StoreFolder>
<StoreFolder>
<Id>fbdd8857-89a9-4abf-9291-944322d7720a</Id>
<ParentFolderId>1b5e9faf-40f2-4f23-bfe8-4fa9a80a936e</ParentFolderId>
<Name>TestDny</Name>
<Description />
<Attributes>CanBeShared</Attributes>
<ReferenceData />
<Created>2019-09-15T09:22:52.19Z</Created>
<StoreFolders />
<Permissions>Full</Permissions>
</StoreFolder>
<StoreFolder>
<Id>97c2fc5c-36c7-407b-9c10-9714cc912b8a</Id>
<ParentFolderId>1b5e9faf-40f2-4f23-bfe8-4fa9a80a936e</ParentFolderId>
<Name>0924Test2019</Name>
<Description />
<Attributes>CanBeShared</Attributes>
<ReferenceData />
<Created>2019-09-24T10:38:49.03Z</Created>
<StoreFolders />
<Permissions>Full</Permissions>
</StoreFolder>
<StoreFolder>
<Id>15825b22-c6a5-4abf-9dc2-9bc36d796235</Id>
<ParentFolderId>1b5e9faf-40f2-4f23-bfe8-4fa9a80a936e</ParentFolderId>
<Name>test-de-20.06.2019</Name>
<Description />
<Attributes>CanBeShared</Attributes>
<ReferenceData />
<Created>2019-08-06T12:24:08.153Z</Created>
<StoreFolders />
<Permissions>Full</Permissions>
</StoreFolder>
<StoreFolder>
<Id>774bb42f-fba4-46db-aacc-a0520e4b0822</Id>
<ParentFolderId>1b5e9faf-40f2-4f23-bfe8-4fa9a80a936e</ParentFolderId>
<Name>swarup-print-test-04.09.2019</Name>
<Description />
<Attributes>CanBeShared</Attributes>
<ReferenceData />
<Created>2019-04-09T05:11:42.653Z</Created>
<StoreFolders />
<Permissions>Full</Permissions>
</StoreFolder>
<StoreFolder>
<Id>16e6ed19-afdf-4ace-8413-a09c51c3671c</Id>
<ParentFolderId>1b5e9faf-40f2-4f23-bfe8-4fa9a80a936e</ParentFolderId>
<Name>updatefolder</Name>
<Description>This folder was updated by API.</Description>
<Attributes>CanBeShared</Attributes>
<ReferenceData />
<Created>2018-06-04T11:05:43.41Z</Created>
<StoreFolders />
<Permissions>Full</Permissions>
</StoreFolder>
<StoreFolder>
<Id>52b36346-c570-4544-a850-b0ab9beae06f</Id>
<ParentFolderId>1b5e9faf-40f2-4f23-bfe8-4fa9a80a936e</ParentFolderId>
<Name>test-13.05.2019</Name>
<Description />
<Attributes>CanBeShared</Attributes>
<ReferenceData />
<Created>2019-05-29T05:23:08.357Z</Created>
<StoreFolders />
<Permissions>Full</Permissions>
</StoreFolder>
<StoreFolder>
<Id>9281d964-bc31-450c-8500-c10893c8151e</Id>
<ParentFolderId>1b5e9faf-40f2-4f23-bfe8-4fa9a80a936e</ParentFolderId>
<Name>18July</Name>
<Description />
<Attributes>CanBeShared</Attributes>
<ReferenceData />
<Created>2019-07-18T08:49:02.01Z</Created>
<StoreFolders />
<Permissions>Full</Permissions>
</StoreFolder>
<StoreFolder>
<Id>c892b2e3-d731-4aa9-9ac6-c34a1644a1a7</Id>
<ParentFolderId>1b5e9faf-40f2-4f23-bfe8-4fa9a80a936e</ParentFolderId>
<Name>play</Name>
<Description />
<Attributes>CanBeShared</Attributes>
<ReferenceData />
<Created>2019-07-01T10:42:15.927Z</Created>
<StoreFolders />
<Permissions>Full</Permissions>
</StoreFolder>
<StoreFolder>
<Id>fad6c2ef-689c-4819-92ff-ec71b1be15c3</Id>
<ParentFolderId>1b5e9faf-40f2-4f23-bfe8-4fa9a80a936e</ParentFolderId>
<Name>GetShippingOptions</Name>
<Description />
<Attributes>CanBeShared</Attributes>
<ReferenceData />
<Created>2019-09-17T10:32:10.3Z</Created>
<StoreFolders />
<Permissions>Full</Permissions>
</StoreFolder>
</StoreFolders>
<Permissions>Full</Permissions>
<WellKnownFolderType>PrintFileInboxFolder</WellKnownFolderType>
</StoreFolder>
<StoreFolder>
<Id>7e8cf8c7-6150-44e9-a1fc-c54862133099</Id>
<ParentFolderId xsi:nil="true" />
<Name>My Library</Name>
<Description>Your Saved Documents and Print Files</Description>
<Attributes>IsRootFolder IsSpecial</Attributes>
<ReferenceData />
<Created>2018-01-16T18:02:50.663Z</Created>
<StorageUserDetails>
<Id>03b83385-0e35-4413-b3fb-c5f5293f1e23</Id>
<FirstName>Test</FirstName>
<LastName>User</LastName>
<Email>dUser@mimeo.com</Email>
</StorageUserDetails>
<StoreFolders>
<StoreFolder>
<Id>e1b66c7c-fa74-4d41-8dac-0d1641950441</Id>
<ParentFolderId>7e8cf8c7-6150-44e9-a1fc-c54862133099</ParentFolderId>
<Name>DocumentRoot</Name>
<Description />
<Attributes>CanBeShared</Attributes>
<ReferenceData />
<Created>2018-06-07T05:50:24.537Z</Created>
<StoreFolders>
<StoreFolder>
<Id>43e3e085-e247-4ff5-addd-45cc41cf343c</Id>
<ParentFolderId>e1b66c7c-fa74-4d41-8dac-0d1641950441</ParentFolderId>
<Name>documents</Name>
<Description />
<Attributes>CanBeShared</Attributes>
<ReferenceData />
<Created>2018-06-07T05:50:56.87Z</Created>
<StoreFolders />
<Permissions>Full</Permissions>
</StoreFolder>
<StoreFolder>
<Id>eb25da4d-9cb9-44ba-97a1-6b3b38397b9a</Id>
<ParentFolderId>e1b66c7c-fa74-4d41-8dac-0d1641950441</ParentFolderId>
<Name>docs</Name>
<Description />
<Attributes>IsPermissioned CanBeShared</Attributes>
<ReferenceData />
<Created>2018-06-07T05:51:04.913Z</Created>
<StoreFolders />
<Permissions>Full</Permissions>
</StoreFolder>
<StoreFolder>
<Id>81ab9542-cd94-438d-b80c-87ecc2e49883</Id>
<ParentFolderId>e1b66c7c-fa74-4d41-8dac-0d1641950441</ParentFolderId>
<Name>testing2019</Name>
<Description />
<Attributes>CanBeShared</Attributes>
<ReferenceData />
<Created>2019-08-12T06:11:32.637Z</Created>
<StoreFolders />
<Permissions>Full</Permissions>
</StoreFolder>
<StoreFolder>
<Id>a3db5212-73a0-46bc-8ace-9ab38304fd70</Id>
<ParentFolderId>e1b66c7c-fa74-4d41-8dac-0d1641950441</ParentFolderId>
<Name>12</Name>
<Description />
<Attributes>CanBeShared</Attributes>
<ReferenceData />
<Created>2019-08-12T06:06:44.323Z</Created>
<StoreFolders>
<StoreFolder>
<Id>8463146b-dae1-4389-b4e9-3f76f545c02f</Id>
<ParentFolderId>a3db5212-73a0-46bc-8ace-9ab38304fd70</ParentFolderId>
<Name>09</Name>
<Description />
<Attributes>CanBeShared</Attributes>
<ReferenceData />
<Created>2019-08-12T07:59:42.167Z</Created>
<StoreFolders>
<StoreFolder>
<Id>11eed2a2-41cd-447c-a001-6d1245686b00</Id>
<ParentFolderId>8463146b-dae1-4389-b4e9-3f76f545c02f</ParentFolderId>
<Name>2019</Name>
<Description />
<Attributes>CanBeShared</Attributes>
<ReferenceData />
<Created>2019-08-12T07:59:42.273Z</Created>
<StoreFolders />
<Permissions>Full</Permissions>
</StoreFolder>
</StoreFolders>
<Permissions>Full</Permissions>
</StoreFolder>
<StoreFolder>
<Id>828fff1b-9f84-45f4-bf36-8d7466f115fc</Id>
<ParentFolderId>a3db5212-73a0-46bc-8ace-9ab38304fd70</ParentFolderId>
<Name>08</Name>
<Description />
<Attributes>CanBeShared</Attributes>
<ReferenceData />
<Created>2019-08-12T06:06:52.503Z</Created>
<StoreFolders>
<StoreFolder>
<Id>e5cf1305-17ee-4790-8728-d67a9852547b</Id>
<ParentFolderId>828fff1b-9f84-45f4-bf36-8d7466f115fc</ParentFolderId>
<Name>2019</Name>
<Description />
<Attributes>CanBeShared</Attributes>
<ReferenceData />
<Created>2019-08-12T06:07:07.73Z</Created>
<StoreFolders />
<Permissions>Full</Permissions>
</StoreFolder>
</StoreFolders>
<Permissions>Full</Permissions>
</StoreFolder>
</StoreFolders>
<Permissions>Full</Permissions>
</StoreFolder>
<StoreFolder>
<Id>d3cfaaed-6357-43e9-863f-b094f85d829a</Id>
<ParentFolderId>e1b66c7c-fa74-4d41-8dac-0d1641950441</ParentFolderId>
<Name>Test2017</Name>
<Description />
<Attributes>CanBeShared</Attributes>
<ReferenceData />
<Created>2018-06-07T19:52:02.663Z</Created>
<StoreFolders />
<Permissions>Full</Permissions>
</StoreFolder>
<StoreFolder>
<Id>634622a2-e682-47b1-981f-bb5f13dbf16c</Id>
<ParentFolderId>e1b66c7c-fa74-4d41-8dac-0d1641950441</ParentFolderId>
<Name>SwarupFile</Name>
<Description />
<Attributes>CanBeShared</Attributes>
<ReferenceData />
<Created>2019-09-25T12:18:27.187Z</Created>
<StoreFolders />
<Permissions>Full</Permissions>
</StoreFolder>
<StoreFolder>
<Id>1dc300fc-34a8-45b3-894e-c74ad80e8324</Id>
<ParentFolderId>e1b66c7c-fa74-4d41-8dac-0d1641950441</ParentFolderId>
<Name>TestDny</Name>
<Description />
<Attributes>CanBeShared</Attributes>
<ReferenceData />
<Created>2019-09-15T09:24:00.94Z</Created>
<StoreFolders />
<Permissions>Full</Permissions>
</StoreFolder>
<StoreFolder>
<Id>66043d12-99fe-453c-8796-e02e97a3f3fc</Id>
<ParentFolderId>e1b66c7c-fa74-4d41-8dac-0d1641950441</ParentFolderId>
<Name>test2018</Name>
<Description />
<Attributes>CanBeShared</Attributes>
<ReferenceData />
<Created>2019-09-10T08:25:22.36Z</Created>
<StoreFolders />
<Permissions>Full</Permissions>
</StoreFolder>
<StoreFolder>
<Id>1db1b139-8399-4be0-9bc7-f1f2de586c47</Id>
<ParentFolderId>e1b66c7c-fa74-4d41-8dac-0d1641950441</ParentFolderId>
<Name>Test2019</Name>
<Description />
<Attributes>CanBeShared</Attributes>
<ReferenceData />
<Created>2019-07-05T09:01:01.373Z</Created>
<StoreFolders />
<Permissions>Full</Permissions>
</StoreFolder>
</StoreFolders>
<Permissions>Full</Permissions>
</StoreFolder>
<StoreFolder>
<Id>42e2ecf2-aa95-4f96-8407-74eb469e7181</Id>
<ParentFolderId>7e8cf8c7-6150-44e9-a1fc-c54862133099</ParentFolderId>
<Name>Templates</Name>
<Description />
<Attributes>CanBeShared</Attributes>
<ReferenceData>t</ReferenceData>
<Created>2019-07-01T11:05:27.613Z</Created>
<StoreFolders>
<StoreFolder>
<Id>3f313846-5495-46f9-9c41-48a75af260eb</Id>
<ParentFolderId>42e2ecf2-aa95-4f96-8407-74eb469e7181</ParentFolderId>
<Name>Template1</Name>
<Description />
<Attributes>CanBeShared</Attributes>
<ReferenceData />
<Created>2019-07-01T11:05:44.42Z</Created>
<StoreFolders />
<Permissions>Full</Permissions>
</StoreFolder>
</StoreFolders>
<Permissions>Full</Permissions>
</StoreFolder>
<StoreFolder>
<Id>a4560222-b8d3-48d5-8f28-adb2608da378</Id>
<ParentFolderId>7e8cf8c7-6150-44e9-a1fc-c54862133099</ParentFolderId>
<Name>TestingAPI</Name>
<Description />
<Attributes>CanBeShared</Attributes>
<ReferenceData />
<Created>2018-06-04T11:07:53.82Z</Created>
<StoreFolders />
<Permissions>Full</Permissions>
</StoreFolder>
<StoreFolder>
<Id>cdd5fa23-1ea0-4e9f-a120-b8dafde636e3</Id>
<ParentFolderId>7e8cf8c7-6150-44e9-a1fc-c54862133099</ParentFolderId>
<Name>TestMoveFolder</Name>
<Description />
<Attributes>CanBeShared</Attributes>
<ReferenceData />
<Created>2018-06-05T10:22:02.363Z</Created>
<StoreFolders>
<StoreFolder>
<Id>b11687a9-e6fe-4a16-96c7-f9fbacdab005</Id>
<ParentFolderId>cdd5fa23-1ea0-4e9f-a120-b8dafde636e3</ParentFolderId>
<Name>moved</Name>
<Description />
<Attributes>CanBeShared</Attributes>
<ReferenceData />
<Created>2018-06-05T10:21:48.833Z</Created>
<StoreFolders />
<Permissions>Full</Permissions>
</StoreFolder>
</StoreFolders>
<Permissions>Full</Permissions>
</StoreFolder>
</StoreFolders>
<Permissions>Full</Permissions>
<WellKnownFolderType>PersonalStorageRootFolder</WellKnownFolderType>
</StoreFolder>
</StoreFolders>
Code samples
@ECHO OFF
curl -v -X POST "https://print.api.mimeo.com/dir/StorageService/GetTopLevelFolders"
-H "Content-Type: application/json"
-H "Ocp-Apim-Subscription-Key: {subscription key}"
--data-ascii "{body}"
using System;
using System.Net.Http.Headers;
using System.Text;
using System.Net.Http;
using System.Web;
namespace CSHttpClientSample
{
static class Program
{
static void Main()
{
MakeRequest();
Console.WriteLine("Hit ENTER to exit...");
Console.ReadLine();
}
static async void MakeRequest()
{
var client = new HttpClient();
var queryString = HttpUtility.ParseQueryString(string.Empty);
// Request headers
client.DefaultRequestHeaders.Add("Ocp-Apim-Subscription-Key", "{subscription key}");
var uri = "https://print.api.mimeo.com/dir/StorageService/GetTopLevelFolders?" + queryString;
HttpResponseMessage response;
// Request body
byte[] byteData = Encoding.UTF8.GetBytes("{body}");
using (var content = new ByteArrayContent(byteData))
{
content.Headers.ContentType = new MediaTypeHeaderValue("< your content type, i.e. application/json >");
response = await client.PostAsync(uri, content);
}
}
}
}
// // This sample uses the Apache HTTP client from HTTP Components (http://hc.apache.org/httpcomponents-client-ga/)
import java.net.URI;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.utils.URIBuilder;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils;
public class JavaSample
{
public static void main(String[] args)
{
HttpClient httpclient = HttpClients.createDefault();
try
{
URIBuilder builder = new URIBuilder("https://print.api.mimeo.com/dir/StorageService/GetTopLevelFolders");
URI uri = builder.build();
HttpPost request = new HttpPost(uri);
request.setHeader("Content-Type", "application/json");
request.setHeader("Ocp-Apim-Subscription-Key", "{subscription key}");
// Request body
StringEntity reqEntity = new StringEntity("{body}");
request.setEntity(reqEntity);
HttpResponse response = httpclient.execute(request);
HttpEntity entity = response.getEntity();
if (entity != null)
{
System.out.println(EntityUtils.toString(entity));
}
}
catch (Exception e)
{
System.out.println(e.getMessage());
}
}
}
<!DOCTYPE html>
<html>
<head>
<title>JSSample</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
</head>
<body>
<script type="text/javascript">
$(function() {
var params = {
// Request parameters
};
$.ajax({
url: "https://print.api.mimeo.com/dir/StorageService/GetTopLevelFolders?" + $.param(params),
beforeSend: function(xhrObj){
// Request headers
xhrObj.setRequestHeader("Content-Type","application/json");
xhrObj.setRequestHeader("Ocp-Apim-Subscription-Key","{subscription key}");
},
type: "POST",
// Request body
data: "{body}",
})
.done(function(data) {
alert("success");
})
.fail(function() {
alert("error");
});
});
</script>
</body>
</html>
#import <Foundation/Foundation.h>
int main(int argc, const char * argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
NSString* path = @"https://print.api.mimeo.com/dir/StorageService/GetTopLevelFolders";
NSArray* array = @[
// Request parameters
@"entities=true",
];
NSString* string = [array componentsJoinedByString:@"&"];
path = [path stringByAppendingFormat:@"?%@", string];
NSLog(@"%@", path);
NSMutableURLRequest* _request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:path]];
[_request setHTTPMethod:@"POST"];
// Request headers
[_request setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
[_request setValue:@"{subscription key}" forHTTPHeaderField:@"Ocp-Apim-Subscription-Key"];
// Request body
[_request setHTTPBody:[@"{body}" dataUsingEncoding:NSUTF8StringEncoding]];
NSURLResponse *response = nil;
NSError *error = nil;
NSData* _connectionData = [NSURLConnection sendSynchronousRequest:_request returningResponse:&response error:&error];
if (nil != error)
{
NSLog(@"Error: %@", error);
}
else
{
NSError* error = nil;
NSMutableDictionary* json = nil;
NSString* dataString = [[NSString alloc] initWithData:_connectionData encoding:NSUTF8StringEncoding];
NSLog(@"%@", dataString);
if (nil != _connectionData)
{
json = [NSJSONSerialization JSONObjectWithData:_connectionData options:NSJSONReadingMutableContainers error:&error];
}
if (error || !json)
{
NSLog(@"Could not parse loaded json with error:%@", error);
}
NSLog(@"%@", json);
_connectionData = nil;
}
[pool drain];
return 0;
}
<?php
// This sample uses the Apache HTTP client from HTTP Components (http://hc.apache.org/httpcomponents-client-ga/)
require_once 'HTTP/Request2.php';
$request = new Http_Request2('https://print.api.mimeo.com/dir/StorageService/GetTopLevelFolders');
$url = $request->getUrl();
$headers = array(
// Request headers
'Content-Type' => 'application/json',
'Ocp-Apim-Subscription-Key' => '{subscription key}',
);
$request->setHeader($headers);
$parameters = array(
// Request parameters
);
$url->setQueryVariables($parameters);
$request->setMethod(HTTP_Request2::METHOD_POST);
// Request body
$request->setBody("{body}");
try
{
$response = $request->send();
echo $response->getBody();
}
catch (HttpException $ex)
{
echo $ex;
}
?>
########### Python 2.7 #############
import httplib, urllib, base64
headers = {
# Request headers
'Content-Type': 'application/json',
'Ocp-Apim-Subscription-Key': '{subscription key}',
}
params = urllib.urlencode({
})
try:
conn = httplib.HTTPSConnection('print.api.mimeo.com')
conn.request("POST", "/dir/StorageService/GetTopLevelFolders?%s" % params, "{body}", headers)
response = conn.getresponse()
data = response.read()
print(data)
conn.close()
except Exception as e:
print("[Errno {0}] {1}".format(e.errno, e.strerror))
####################################
########### Python 3.2 #############
import http.client, urllib.request, urllib.parse, urllib.error, base64
headers = {
# Request headers
'Content-Type': 'application/json',
'Ocp-Apim-Subscription-Key': '{subscription key}',
}
params = urllib.parse.urlencode({
})
try:
conn = http.client.HTTPSConnection('print.api.mimeo.com')
conn.request("POST", "/dir/StorageService/GetTopLevelFolders?%s" % params, "{body}", headers)
response = conn.getresponse()
data = response.read()
print(data)
conn.close()
except Exception as e:
print("[Errno {0}] {1}".format(e.errno, e.strerror))
####################################
require 'net/http'
uri = URI('https://print.api.mimeo.com/dir/StorageService/GetTopLevelFolders')
request = Net::HTTP::Post.new(uri.request_uri)
# Request headers
request['Content-Type'] = 'application/json'
# Request headers
request['Ocp-Apim-Subscription-Key'] = '{subscription key}'
# Request body
request.body = "{body}"
response = Net::HTTP.start(uri.host, uri.port, :use_ssl => uri.scheme == 'https') do |http|
http.request(request)
end
puts response.body