Premiumize.me

Account

accountInfo

get account info


/account/info

Usage and SDK Samples

curl -X POST "https://www.premiumize.me/api/account/info"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AccountApi;

import java.io.File;
import java.util.*;

public class AccountApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: customer_id
        ApiKeyAuth customer_id = (ApiKeyAuth) defaultClient.getAuthentication("customer_id");
        customer_id.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //customer_id.setApiKeyPrefix("Token");

        // Configure API key authorization: pin
        ApiKeyAuth pin = (ApiKeyAuth) defaultClient.getAuthentication("pin");
        pin.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //pin.setApiKeyPrefix("Token");

        AccountApi apiInstance = new AccountApi();
        try {
            inline_response_200_5 result = apiInstance.accountInfo();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountApi#accountInfo");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AccountApi;

public class AccountApiExample {

    public static void main(String[] args) {
        AccountApi apiInstance = new AccountApi();
        try {
            inline_response_200_5 result = apiInstance.accountInfo();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountApi#accountInfo");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: customer_id)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"customer_id"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"customer_id"];

// Configure API key authorization: (authentication scheme: pin)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"pin"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"pin"];


AccountApi *apiInstance = [[AccountApi alloc] init];

// get account info
[apiInstance accountInfoWithCompletionHandler: 
              ^(inline_response_200_5 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Premiumizeme = require('premiumizeme');
var defaultClient = Premiumizeme.ApiClient.instance;

// Configure API key authorization: customer_id
var customer_id = defaultClient.authentications['customer_id'];
customer_id.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//customer_id.apiKeyPrefix['customer_id'] = "Token"

// Configure API key authorization: pin
var pin = defaultClient.authentications['pin'];
pin.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//pin.apiKeyPrefix['pin'] = "Token"

var api = new Premiumizeme.AccountApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.accountInfo(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class accountInfoExample
    {
        public void main()
        {
            
            // Configure API key authorization: customer_id
            Configuration.Default.ApiKey.Add("customer_id", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("customer_id", "Bearer");
            // Configure API key authorization: pin
            Configuration.Default.ApiKey.Add("pin", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("pin", "Bearer");

            var apiInstance = new AccountApi();

            try
            {
                // get account info
                inline_response_200_5 result = apiInstance.accountInfo();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AccountApi.accountInfo: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: customer_id
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('customer_id', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('customer_id', 'Bearer');
// Configure API key authorization: pin
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('pin', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('pin', 'Bearer');

$api_instance = new Swagger\Client\Api\AccountApi();

try {
    $result = $api_instance->accountInfo();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AccountApi->accountInfo: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AccountApi;

# Configure API key authorization: customer_id
$WWW::SwaggerClient::Configuration::api_key->{'customer_id'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'customer_id'} = "Bearer";
# Configure API key authorization: pin
$WWW::SwaggerClient::Configuration::api_key->{'pin'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'pin'} = "Bearer";

my $api_instance = WWW::SwaggerClient::AccountApi->new();

eval { 
    my $result = $api_instance->accountInfo();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountApi->accountInfo: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: customer_id
swagger_client.configuration.api_key['customer_id'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['customer_id'] = 'Bearer'
# Configure API key authorization: pin
swagger_client.configuration.api_key['pin'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['pin'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.AccountApi()

try: 
    # get account info
    api_response = api_instance.account_info()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountApi->accountInfo: %s\n" % e)

Parameters

Responses

Status: 200 - successful operation


Folder

folderCreate

Create a new folder

Operations on transfers


/folder/create

Usage and SDK Samples

curl -X POST "https://www.premiumize.me/api/folder/create"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.FolderApi;

import java.io.File;
import java.util.*;

public class FolderApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: customer_id
        ApiKeyAuth customer_id = (ApiKeyAuth) defaultClient.getAuthentication("customer_id");
        customer_id.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //customer_id.setApiKeyPrefix("Token");

        // Configure API key authorization: pin
        ApiKeyAuth pin = (ApiKeyAuth) defaultClient.getAuthentication("pin");
        pin.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //pin.setApiKeyPrefix("Token");

        FolderApi apiInstance = new FolderApi();
        String name = name_example; // String | Name of the folder to be created
        String parentId = parentId_example; // String | Id of the parent folder
        try {
            inline_response_200_1 result = apiInstance.folderCreate(name, parentId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FolderApi#folderCreate");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.FolderApi;

public class FolderApiExample {

    public static void main(String[] args) {
        FolderApi apiInstance = new FolderApi();
        String name = name_example; // String | Name of the folder to be created
        String parentId = parentId_example; // String | Id of the parent folder
        try {
            inline_response_200_1 result = apiInstance.folderCreate(name, parentId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FolderApi#folderCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: customer_id)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"customer_id"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"customer_id"];

// Configure API key authorization: (authentication scheme: pin)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"pin"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"pin"];

String *name = name_example; // Name of the folder to be created
String *parentId = parentId_example; // Id of the parent folder (optional)

FolderApi *apiInstance = [[FolderApi alloc] init];

// Create a new folder
[apiInstance folderCreateWith:name
    parentId:parentId
              completionHandler: ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Premiumizeme = require('premiumizeme');
var defaultClient = Premiumizeme.ApiClient.instance;

// Configure API key authorization: customer_id
var customer_id = defaultClient.authentications['customer_id'];
customer_id.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//customer_id.apiKeyPrefix['customer_id'] = "Token"

// Configure API key authorization: pin
var pin = defaultClient.authentications['pin'];
pin.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//pin.apiKeyPrefix['pin'] = "Token"

var api = new Premiumizeme.FolderApi()

var name = name_example; // {String} Name of the folder to be created

var opts = { 
  'parentId': parentId_example // {String} Id of the parent folder
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.folderCreate(name, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class folderCreateExample
    {
        public void main()
        {
            
            // Configure API key authorization: customer_id
            Configuration.Default.ApiKey.Add("customer_id", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("customer_id", "Bearer");
            // Configure API key authorization: pin
            Configuration.Default.ApiKey.Add("pin", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("pin", "Bearer");

            var apiInstance = new FolderApi();
            var name = name_example;  // String | Name of the folder to be created
            var parentId = parentId_example;  // String | Id of the parent folder (optional) 

            try
            {
                // Create a new folder
                inline_response_200_1 result = apiInstance.folderCreate(name, parentId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling FolderApi.folderCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: customer_id
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('customer_id', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('customer_id', 'Bearer');
// Configure API key authorization: pin
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('pin', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('pin', 'Bearer');

$api_instance = new Swagger\Client\Api\FolderApi();
$name = name_example; // String | Name of the folder to be created
$parentId = parentId_example; // String | Id of the parent folder

try {
    $result = $api_instance->folderCreate($name, $parentId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling FolderApi->folderCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::FolderApi;

# Configure API key authorization: customer_id
$WWW::SwaggerClient::Configuration::api_key->{'customer_id'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'customer_id'} = "Bearer";
# Configure API key authorization: pin
$WWW::SwaggerClient::Configuration::api_key->{'pin'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'pin'} = "Bearer";

my $api_instance = WWW::SwaggerClient::FolderApi->new();
my $name = name_example; # String | Name of the folder to be created
my $parentId = parentId_example; # String | Id of the parent folder

eval { 
    my $result = $api_instance->folderCreate(name => $name, parentId => $parentId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling FolderApi->folderCreate: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: customer_id
swagger_client.configuration.api_key['customer_id'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['customer_id'] = 'Bearer'
# Configure API key authorization: pin
swagger_client.configuration.api_key['pin'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['pin'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.FolderApi()
name = name_example # String | Name of the folder to be created
parentId = parentId_example # String | Id of the parent folder (optional)

try: 
    # Create a new folder
    api_response = api_instance.folder_create(name, parentId=parentId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling FolderApi->folderCreate: %s\n" % e)

Parameters

Form parameters
Name Description
name*
String
Name of the folder to be created
Required
parent_id
String
Id of the parent folder

Responses

Status: 200 - successful operation


folderDelete

Delete a folder


/folder/delete

Usage and SDK Samples

curl -X POST "https://www.premiumize.me/api/folder/delete"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.FolderApi;

import java.io.File;
import java.util.*;

public class FolderApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: customer_id
        ApiKeyAuth customer_id = (ApiKeyAuth) defaultClient.getAuthentication("customer_id");
        customer_id.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //customer_id.setApiKeyPrefix("Token");

        // Configure API key authorization: pin
        ApiKeyAuth pin = (ApiKeyAuth) defaultClient.getAuthentication("pin");
        pin.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //pin.setApiKeyPrefix("Token");

        FolderApi apiInstance = new FolderApi();
        String id = id_example; // String | id of the folder
        try {
            apiresponse result = apiInstance.folderDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FolderApi#folderDelete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.FolderApi;

public class FolderApiExample {

    public static void main(String[] args) {
        FolderApi apiInstance = new FolderApi();
        String id = id_example; // String | id of the folder
        try {
            apiresponse result = apiInstance.folderDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FolderApi#folderDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: customer_id)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"customer_id"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"customer_id"];

// Configure API key authorization: (authentication scheme: pin)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"pin"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"pin"];

String *id = id_example; // id of the folder

FolderApi *apiInstance = [[FolderApi alloc] init];

// Delete a folder
[apiInstance folderDeleteWith:id
              completionHandler: ^(apiresponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Premiumizeme = require('premiumizeme');
var defaultClient = Premiumizeme.ApiClient.instance;

// Configure API key authorization: customer_id
var customer_id = defaultClient.authentications['customer_id'];
customer_id.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//customer_id.apiKeyPrefix['customer_id'] = "Token"

// Configure API key authorization: pin
var pin = defaultClient.authentications['pin'];
pin.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//pin.apiKeyPrefix['pin'] = "Token"

var api = new Premiumizeme.FolderApi()

var id = id_example; // {String} id of the folder


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.folderDelete(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class folderDeleteExample
    {
        public void main()
        {
            
            // Configure API key authorization: customer_id
            Configuration.Default.ApiKey.Add("customer_id", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("customer_id", "Bearer");
            // Configure API key authorization: pin
            Configuration.Default.ApiKey.Add("pin", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("pin", "Bearer");

            var apiInstance = new FolderApi();
            var id = id_example;  // String | id of the folder

            try
            {
                // Delete a folder
                apiresponse result = apiInstance.folderDelete(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling FolderApi.folderDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: customer_id
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('customer_id', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('customer_id', 'Bearer');
// Configure API key authorization: pin
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('pin', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('pin', 'Bearer');

$api_instance = new Swagger\Client\Api\FolderApi();
$id = id_example; // String | id of the folder

try {
    $result = $api_instance->folderDelete($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling FolderApi->folderDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::FolderApi;

# Configure API key authorization: customer_id
$WWW::SwaggerClient::Configuration::api_key->{'customer_id'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'customer_id'} = "Bearer";
# Configure API key authorization: pin
$WWW::SwaggerClient::Configuration::api_key->{'pin'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'pin'} = "Bearer";

my $api_instance = WWW::SwaggerClient::FolderApi->new();
my $id = id_example; # String | id of the folder

eval { 
    my $result = $api_instance->folderDelete(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling FolderApi->folderDelete: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: customer_id
swagger_client.configuration.api_key['customer_id'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['customer_id'] = 'Bearer'
# Configure API key authorization: pin
swagger_client.configuration.api_key['pin'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['pin'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.FolderApi()
id = id_example # String | id of the folder

try: 
    # Delete a folder
    api_response = api_instance.folder_delete(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling FolderApi->folderDelete: %s\n" % e)

Parameters

Form parameters
Name Description
id*
String
id of the folder
Required

Responses

Status: 200 - successful operation


folderList

List a folder


/folder/list

Usage and SDK Samples

curl -X GET "https://www.premiumize.me/api/folder/list?id=&includebreadcrumbs="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.FolderApi;

import java.io.File;
import java.util.*;

public class FolderApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: customer_id
        ApiKeyAuth customer_id = (ApiKeyAuth) defaultClient.getAuthentication("customer_id");
        customer_id.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //customer_id.setApiKeyPrefix("Token");

        // Configure API key authorization: pin
        ApiKeyAuth pin = (ApiKeyAuth) defaultClient.getAuthentication("pin");
        pin.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //pin.setApiKeyPrefix("Token");

        FolderApi apiInstance = new FolderApi();
        String id = id_example; // String | Id of the folder to be listed
        Boolean includebreadcrumbs = true; // Boolean | Breadcrumbs of the folder to be listed
        try {
            inline_response_200 result = apiInstance.folderList(id, includebreadcrumbs);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FolderApi#folderList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.FolderApi;

public class FolderApiExample {

    public static void main(String[] args) {
        FolderApi apiInstance = new FolderApi();
        String id = id_example; // String | Id of the folder to be listed
        Boolean includebreadcrumbs = true; // Boolean | Breadcrumbs of the folder to be listed
        try {
            inline_response_200 result = apiInstance.folderList(id, includebreadcrumbs);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FolderApi#folderList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: customer_id)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"customer_id"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"customer_id"];

// Configure API key authorization: (authentication scheme: pin)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"pin"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"pin"];

String *id = id_example; // Id of the folder to be listed (optional)
Boolean *includebreadcrumbs = true; // Breadcrumbs of the folder to be listed (optional)

FolderApi *apiInstance = [[FolderApi alloc] init];

// List a folder
[apiInstance folderListWith:id
    includebreadcrumbs:includebreadcrumbs
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Premiumizeme = require('premiumizeme');
var defaultClient = Premiumizeme.ApiClient.instance;

// Configure API key authorization: customer_id
var customer_id = defaultClient.authentications['customer_id'];
customer_id.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//customer_id.apiKeyPrefix['customer_id'] = "Token"

// Configure API key authorization: pin
var pin = defaultClient.authentications['pin'];
pin.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//pin.apiKeyPrefix['pin'] = "Token"

var api = new Premiumizeme.FolderApi()

var opts = { 
  'id': id_example, // {String} Id of the folder to be listed
  'includebreadcrumbs': true // {Boolean} Breadcrumbs of the folder to be listed
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.folderList(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class folderListExample
    {
        public void main()
        {
            
            // Configure API key authorization: customer_id
            Configuration.Default.ApiKey.Add("customer_id", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("customer_id", "Bearer");
            // Configure API key authorization: pin
            Configuration.Default.ApiKey.Add("pin", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("pin", "Bearer");

            var apiInstance = new FolderApi();
            var id = id_example;  // String | Id of the folder to be listed (optional) 
            var includebreadcrumbs = true;  // Boolean | Breadcrumbs of the folder to be listed (optional) 

            try
            {
                // List a folder
                inline_response_200 result = apiInstance.folderList(id, includebreadcrumbs);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling FolderApi.folderList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: customer_id
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('customer_id', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('customer_id', 'Bearer');
// Configure API key authorization: pin
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('pin', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('pin', 'Bearer');

$api_instance = new Swagger\Client\Api\FolderApi();
$id = id_example; // String | Id of the folder to be listed
$includebreadcrumbs = true; // Boolean | Breadcrumbs of the folder to be listed

try {
    $result = $api_instance->folderList($id, $includebreadcrumbs);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling FolderApi->folderList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::FolderApi;

# Configure API key authorization: customer_id
$WWW::SwaggerClient::Configuration::api_key->{'customer_id'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'customer_id'} = "Bearer";
# Configure API key authorization: pin
$WWW::SwaggerClient::Configuration::api_key->{'pin'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'pin'} = "Bearer";

my $api_instance = WWW::SwaggerClient::FolderApi->new();
my $id = id_example; # String | Id of the folder to be listed
my $includebreadcrumbs = true; # Boolean | Breadcrumbs of the folder to be listed

eval { 
    my $result = $api_instance->folderList(id => $id, includebreadcrumbs => $includebreadcrumbs);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling FolderApi->folderList: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: customer_id
swagger_client.configuration.api_key['customer_id'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['customer_id'] = 'Bearer'
# Configure API key authorization: pin
swagger_client.configuration.api_key['pin'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['pin'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.FolderApi()
id = id_example # String | Id of the folder to be listed (optional)
includebreadcrumbs = true # Boolean | Breadcrumbs of the folder to be listed (optional)

try: 
    # List a folder
    api_response = api_instance.folder_list(id=id, includebreadcrumbs=includebreadcrumbs)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling FolderApi->folderList: %s\n" % e)

Parameters

Query parameters
Name Description
id
String
Id of the folder to be listed
includebreadcrumbs
Boolean
Breadcrumbs of the folder to be listed

Responses

Status: 200 - successful operation


folderPaste

paste an item into a folder


/folder/paste

Usage and SDK Samples

curl -X POST "https://www.premiumize.me/api/folder/paste"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.FolderApi;

import java.io.File;
import java.util.*;

public class FolderApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: customer_id
        ApiKeyAuth customer_id = (ApiKeyAuth) defaultClient.getAuthentication("customer_id");
        customer_id.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //customer_id.setApiKeyPrefix("Token");

        // Configure API key authorization: pin
        ApiKeyAuth pin = (ApiKeyAuth) defaultClient.getAuthentication("pin");
        pin.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //pin.setApiKeyPrefix("Token");

        FolderApi apiInstance = new FolderApi();
        String targetId = targetId_example; // String | id of the folder to paste into
        array[String] files = ; // array[String] | items to add to the zip
        array[String] folders = ; // array[String] | folders to add to the zip
        try {
            apiresponse result = apiInstance.folderPaste(targetId, files, folders);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FolderApi#folderPaste");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.FolderApi;

public class FolderApiExample {

    public static void main(String[] args) {
        FolderApi apiInstance = new FolderApi();
        String targetId = targetId_example; // String | id of the folder to paste into
        array[String] files = ; // array[String] | items to add to the zip
        array[String] folders = ; // array[String] | folders to add to the zip
        try {
            apiresponse result = apiInstance.folderPaste(targetId, files, folders);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FolderApi#folderPaste");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: customer_id)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"customer_id"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"customer_id"];

// Configure API key authorization: (authentication scheme: pin)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"pin"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"pin"];

String *targetId = targetId_example; // id of the folder to paste into
array[String] *files = ; // items to add to the zip (optional)
array[String] *folders = ; // folders to add to the zip (optional)

FolderApi *apiInstance = [[FolderApi alloc] init];

// paste an item into a folder
[apiInstance folderPasteWith:targetId
    files:files
    folders:folders
              completionHandler: ^(apiresponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Premiumizeme = require('premiumizeme');
var defaultClient = Premiumizeme.ApiClient.instance;

// Configure API key authorization: customer_id
var customer_id = defaultClient.authentications['customer_id'];
customer_id.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//customer_id.apiKeyPrefix['customer_id'] = "Token"

// Configure API key authorization: pin
var pin = defaultClient.authentications['pin'];
pin.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//pin.apiKeyPrefix['pin'] = "Token"

var api = new Premiumizeme.FolderApi()

var targetId = targetId_example; // {String} id of the folder to paste into

var opts = { 
  'files': , // {array[String]} items to add to the zip
  'folders':  // {array[String]} folders to add to the zip
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.folderPaste(targetId, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class folderPasteExample
    {
        public void main()
        {
            
            // Configure API key authorization: customer_id
            Configuration.Default.ApiKey.Add("customer_id", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("customer_id", "Bearer");
            // Configure API key authorization: pin
            Configuration.Default.ApiKey.Add("pin", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("pin", "Bearer");

            var apiInstance = new FolderApi();
            var targetId = targetId_example;  // String | id of the folder to paste into
            var files = new array[String](); // array[String] | items to add to the zip (optional) 
            var folders = new array[String](); // array[String] | folders to add to the zip (optional) 

            try
            {
                // paste an item into a folder
                apiresponse result = apiInstance.folderPaste(targetId, files, folders);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling FolderApi.folderPaste: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: customer_id
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('customer_id', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('customer_id', 'Bearer');
// Configure API key authorization: pin
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('pin', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('pin', 'Bearer');

$api_instance = new Swagger\Client\Api\FolderApi();
$targetId = targetId_example; // String | id of the folder to paste into
$files = ; // array[String] | items to add to the zip
$folders = ; // array[String] | folders to add to the zip

try {
    $result = $api_instance->folderPaste($targetId, $files, $folders);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling FolderApi->folderPaste: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::FolderApi;

# Configure API key authorization: customer_id
$WWW::SwaggerClient::Configuration::api_key->{'customer_id'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'customer_id'} = "Bearer";
# Configure API key authorization: pin
$WWW::SwaggerClient::Configuration::api_key->{'pin'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'pin'} = "Bearer";

my $api_instance = WWW::SwaggerClient::FolderApi->new();
my $targetId = targetId_example; # String | id of the folder to paste into
my $files = []; # array[String] | items to add to the zip
my $folders = []; # array[String] | folders to add to the zip

eval { 
    my $result = $api_instance->folderPaste(targetId => $targetId, files => $files, folders => $folders);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling FolderApi->folderPaste: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: customer_id
swagger_client.configuration.api_key['customer_id'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['customer_id'] = 'Bearer'
# Configure API key authorization: pin
swagger_client.configuration.api_key['pin'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['pin'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.FolderApi()
targetId = targetId_example # String | id of the folder to paste into
files =  # array[String] | items to add to the zip (optional)
folders =  # array[String] | folders to add to the zip (optional)

try: 
    # paste an item into a folder
    api_response = api_instance.folder_paste(targetId, files=files, folders=folders)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling FolderApi->folderPaste: %s\n" % e)

Parameters

Form parameters
Name Description
files
array[String]
items to add to the zip
folders
array[String]
folders to add to the zip
target_id*
String
id of the folder to paste into
Required

Responses

Status: 200 - successful operation


folderRename

Rename a folder


/folder/rename

Usage and SDK Samples

curl -X POST "https://www.premiumize.me/api/folder/rename"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.FolderApi;

import java.io.File;
import java.util.*;

public class FolderApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: customer_id
        ApiKeyAuth customer_id = (ApiKeyAuth) defaultClient.getAuthentication("customer_id");
        customer_id.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //customer_id.setApiKeyPrefix("Token");

        // Configure API key authorization: pin
        ApiKeyAuth pin = (ApiKeyAuth) defaultClient.getAuthentication("pin");
        pin.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //pin.setApiKeyPrefix("Token");

        FolderApi apiInstance = new FolderApi();
        String id = id_example; // String | 
        String name = name_example; // String | 
        try {
            apiresponse result = apiInstance.folderRename(id, name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FolderApi#folderRename");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.FolderApi;

public class FolderApiExample {

    public static void main(String[] args) {
        FolderApi apiInstance = new FolderApi();
        String id = id_example; // String | 
        String name = name_example; // String | 
        try {
            apiresponse result = apiInstance.folderRename(id, name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FolderApi#folderRename");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: customer_id)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"customer_id"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"customer_id"];

// Configure API key authorization: (authentication scheme: pin)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"pin"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"pin"];

String *id = id_example; // 
String *name = name_example; // 

FolderApi *apiInstance = [[FolderApi alloc] init];

// Rename a folder
[apiInstance folderRenameWith:id
    name:name
              completionHandler: ^(apiresponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Premiumizeme = require('premiumizeme');
var defaultClient = Premiumizeme.ApiClient.instance;

// Configure API key authorization: customer_id
var customer_id = defaultClient.authentications['customer_id'];
customer_id.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//customer_id.apiKeyPrefix['customer_id'] = "Token"

// Configure API key authorization: pin
var pin = defaultClient.authentications['pin'];
pin.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//pin.apiKeyPrefix['pin'] = "Token"

var api = new Premiumizeme.FolderApi()

var id = id_example; // {String} 

var name = name_example; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.folderRename(id, name, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class folderRenameExample
    {
        public void main()
        {
            
            // Configure API key authorization: customer_id
            Configuration.Default.ApiKey.Add("customer_id", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("customer_id", "Bearer");
            // Configure API key authorization: pin
            Configuration.Default.ApiKey.Add("pin", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("pin", "Bearer");

            var apiInstance = new FolderApi();
            var id = id_example;  // String | 
            var name = name_example;  // String | 

            try
            {
                // Rename a folder
                apiresponse result = apiInstance.folderRename(id, name);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling FolderApi.folderRename: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: customer_id
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('customer_id', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('customer_id', 'Bearer');
// Configure API key authorization: pin
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('pin', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('pin', 'Bearer');

$api_instance = new Swagger\Client\Api\FolderApi();
$id = id_example; // String | 
$name = name_example; // String | 

try {
    $result = $api_instance->folderRename($id, $name);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling FolderApi->folderRename: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::FolderApi;

# Configure API key authorization: customer_id
$WWW::SwaggerClient::Configuration::api_key->{'customer_id'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'customer_id'} = "Bearer";
# Configure API key authorization: pin
$WWW::SwaggerClient::Configuration::api_key->{'pin'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'pin'} = "Bearer";

my $api_instance = WWW::SwaggerClient::FolderApi->new();
my $id = id_example; # String | 
my $name = name_example; # String | 

eval { 
    my $result = $api_instance->folderRename(id => $id, name => $name);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling FolderApi->folderRename: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: customer_id
swagger_client.configuration.api_key['customer_id'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['customer_id'] = 'Bearer'
# Configure API key authorization: pin
swagger_client.configuration.api_key['pin'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['pin'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.FolderApi()
id = id_example # String | 
name = name_example # String | 

try: 
    # Rename a folder
    api_response = api_instance.folder_rename(id, name)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling FolderApi->folderRename: %s\n" % e)

Parameters

Form parameters
Name Description
id*
String
Required
name*
String
Required

Responses

Status: 200 - successful operation


folderUploadinfo

get upload info. you will receive a token and a url. make a html upload to the url and send the file as "file" parameter and the token as "token" parameter. the file will be stored to the folder specified.


/folder/uploadinfo

Usage and SDK Samples

curl -X POST "https://www.premiumize.me/api/folder/uploadinfo"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.FolderApi;

import java.io.File;
import java.util.*;

public class FolderApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: customer_id
        ApiKeyAuth customer_id = (ApiKeyAuth) defaultClient.getAuthentication("customer_id");
        customer_id.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //customer_id.setApiKeyPrefix("Token");

        // Configure API key authorization: pin
        ApiKeyAuth pin = (ApiKeyAuth) defaultClient.getAuthentication("pin");
        pin.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //pin.setApiKeyPrefix("Token");

        FolderApi apiInstance = new FolderApi();
        String id = id_example; // String | id of the folder
        try {
            inline_response_200_2 result = apiInstance.folderUploadinfo(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FolderApi#folderUploadinfo");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.FolderApi;

public class FolderApiExample {

    public static void main(String[] args) {
        FolderApi apiInstance = new FolderApi();
        String id = id_example; // String | id of the folder
        try {
            inline_response_200_2 result = apiInstance.folderUploadinfo(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FolderApi#folderUploadinfo");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: customer_id)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"customer_id"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"customer_id"];

// Configure API key authorization: (authentication scheme: pin)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"pin"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"pin"];

String *id = id_example; // id of the folder

FolderApi *apiInstance = [[FolderApi alloc] init];

// get upload info. you will receive a token and a url. make a html upload to the url and send the file as "file" parameter and the token as "token" parameter. the file will be stored to the folder specified.
[apiInstance folderUploadinfoWith:id
              completionHandler: ^(inline_response_200_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Premiumizeme = require('premiumizeme');
var defaultClient = Premiumizeme.ApiClient.instance;

// Configure API key authorization: customer_id
var customer_id = defaultClient.authentications['customer_id'];
customer_id.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//customer_id.apiKeyPrefix['customer_id'] = "Token"

// Configure API key authorization: pin
var pin = defaultClient.authentications['pin'];
pin.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//pin.apiKeyPrefix['pin'] = "Token"

var api = new Premiumizeme.FolderApi()

var id = id_example; // {String} id of the folder


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.folderUploadinfo(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class folderUploadinfoExample
    {
        public void main()
        {
            
            // Configure API key authorization: customer_id
            Configuration.Default.ApiKey.Add("customer_id", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("customer_id", "Bearer");
            // Configure API key authorization: pin
            Configuration.Default.ApiKey.Add("pin", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("pin", "Bearer");

            var apiInstance = new FolderApi();
            var id = id_example;  // String | id of the folder

            try
            {
                // get upload info. you will receive a token and a url. make a html upload to the url and send the file as "file" parameter and the token as "token" parameter. the file will be stored to the folder specified.
                inline_response_200_2 result = apiInstance.folderUploadinfo(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling FolderApi.folderUploadinfo: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: customer_id
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('customer_id', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('customer_id', 'Bearer');
// Configure API key authorization: pin
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('pin', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('pin', 'Bearer');

$api_instance = new Swagger\Client\Api\FolderApi();
$id = id_example; // String | id of the folder

try {
    $result = $api_instance->folderUploadinfo($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling FolderApi->folderUploadinfo: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::FolderApi;

# Configure API key authorization: customer_id
$WWW::SwaggerClient::Configuration::api_key->{'customer_id'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'customer_id'} = "Bearer";
# Configure API key authorization: pin
$WWW::SwaggerClient::Configuration::api_key->{'pin'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'pin'} = "Bearer";

my $api_instance = WWW::SwaggerClient::FolderApi->new();
my $id = id_example; # String | id of the folder

eval { 
    my $result = $api_instance->folderUploadinfo(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling FolderApi->folderUploadinfo: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: customer_id
swagger_client.configuration.api_key['customer_id'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['customer_id'] = 'Bearer'
# Configure API key authorization: pin
swagger_client.configuration.api_key['pin'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['pin'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.FolderApi()
id = id_example # String | id of the folder

try: 
    # get upload info. you will receive a token and a url. make a html upload to the url and send the file as "file" parameter and the token as "token" parameter. the file will be stored to the folder specified.
    api_response = api_instance.folder_uploadinfo(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling FolderApi->folderUploadinfo: %s\n" % e)

Parameters

Form parameters
Name Description
id*
String
id of the folder
Required

Responses

Status: 200 - successful operation


Item

itemDelete

delete an item


/item/delete

Usage and SDK Samples

curl -X POST "https://www.premiumize.me/api/item/delete"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ItemApi;

import java.io.File;
import java.util.*;

public class ItemApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: customer_id
        ApiKeyAuth customer_id = (ApiKeyAuth) defaultClient.getAuthentication("customer_id");
        customer_id.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //customer_id.setApiKeyPrefix("Token");

        // Configure API key authorization: pin
        ApiKeyAuth pin = (ApiKeyAuth) defaultClient.getAuthentication("pin");
        pin.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //pin.setApiKeyPrefix("Token");

        ItemApi apiInstance = new ItemApi();
        String id = id_example; // String | id of the item
        try {
            apiresponse result = apiInstance.itemDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ItemApi#itemDelete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ItemApi;

public class ItemApiExample {

    public static void main(String[] args) {
        ItemApi apiInstance = new ItemApi();
        String id = id_example; // String | id of the item
        try {
            apiresponse result = apiInstance.itemDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ItemApi#itemDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: customer_id)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"customer_id"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"customer_id"];

// Configure API key authorization: (authentication scheme: pin)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"pin"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"pin"];

String *id = id_example; // id of the item

ItemApi *apiInstance = [[ItemApi alloc] init];

// delete an item
[apiInstance itemDeleteWith:id
              completionHandler: ^(apiresponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Premiumizeme = require('premiumizeme');
var defaultClient = Premiumizeme.ApiClient.instance;

// Configure API key authorization: customer_id
var customer_id = defaultClient.authentications['customer_id'];
customer_id.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//customer_id.apiKeyPrefix['customer_id'] = "Token"

// Configure API key authorization: pin
var pin = defaultClient.authentications['pin'];
pin.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//pin.apiKeyPrefix['pin'] = "Token"

var api = new Premiumizeme.ItemApi()

var id = id_example; // {String} id of the item


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.itemDelete(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class itemDeleteExample
    {
        public void main()
        {
            
            // Configure API key authorization: customer_id
            Configuration.Default.ApiKey.Add("customer_id", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("customer_id", "Bearer");
            // Configure API key authorization: pin
            Configuration.Default.ApiKey.Add("pin", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("pin", "Bearer");

            var apiInstance = new ItemApi();
            var id = id_example;  // String | id of the item

            try
            {
                // delete an item
                apiresponse result = apiInstance.itemDelete(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ItemApi.itemDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: customer_id
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('customer_id', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('customer_id', 'Bearer');
// Configure API key authorization: pin
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('pin', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('pin', 'Bearer');

$api_instance = new Swagger\Client\Api\ItemApi();
$id = id_example; // String | id of the item

try {
    $result = $api_instance->itemDelete($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ItemApi->itemDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ItemApi;

# Configure API key authorization: customer_id
$WWW::SwaggerClient::Configuration::api_key->{'customer_id'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'customer_id'} = "Bearer";
# Configure API key authorization: pin
$WWW::SwaggerClient::Configuration::api_key->{'pin'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'pin'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ItemApi->new();
my $id = id_example; # String | id of the item

eval { 
    my $result = $api_instance->itemDelete(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ItemApi->itemDelete: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: customer_id
swagger_client.configuration.api_key['customer_id'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['customer_id'] = 'Bearer'
# Configure API key authorization: pin
swagger_client.configuration.api_key['pin'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['pin'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ItemApi()
id = id_example # String | id of the item

try: 
    # delete an item
    api_response = api_instance.item_delete(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ItemApi->itemDelete: %s\n" % e)

Parameters

Form parameters
Name Description
id*
String
id of the item
Required

Responses

Status: 200 - successful operation


itemRename

rename an item


/item/rename

Usage and SDK Samples

curl -X POST "https://www.premiumize.me/api/item/rename"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ItemApi;

import java.io.File;
import java.util.*;

public class ItemApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: customer_id
        ApiKeyAuth customer_id = (ApiKeyAuth) defaultClient.getAuthentication("customer_id");
        customer_id.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //customer_id.setApiKeyPrefix("Token");

        // Configure API key authorization: pin
        ApiKeyAuth pin = (ApiKeyAuth) defaultClient.getAuthentication("pin");
        pin.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //pin.setApiKeyPrefix("Token");

        ItemApi apiInstance = new ItemApi();
        String id = id_example; // String | id of the folder
        String name = name_example; // String | new name
        try {
            apiresponse result = apiInstance.itemRename(id, name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ItemApi#itemRename");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ItemApi;

public class ItemApiExample {

    public static void main(String[] args) {
        ItemApi apiInstance = new ItemApi();
        String id = id_example; // String | id of the folder
        String name = name_example; // String | new name
        try {
            apiresponse result = apiInstance.itemRename(id, name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ItemApi#itemRename");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: customer_id)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"customer_id"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"customer_id"];

// Configure API key authorization: (authentication scheme: pin)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"pin"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"pin"];

String *id = id_example; // id of the folder
String *name = name_example; // new name

ItemApi *apiInstance = [[ItemApi alloc] init];

// rename an item
[apiInstance itemRenameWith:id
    name:name
              completionHandler: ^(apiresponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Premiumizeme = require('premiumizeme');
var defaultClient = Premiumizeme.ApiClient.instance;

// Configure API key authorization: customer_id
var customer_id = defaultClient.authentications['customer_id'];
customer_id.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//customer_id.apiKeyPrefix['customer_id'] = "Token"

// Configure API key authorization: pin
var pin = defaultClient.authentications['pin'];
pin.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//pin.apiKeyPrefix['pin'] = "Token"

var api = new Premiumizeme.ItemApi()

var id = id_example; // {String} id of the folder

var name = name_example; // {String} new name


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.itemRename(id, name, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class itemRenameExample
    {
        public void main()
        {
            
            // Configure API key authorization: customer_id
            Configuration.Default.ApiKey.Add("customer_id", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("customer_id", "Bearer");
            // Configure API key authorization: pin
            Configuration.Default.ApiKey.Add("pin", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("pin", "Bearer");

            var apiInstance = new ItemApi();
            var id = id_example;  // String | id of the folder
            var name = name_example;  // String | new name

            try
            {
                // rename an item
                apiresponse result = apiInstance.itemRename(id, name);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ItemApi.itemRename: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: customer_id
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('customer_id', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('customer_id', 'Bearer');
// Configure API key authorization: pin
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('pin', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('pin', 'Bearer');

$api_instance = new Swagger\Client\Api\ItemApi();
$id = id_example; // String | id of the folder
$name = name_example; // String | new name

try {
    $result = $api_instance->itemRename($id, $name);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ItemApi->itemRename: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ItemApi;

# Configure API key authorization: customer_id
$WWW::SwaggerClient::Configuration::api_key->{'customer_id'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'customer_id'} = "Bearer";
# Configure API key authorization: pin
$WWW::SwaggerClient::Configuration::api_key->{'pin'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'pin'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ItemApi->new();
my $id = id_example; # String | id of the folder
my $name = name_example; # String | new name

eval { 
    my $result = $api_instance->itemRename(id => $id, name => $name);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ItemApi->itemRename: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: customer_id
swagger_client.configuration.api_key['customer_id'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['customer_id'] = 'Bearer'
# Configure API key authorization: pin
swagger_client.configuration.api_key['pin'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['pin'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ItemApi()
id = id_example # String | id of the folder
name = name_example # String | new name

try: 
    # rename an item
    api_response = api_instance.item_rename(id, name)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ItemApi->itemRename: %s\n" % e)

Parameters

Form parameters
Name Description
id*
String
id of the folder
Required
name*
String
new name
Required

Responses

Status: 200 - successful operation


Transfer

transferClearfinished

clear finished transfers


/transfer/clearfinished

Usage and SDK Samples

curl -X POST "https://www.premiumize.me/api/transfer/clearfinished"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TransferApi;

import java.io.File;
import java.util.*;

public class TransferApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: customer_id
        ApiKeyAuth customer_id = (ApiKeyAuth) defaultClient.getAuthentication("customer_id");
        customer_id.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //customer_id.setApiKeyPrefix("Token");

        // Configure API key authorization: pin
        ApiKeyAuth pin = (ApiKeyAuth) defaultClient.getAuthentication("pin");
        pin.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //pin.setApiKeyPrefix("Token");

        TransferApi apiInstance = new TransferApi();
        try {
            apiresponse result = apiInstance.transferClearfinished();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TransferApi#transferClearfinished");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TransferApi;

public class TransferApiExample {

    public static void main(String[] args) {
        TransferApi apiInstance = new TransferApi();
        try {
            apiresponse result = apiInstance.transferClearfinished();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TransferApi#transferClearfinished");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: customer_id)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"customer_id"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"customer_id"];

// Configure API key authorization: (authentication scheme: pin)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"pin"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"pin"];


TransferApi *apiInstance = [[TransferApi alloc] init];

// clear finished transfers
[apiInstance transferClearfinishedWithCompletionHandler: 
              ^(apiresponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Premiumizeme = require('premiumizeme');
var defaultClient = Premiumizeme.ApiClient.instance;

// Configure API key authorization: customer_id
var customer_id = defaultClient.authentications['customer_id'];
customer_id.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//customer_id.apiKeyPrefix['customer_id'] = "Token"

// Configure API key authorization: pin
var pin = defaultClient.authentications['pin'];
pin.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//pin.apiKeyPrefix['pin'] = "Token"

var api = new Premiumizeme.TransferApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.transferClearfinished(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class transferClearfinishedExample
    {
        public void main()
        {
            
            // Configure API key authorization: customer_id
            Configuration.Default.ApiKey.Add("customer_id", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("customer_id", "Bearer");
            // Configure API key authorization: pin
            Configuration.Default.ApiKey.Add("pin", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("pin", "Bearer");

            var apiInstance = new TransferApi();

            try
            {
                // clear finished transfers
                apiresponse result = apiInstance.transferClearfinished();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TransferApi.transferClearfinished: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: customer_id
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('customer_id', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('customer_id', 'Bearer');
// Configure API key authorization: pin
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('pin', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('pin', 'Bearer');

$api_instance = new Swagger\Client\Api\TransferApi();

try {
    $result = $api_instance->transferClearfinished();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TransferApi->transferClearfinished: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TransferApi;

# Configure API key authorization: customer_id
$WWW::SwaggerClient::Configuration::api_key->{'customer_id'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'customer_id'} = "Bearer";
# Configure API key authorization: pin
$WWW::SwaggerClient::Configuration::api_key->{'pin'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'pin'} = "Bearer";

my $api_instance = WWW::SwaggerClient::TransferApi->new();

eval { 
    my $result = $api_instance->transferClearfinished();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TransferApi->transferClearfinished: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: customer_id
swagger_client.configuration.api_key['customer_id'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['customer_id'] = 'Bearer'
# Configure API key authorization: pin
swagger_client.configuration.api_key['pin'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['pin'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.TransferApi()

try: 
    # clear finished transfers
    api_response = api_instance.transfer_clearfinished()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TransferApi->transferClearfinished: %s\n" % e)

Parameters

Responses

Status: 200 - successful operation


transferCreate

creaete a transfer


/transfer/create

Usage and SDK Samples

curl -X POST "https://www.premiumize.me/api/transfer/create"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TransferApi;

import java.io.File;
import java.util.*;

public class TransferApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: customer_id
        ApiKeyAuth customer_id = (ApiKeyAuth) defaultClient.getAuthentication("customer_id");
        customer_id.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //customer_id.setApiKeyPrefix("Token");

        // Configure API key authorization: pin
        ApiKeyAuth pin = (ApiKeyAuth) defaultClient.getAuthentication("pin");
        pin.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //pin.setApiKeyPrefix("Token");

        TransferApi apiInstance = new TransferApi();
        String src = src_example; // String | src
        String folderId = folderId_example; // String | Id of the target folder
        try {
            inline_response_200_3 result = apiInstance.transferCreate(src, folderId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TransferApi#transferCreate");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TransferApi;

public class TransferApiExample {

    public static void main(String[] args) {
        TransferApi apiInstance = new TransferApi();
        String src = src_example; // String | src
        String folderId = folderId_example; // String | Id of the target folder
        try {
            inline_response_200_3 result = apiInstance.transferCreate(src, folderId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TransferApi#transferCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: customer_id)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"customer_id"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"customer_id"];

// Configure API key authorization: (authentication scheme: pin)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"pin"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"pin"];

String *src = src_example; // src (optional)
String *folderId = folderId_example; // Id of the target folder (optional)

TransferApi *apiInstance = [[TransferApi alloc] init];

// creaete a transfer
[apiInstance transferCreateWith:src
    folderId:folderId
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Premiumizeme = require('premiumizeme');
var defaultClient = Premiumizeme.ApiClient.instance;

// Configure API key authorization: customer_id
var customer_id = defaultClient.authentications['customer_id'];
customer_id.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//customer_id.apiKeyPrefix['customer_id'] = "Token"

// Configure API key authorization: pin
var pin = defaultClient.authentications['pin'];
pin.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//pin.apiKeyPrefix['pin'] = "Token"

var api = new Premiumizeme.TransferApi()

var opts = { 
  'src': src_example, // {String} src
  'folderId': folderId_example // {String} Id of the target folder
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.transferCreate(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class transferCreateExample
    {
        public void main()
        {
            
            // Configure API key authorization: customer_id
            Configuration.Default.ApiKey.Add("customer_id", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("customer_id", "Bearer");
            // Configure API key authorization: pin
            Configuration.Default.ApiKey.Add("pin", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("pin", "Bearer");

            var apiInstance = new TransferApi();
            var src = src_example;  // String | src (optional) 
            var folderId = folderId_example;  // String | Id of the target folder (optional) 

            try
            {
                // creaete a transfer
                inline_response_200_3 result = apiInstance.transferCreate(src, folderId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TransferApi.transferCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: customer_id
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('customer_id', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('customer_id', 'Bearer');
// Configure API key authorization: pin
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('pin', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('pin', 'Bearer');

$api_instance = new Swagger\Client\Api\TransferApi();
$src = src_example; // String | src
$folderId = folderId_example; // String | Id of the target folder

try {
    $result = $api_instance->transferCreate($src, $folderId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TransferApi->transferCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TransferApi;

# Configure API key authorization: customer_id
$WWW::SwaggerClient::Configuration::api_key->{'customer_id'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'customer_id'} = "Bearer";
# Configure API key authorization: pin
$WWW::SwaggerClient::Configuration::api_key->{'pin'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'pin'} = "Bearer";

my $api_instance = WWW::SwaggerClient::TransferApi->new();
my $src = src_example; # String | src
my $folderId = folderId_example; # String | Id of the target folder

eval { 
    my $result = $api_instance->transferCreate(src => $src, folderId => $folderId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TransferApi->transferCreate: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: customer_id
swagger_client.configuration.api_key['customer_id'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['customer_id'] = 'Bearer'
# Configure API key authorization: pin
swagger_client.configuration.api_key['pin'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['pin'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.TransferApi()
src = src_example # String | src (optional)
folderId = folderId_example # String | Id of the target folder (optional)

try: 
    # creaete a transfer
    api_response = api_instance.transfer_create(src=src, folderId=folderId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TransferApi->transferCreate: %s\n" % e)

Parameters

Form parameters
Name Description
src
String
src
folder_id
String
Id of the target folder

Responses

Status: 200 - successful operation


transferDelete

delete a transfer


/transfer/delete

Usage and SDK Samples

curl -X POST "https://www.premiumize.me/api/transfer/delete"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TransferApi;

import java.io.File;
import java.util.*;

public class TransferApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: customer_id
        ApiKeyAuth customer_id = (ApiKeyAuth) defaultClient.getAuthentication("customer_id");
        customer_id.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //customer_id.setApiKeyPrefix("Token");

        // Configure API key authorization: pin
        ApiKeyAuth pin = (ApiKeyAuth) defaultClient.getAuthentication("pin");
        pin.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //pin.setApiKeyPrefix("Token");

        TransferApi apiInstance = new TransferApi();
        String id = id_example; // String | id
        try {
            apiresponse result = apiInstance.transferDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TransferApi#transferDelete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TransferApi;

public class TransferApiExample {

    public static void main(String[] args) {
        TransferApi apiInstance = new TransferApi();
        String id = id_example; // String | id
        try {
            apiresponse result = apiInstance.transferDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TransferApi#transferDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: customer_id)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"customer_id"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"customer_id"];

// Configure API key authorization: (authentication scheme: pin)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"pin"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"pin"];

String *id = id_example; // id

TransferApi *apiInstance = [[TransferApi alloc] init];

// delete a transfer
[apiInstance transferDeleteWith:id
              completionHandler: ^(apiresponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Premiumizeme = require('premiumizeme');
var defaultClient = Premiumizeme.ApiClient.instance;

// Configure API key authorization: customer_id
var customer_id = defaultClient.authentications['customer_id'];
customer_id.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//customer_id.apiKeyPrefix['customer_id'] = "Token"

// Configure API key authorization: pin
var pin = defaultClient.authentications['pin'];
pin.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//pin.apiKeyPrefix['pin'] = "Token"

var api = new Premiumizeme.TransferApi()

var id = id_example; // {String} id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.transferDelete(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class transferDeleteExample
    {
        public void main()
        {
            
            // Configure API key authorization: customer_id
            Configuration.Default.ApiKey.Add("customer_id", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("customer_id", "Bearer");
            // Configure API key authorization: pin
            Configuration.Default.ApiKey.Add("pin", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("pin", "Bearer");

            var apiInstance = new TransferApi();
            var id = id_example;  // String | id

            try
            {
                // delete a transfer
                apiresponse result = apiInstance.transferDelete(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TransferApi.transferDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: customer_id
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('customer_id', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('customer_id', 'Bearer');
// Configure API key authorization: pin
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('pin', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('pin', 'Bearer');

$api_instance = new Swagger\Client\Api\TransferApi();
$id = id_example; // String | id

try {
    $result = $api_instance->transferDelete($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TransferApi->transferDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TransferApi;

# Configure API key authorization: customer_id
$WWW::SwaggerClient::Configuration::api_key->{'customer_id'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'customer_id'} = "Bearer";
# Configure API key authorization: pin
$WWW::SwaggerClient::Configuration::api_key->{'pin'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'pin'} = "Bearer";

my $api_instance = WWW::SwaggerClient::TransferApi->new();
my $id = id_example; # String | id

eval { 
    my $result = $api_instance->transferDelete(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TransferApi->transferDelete: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: customer_id
swagger_client.configuration.api_key['customer_id'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['customer_id'] = 'Bearer'
# Configure API key authorization: pin
swagger_client.configuration.api_key['pin'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['pin'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.TransferApi()
id = id_example # String | id

try: 
    # delete a transfer
    api_response = api_instance.transfer_delete(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TransferApi->transferDelete: %s\n" % e)

Parameters

Form parameters
Name Description
id*
String
id
Required

Responses

Status: 200 - successful operation


transferList

list transfers


/transfer/list

Usage and SDK Samples

curl -X GET "https://www.premiumize.me/api/transfer/list"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TransferApi;

import java.io.File;
import java.util.*;

public class TransferApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: customer_id
        ApiKeyAuth customer_id = (ApiKeyAuth) defaultClient.getAuthentication("customer_id");
        customer_id.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //customer_id.setApiKeyPrefix("Token");

        // Configure API key authorization: pin
        ApiKeyAuth pin = (ApiKeyAuth) defaultClient.getAuthentication("pin");
        pin.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //pin.setApiKeyPrefix("Token");

        TransferApi apiInstance = new TransferApi();
        try {
            inline_response_200_4 result = apiInstance.transferList();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TransferApi#transferList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TransferApi;

public class TransferApiExample {

    public static void main(String[] args) {
        TransferApi apiInstance = new TransferApi();
        try {
            inline_response_200_4 result = apiInstance.transferList();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TransferApi#transferList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: customer_id)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"customer_id"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"customer_id"];

// Configure API key authorization: (authentication scheme: pin)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"pin"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"pin"];


TransferApi *apiInstance = [[TransferApi alloc] init];

// list transfers
[apiInstance transferListWithCompletionHandler: 
              ^(inline_response_200_4 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Premiumizeme = require('premiumizeme');
var defaultClient = Premiumizeme.ApiClient.instance;

// Configure API key authorization: customer_id
var customer_id = defaultClient.authentications['customer_id'];
customer_id.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//customer_id.apiKeyPrefix['customer_id'] = "Token"

// Configure API key authorization: pin
var pin = defaultClient.authentications['pin'];
pin.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//pin.apiKeyPrefix['pin'] = "Token"

var api = new Premiumizeme.TransferApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.transferList(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class transferListExample
    {
        public void main()
        {
            
            // Configure API key authorization: customer_id
            Configuration.Default.ApiKey.Add("customer_id", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("customer_id", "Bearer");
            // Configure API key authorization: pin
            Configuration.Default.ApiKey.Add("pin", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("pin", "Bearer");

            var apiInstance = new TransferApi();

            try
            {
                // list transfers
                inline_response_200_4 result = apiInstance.transferList();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TransferApi.transferList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: customer_id
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('customer_id', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('customer_id', 'Bearer');
// Configure API key authorization: pin
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('pin', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('pin', 'Bearer');

$api_instance = new Swagger\Client\Api\TransferApi();

try {
    $result = $api_instance->transferList();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TransferApi->transferList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TransferApi;

# Configure API key authorization: customer_id
$WWW::SwaggerClient::Configuration::api_key->{'customer_id'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'customer_id'} = "Bearer";
# Configure API key authorization: pin
$WWW::SwaggerClient::Configuration::api_key->{'pin'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'pin'} = "Bearer";

my $api_instance = WWW::SwaggerClient::TransferApi->new();

eval { 
    my $result = $api_instance->transferList();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TransferApi->transferList: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: customer_id
swagger_client.configuration.api_key['customer_id'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['customer_id'] = 'Bearer'
# Configure API key authorization: pin
swagger_client.configuration.api_key['pin'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['pin'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.TransferApi()

try: 
    # list transfers
    api_response = api_instance.transfer_list()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TransferApi->transferList: %s\n" % e)

Parameters

Responses

Status: 200 - successful operation


Zip

zipGenerate

generate a zip


/zip/generate

Usage and SDK Samples

curl -X POST "https://www.premiumize.me/api/zip/generate"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ZipApi;

import java.io.File;
import java.util.*;

public class ZipApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: customer_id
        ApiKeyAuth customer_id = (ApiKeyAuth) defaultClient.getAuthentication("customer_id");
        customer_id.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //customer_id.setApiKeyPrefix("Token");

        // Configure API key authorization: pin
        ApiKeyAuth pin = (ApiKeyAuth) defaultClient.getAuthentication("pin");
        pin.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //pin.setApiKeyPrefix("Token");

        ZipApi apiInstance = new ZipApi();
        array[String] files = ; // array[String] | items to add to the zip
        array[String] folders = ; // array[String] | folders to add to the zip
        try {
            apiInstance.zipGenerate(files, folders);
        } catch (ApiException e) {
            System.err.println("Exception when calling ZipApi#zipGenerate");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ZipApi;

public class ZipApiExample {

    public static void main(String[] args) {
        ZipApi apiInstance = new ZipApi();
        array[String] files = ; // array[String] | items to add to the zip
        array[String] folders = ; // array[String] | folders to add to the zip
        try {
            apiInstance.zipGenerate(files, folders);
        } catch (ApiException e) {
            System.err.println("Exception when calling ZipApi#zipGenerate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: customer_id)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"customer_id"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"customer_id"];

// Configure API key authorization: (authentication scheme: pin)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"pin"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"pin"];

array[String] *files = ; // items to add to the zip (optional)
array[String] *folders = ; // folders to add to the zip (optional)

ZipApi *apiInstance = [[ZipApi alloc] init];

// generate a zip
[apiInstance zipGenerateWith:files
    folders:folders
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Premiumizeme = require('premiumizeme');
var defaultClient = Premiumizeme.ApiClient.instance;

// Configure API key authorization: customer_id
var customer_id = defaultClient.authentications['customer_id'];
customer_id.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//customer_id.apiKeyPrefix['customer_id'] = "Token"

// Configure API key authorization: pin
var pin = defaultClient.authentications['pin'];
pin.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//pin.apiKeyPrefix['pin'] = "Token"

var api = new Premiumizeme.ZipApi()

var opts = { 
  'files': , // {array[String]} items to add to the zip
  'folders':  // {array[String]} folders to add to the zip
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.zipGenerate(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class zipGenerateExample
    {
        public void main()
        {
            
            // Configure API key authorization: customer_id
            Configuration.Default.ApiKey.Add("customer_id", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("customer_id", "Bearer");
            // Configure API key authorization: pin
            Configuration.Default.ApiKey.Add("pin", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("pin", "Bearer");

            var apiInstance = new ZipApi();
            var files = new array[String](); // array[String] | items to add to the zip (optional) 
            var folders = new array[String](); // array[String] | folders to add to the zip (optional) 

            try
            {
                // generate a zip
                apiInstance.zipGenerate(files, folders);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ZipApi.zipGenerate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: customer_id
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('customer_id', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('customer_id', 'Bearer');
// Configure API key authorization: pin
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('pin', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('pin', 'Bearer');

$api_instance = new Swagger\Client\Api\ZipApi();
$files = ; // array[String] | items to add to the zip
$folders = ; // array[String] | folders to add to the zip

try {
    $api_instance->zipGenerate($files, $folders);
} catch (Exception $e) {
    echo 'Exception when calling ZipApi->zipGenerate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ZipApi;

# Configure API key authorization: customer_id
$WWW::SwaggerClient::Configuration::api_key->{'customer_id'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'customer_id'} = "Bearer";
# Configure API key authorization: pin
$WWW::SwaggerClient::Configuration::api_key->{'pin'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'pin'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ZipApi->new();
my $files = []; # array[String] | items to add to the zip
my $folders = []; # array[String] | folders to add to the zip

eval { 
    $api_instance->zipGenerate(files => $files, folders => $folders);
};
if ($@) {
    warn "Exception when calling ZipApi->zipGenerate: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: customer_id
swagger_client.configuration.api_key['customer_id'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['customer_id'] = 'Bearer'
# Configure API key authorization: pin
swagger_client.configuration.api_key['pin'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['pin'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ZipApi()
files =  # array[String] | items to add to the zip (optional)
folders =  # array[String] | folders to add to the zip (optional)

try: 
    # generate a zip
    api_instance.zip_generate(files=files, folders=folders)
except ApiException as e:
    print("Exception when calling ZipApi->zipGenerate: %s\n" % e)

Parameters

Form parameters
Name Description
files
array[String]
items to add to the zip
folders
array[String]
folders to add to the zip

Responses

Status: 200 - successful operation


Generated 2018-01-18T08:18:39.182Z