File and Folder Service

API change history

Get subfolders

Get subfolders

Try it

Request

Request URL

Request headers

  • (optional)
    string
    Media type of the body sent to the API.
  • string
    Subscription key which provides access to this API. Found in your Profile.

Request body

Get folder request

{
  "FolderId": "00000000-0000-0000-0000-000000000000",
  "WellKnownFolder": 0,
  "LevelOfDetail": 0
}
<GetFolderRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <FolderId>9fd582fb-7a8b-4f3e-93aa-60c05a8181cd</FolderId>
    <WellKnownFolder>PrintFileInboxFolder</WellKnownFolder>
    <LevelOfDetail>All</LevelOfDetail>
</GetFolderRequest>

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-06-21T10:59:32.712Z",
  "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>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>
        <StorageUserDetails>
            <Id>03b83385-0e35-4413-b3fb-c5f5293f1e23</Id>
            <FirstName>Test</FirstName>
            <LastName>User</LastName>
            <Email>dUser@mimeo.com</Email>
        </StorageUserDetails>
        <StoreFolders />
        <Permissions>Owner</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>
        <StorageUserDetails>
            <Id>03b83385-0e35-4413-b3fb-c5f5293f1e23</Id>
            <FirstName>Test</FirstName>
            <LastName>User</LastName>
            <Email>dUser@mimeo.com</Email>
        </StorageUserDetails>
        <StoreFolders />
        <Permissions>Owner</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>
        <StorageUserDetails>
            <Id>03b83385-0e35-4413-b3fb-c5f5293f1e23</Id>
            <FirstName>Test</FirstName>
            <LastName>User</LastName>
            <Email>dUser@mimeo.com</Email>
        </StorageUserDetails>
        <StoreFolders />
        <Permissions>Owner</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>
        <StorageUserDetails>
            <Id>03b83385-0e35-4413-b3fb-c5f5293f1e23</Id>
            <FirstName>Test</FirstName>
            <LastName>User</LastName>
            <Email>dUser@mimeo.com</Email>
        </StorageUserDetails>
        <StoreFolders />
        <Permissions>Owner</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>
        <StorageUserDetails>
            <Id>03b83385-0e35-4413-b3fb-c5f5293f1e23</Id>
            <FirstName>Test</FirstName>
            <LastName>User</LastName>
            <Email>dUser@mimeo.com</Email>
        </StorageUserDetails>
        <StoreFolders />
        <Permissions>Owner</Permissions>
    </StoreFolder>
    <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>
        <StorageUserDetails>
            <Id>03b83385-0e35-4413-b3fb-c5f5293f1e23</Id>
            <FirstName>Test</FirstName>
            <LastName>User</LastName>
            <Email>dUser@mimeo.com</Email>
        </StorageUserDetails>
        <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>Owner</Permissions>
                            </StoreFolder>
                        </StoreFolders>
                        <Permissions>Owner</Permissions>
                    </StoreFolder>
                </StoreFolders>
                <Permissions>Owner</Permissions>
            </StoreFolder>
        </StoreFolders>
        <Permissions>Owner</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>
        <StorageUserDetails>
            <Id>03b83385-0e35-4413-b3fb-c5f5293f1e23</Id>
            <FirstName>Test</FirstName>
            <LastName>User</LastName>
            <Email>dUser@mimeo.com</Email>
        </StorageUserDetails>
        <StoreFolders />
        <Permissions>Owner</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>
        <StorageUserDetails>
            <Id>03b83385-0e35-4413-b3fb-c5f5293f1e23</Id>
            <FirstName>Test</FirstName>
            <LastName>User</LastName>
            <Email>dUser@mimeo.com</Email>
        </StorageUserDetails>
        <StoreFolders />
        <Permissions>Owner</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>
        <StorageUserDetails>
            <Id>03b83385-0e35-4413-b3fb-c5f5293f1e23</Id>
            <FirstName>Test</FirstName>
            <LastName>User</LastName>
            <Email>dUser@mimeo.com</Email>
        </StorageUserDetails>
        <StoreFolders />
        <Permissions>Owner</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>
        <StorageUserDetails>
            <Id>03b83385-0e35-4413-b3fb-c5f5293f1e23</Id>
            <FirstName>Test</FirstName>
            <LastName>User</LastName>
            <Email>dUser@mimeo.com</Email>
        </StorageUserDetails>
        <StoreFolders />
        <Permissions>Owner</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>
        <StorageUserDetails>
            <Id>03b83385-0e35-4413-b3fb-c5f5293f1e23</Id>
            <FirstName>Test</FirstName>
            <LastName>User</LastName>
            <Email>dUser@mimeo.com</Email>
        </StorageUserDetails>
        <StoreFolders />
        <Permissions>Owner</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>
        <StorageUserDetails>
            <Id>03b83385-0e35-4413-b3fb-c5f5293f1e23</Id>
            <FirstName>Test</FirstName>
            <LastName>User</LastName>
            <Email>dUser@mimeo.com</Email>
        </StorageUserDetails>
        <StoreFolders />
        <Permissions>Owner</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>
        <StorageUserDetails>
            <Id>03b83385-0e35-4413-b3fb-c5f5293f1e23</Id>
            <FirstName>Test</FirstName>
            <LastName>User</LastName>
            <Email>dUser@mimeo.com</Email>
        </StorageUserDetails>
        <StoreFolders />
        <Permissions>Owner</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>
        <StorageUserDetails>
            <Id>03b83385-0e35-4413-b3fb-c5f5293f1e23</Id>
            <FirstName>Test</FirstName>
            <LastName>User</LastName>
            <Email>dUser@mimeo.com</Email>
        </StorageUserDetails>
        <StoreFolders />
        <Permissions>Owner</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>
        <StorageUserDetails>
            <Id>03b83385-0e35-4413-b3fb-c5f5293f1e23</Id>
            <FirstName>Test</FirstName>
            <LastName>User</LastName>
            <Email>dUser@mimeo.com</Email>
        </StorageUserDetails>
        <StoreFolders />
        <Permissions>Owner</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>
        <StorageUserDetails>
            <Id>03b83385-0e35-4413-b3fb-c5f5293f1e23</Id>
            <FirstName>Test</FirstName>
            <LastName>User</LastName>
            <Email>dUser@mimeo.com</Email>
        </StorageUserDetails>
        <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>Owner</Permissions>
            </StoreFolder>
        </StoreFolders>
        <Permissions>Owner</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>
        <StorageUserDetails>
            <Id>03b83385-0e35-4413-b3fb-c5f5293f1e23</Id>
            <FirstName>Test</FirstName>
            <LastName>User</LastName>
            <Email>dUser@mimeo.com</Email>
        </StorageUserDetails>
        <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>Owner</Permissions>
            </StoreFolder>
        </StoreFolders>
        <Permissions>Owner</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>
        <StorageUserDetails>
            <Id>03b83385-0e35-4413-b3fb-c5f5293f1e23</Id>
            <FirstName>Test</FirstName>
            <LastName>User</LastName>
            <Email>dUser@mimeo.com</Email>
        </StorageUserDetails>
        <StoreFolders />
        <Permissions>Owner</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>
        <StorageUserDetails>
            <Id>03b83385-0e35-4413-b3fb-c5f5293f1e23</Id>
            <FirstName>Test</FirstName>
            <LastName>User</LastName>
            <Email>dUser@mimeo.com</Email>
        </StorageUserDetails>
        <StoreFolders />
        <Permissions>Owner</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>
        <StorageUserDetails>
            <Id>03b83385-0e35-4413-b3fb-c5f5293f1e23</Id>
            <FirstName>Test</FirstName>
            <LastName>User</LastName>
            <Email>dUser@mimeo.com</Email>
        </StorageUserDetails>
        <StoreFolders />
        <Permissions>Owner</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>
        <StorageUserDetails>
            <Id>03b83385-0e35-4413-b3fb-c5f5293f1e23</Id>
            <FirstName>Test</FirstName>
            <LastName>User</LastName>
            <Email>dUser@mimeo.com</Email>
        </StorageUserDetails>
        <StoreFolders />
        <Permissions>Owner</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>
        <StorageUserDetails>
            <Id>03b83385-0e35-4413-b3fb-c5f5293f1e23</Id>
            <FirstName>Test</FirstName>
            <LastName>User</LastName>
            <Email>dUser@mimeo.com</Email>
        </StorageUserDetails>
        <StoreFolders />
        <Permissions>Owner</Permissions>
    </StoreFolder>
</StoreFolders>

Code samples

@ECHO OFF

curl -v -X POST "https://print.api.sandbox.mimeo.com/dir/StorageService/GetFolderSubFolders"
-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.sandbox.mimeo.com/dir/StorageService/GetFolderSubFolders?" + 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.sandbox.mimeo.com/dir/StorageService/GetFolderSubFolders");


            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.sandbox.mimeo.com/dir/StorageService/GetFolderSubFolders?" + $.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.sandbox.mimeo.com/dir/StorageService/GetFolderSubFolders";
    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.sandbox.mimeo.com/dir/StorageService/GetFolderSubFolders');
$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.sandbox.mimeo.com')
    conn.request("POST", "/dir/StorageService/GetFolderSubFolders?%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.sandbox.mimeo.com')
    conn.request("POST", "/dir/StorageService/GetFolderSubFolders?%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.sandbox.mimeo.com/dir/StorageService/GetFolderSubFolders')


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