M76 API

Account

getAccount

Returns a single account if the user has access


accounts/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/vnd.m76.v2+json"\
"https://api.m76.co/accounts/{id}"
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) {
        
        AccountApi apiInstance = new AccountApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        String id = id_example; // String | 
        try {
            Account result = apiInstance.getAccount(accept, authorization, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountApi#getAccount");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AccountApi;

public class AccountApiExample {

    public static void main(String[] args) {
        AccountApi apiInstance = new AccountApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        String id = id_example; // String | 
        try {
            Account result = apiInstance.getAccount(accept, authorization, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountApi#getAccount");
            e.printStackTrace();
        }
    }
}
String *accept = accept_example; // 
String *authorization = authorization_example; // 
String *id = id_example; // 

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

[apiInstance getAccountWith:accept
    authorization:authorization
    id:id
              completionHandler: ^(Account output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var M76Api = require('m76_api');

var api = new M76Api.AccountApi()
var accept = accept_example; // {{String}} 
var authorization = authorization_example; // {{String}} 
var id = id_example; // {{String}} 

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

namespace Example
{
    public class getAccountExample
    {
        public void main()
        {

            var apiInstance = new AccountApi();
            var accept = accept_example;  // String | 
            var authorization = authorization_example;  // String | 
            var id = id_example;  // String | 

            try
            {
                Account result = apiInstance.getAccount(accept, authorization, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AccountApi.getAccount: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAccountApi();
$accept = accept_example; // String | 
$authorization = authorization_example; // String | 
$id = id_example; // String | 

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

my $api_instance = WWW::SwaggerClient::AccountApi->new();
my $accept = accept_example; # String | 
my $authorization = authorization_example; # String | 
my $id = id_example; # String | 

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

# create an instance of the API class
api_instance = swagger_client.AccountApi()
accept = accept_example # String | 
authorization = authorization_example # String | 
id = id_example # String | 

try: 
    api_response = api_instance.get_account(accept, authorization, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountApi->getAccount: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Header parameters
Name Description
Accept*
String
Required
Authorization*
String
Required

Responses

Status: 200 - account object

Status: 401 - not authorized

Status: 403 - forbidden

Status: 500 - unexpected error


getAccountContacts

Returns a paginated response of all available contacts connected to the given account


/accounts/{id}/contacts

Usage and SDK Samples

curl -X GET\
-H "Accept: application/vnd.m76.v2+json"\
"https://api.m76.co//accounts/{id}/contacts"
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) {
        
        AccountApi apiInstance = new AccountApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        String id = id_example; // String | 
        try {
            Contact result = apiInstance.getAccountContacts(accept, authorization, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountApi#getAccountContacts");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AccountApi;

public class AccountApiExample {

    public static void main(String[] args) {
        AccountApi apiInstance = new AccountApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        String id = id_example; // String | 
        try {
            Contact result = apiInstance.getAccountContacts(accept, authorization, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountApi#getAccountContacts");
            e.printStackTrace();
        }
    }
}
String *accept = accept_example; // 
String *authorization = authorization_example; // 
String *id = id_example; // 

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

[apiInstance getAccountContactsWith:accept
    authorization:authorization
    id:id
              completionHandler: ^(Contact output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var M76Api = require('m76_api');

var api = new M76Api.AccountApi()
var accept = accept_example; // {{String}} 
var authorization = authorization_example; // {{String}} 
var id = id_example; // {{String}} 

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

namespace Example
{
    public class getAccountContactsExample
    {
        public void main()
        {

            var apiInstance = new AccountApi();
            var accept = accept_example;  // String | 
            var authorization = authorization_example;  // String | 
            var id = id_example;  // String | 

            try
            {
                Contact result = apiInstance.getAccountContacts(accept, authorization, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AccountApi.getAccountContacts: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAccountApi();
$accept = accept_example; // String | 
$authorization = authorization_example; // String | 
$id = id_example; // String | 

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

my $api_instance = WWW::SwaggerClient::AccountApi->new();
my $accept = accept_example; # String | 
my $authorization = authorization_example; # String | 
my $id = id_example; # String | 

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

# create an instance of the API class
api_instance = swagger_client.AccountApi()
accept = accept_example # String | 
authorization = authorization_example # String | 
id = id_example # String | 

try: 
    api_response = api_instance.get_account_contacts(accept, authorization, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountApi->getAccountContacts: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Header parameters
Name Description
Accept*
String
Required
Authorization*
String
Required

Responses

Status: 200 - account contacts response

Status: 401 - not authorized

Status: 403 - forbidden

Status: 500 - unexpected error


getAccountGroups

Returns a paginated response of all available groups connected to the given account


/accounts/{id}/groups

Usage and SDK Samples

curl -X GET\
-H "Accept: application/vnd.m76.v2+json"\
"https://api.m76.co//accounts/{id}/groups"
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) {
        
        AccountApi apiInstance = new AccountApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        String id = id_example; // String | 
        try {
            Group result = apiInstance.getAccountGroups(accept, authorization, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountApi#getAccountGroups");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AccountApi;

public class AccountApiExample {

    public static void main(String[] args) {
        AccountApi apiInstance = new AccountApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        String id = id_example; // String | 
        try {
            Group result = apiInstance.getAccountGroups(accept, authorization, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountApi#getAccountGroups");
            e.printStackTrace();
        }
    }
}
String *accept = accept_example; // 
String *authorization = authorization_example; // 
String *id = id_example; // 

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

[apiInstance getAccountGroupsWith:accept
    authorization:authorization
    id:id
              completionHandler: ^(Group output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var M76Api = require('m76_api');

var api = new M76Api.AccountApi()
var accept = accept_example; // {{String}} 
var authorization = authorization_example; // {{String}} 
var id = id_example; // {{String}} 

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

namespace Example
{
    public class getAccountGroupsExample
    {
        public void main()
        {

            var apiInstance = new AccountApi();
            var accept = accept_example;  // String | 
            var authorization = authorization_example;  // String | 
            var id = id_example;  // String | 

            try
            {
                Group result = apiInstance.getAccountGroups(accept, authorization, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AccountApi.getAccountGroups: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAccountApi();
$accept = accept_example; // String | 
$authorization = authorization_example; // String | 
$id = id_example; // String | 

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

my $api_instance = WWW::SwaggerClient::AccountApi->new();
my $accept = accept_example; # String | 
my $authorization = authorization_example; # String | 
my $id = id_example; # String | 

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

# create an instance of the API class
api_instance = swagger_client.AccountApi()
accept = accept_example # String | 
authorization = authorization_example # String | 
id = id_example # String | 

try: 
    api_response = api_instance.get_account_groups(accept, authorization, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountApi->getAccountGroups: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Header parameters
Name Description
Accept*
String
Required
Authorization*
String
Required

Responses

Status: 200 - account groups response

Status: 401 - not authorized

Status: 403 - forbidden

Status: 500 - unexpected error


getAccountPerformance

Returns the most recent account performance values for the given account


accounts/{id}/performance

Usage and SDK Samples

curl -X GET\
-H "Accept: application/vnd.m76.v2+json"\
"https://api.m76.co/accounts/{id}/performance?as_of_date="
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) {
        
        AccountApi apiInstance = new AccountApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        String id = id_example; // String | 
        String asOfDate = asOfDate_example; // String | defaults to latest end-of-month
        try {
            AccountReturnHistory result = apiInstance.getAccountPerformance(accept, authorization, id, asOfDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountApi#getAccountPerformance");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AccountApi;

public class AccountApiExample {

    public static void main(String[] args) {
        AccountApi apiInstance = new AccountApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        String id = id_example; // String | 
        String asOfDate = asOfDate_example; // String | defaults to latest end-of-month
        try {
            AccountReturnHistory result = apiInstance.getAccountPerformance(accept, authorization, id, asOfDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountApi#getAccountPerformance");
            e.printStackTrace();
        }
    }
}
String *accept = accept_example; // 
String *authorization = authorization_example; // 
String *id = id_example; // 
String *asOfDate = asOfDate_example; // defaults to latest end-of-month (optional)

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

[apiInstance getAccountPerformanceWith:accept
    authorization:authorization
    id:id
    asOfDate:asOfDate
              completionHandler: ^(AccountReturnHistory output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var M76Api = require('m76_api');

var api = new M76Api.AccountApi()
var accept = accept_example; // {{String}} 
var authorization = authorization_example; // {{String}} 
var id = id_example; // {{String}} 
var opts = { 
  'asOfDate': asOfDate_example // {{String}} defaults to latest end-of-month
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAccountPerformance(accept, authorization, id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getAccountPerformanceExample
    {
        public void main()
        {

            var apiInstance = new AccountApi();
            var accept = accept_example;  // String | 
            var authorization = authorization_example;  // String | 
            var id = id_example;  // String | 
            var asOfDate = asOfDate_example;  // String | defaults to latest end-of-month (optional) 

            try
            {
                AccountReturnHistory result = apiInstance.getAccountPerformance(accept, authorization, id, asOfDate);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AccountApi.getAccountPerformance: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAccountApi();
$accept = accept_example; // String | 
$authorization = authorization_example; // String | 
$id = id_example; // String | 
$asOfDate = asOfDate_example; // String | defaults to latest end-of-month

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

my $api_instance = WWW::SwaggerClient::AccountApi->new();
my $accept = accept_example; # String | 
my $authorization = authorization_example; # String | 
my $id = id_example; # String | 
my $asOfDate = asOfDate_example; # String | defaults to latest end-of-month

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

# create an instance of the API class
api_instance = swagger_client.AccountApi()
accept = accept_example # String | 
authorization = authorization_example # String | 
id = id_example # String | 
asOfDate = asOfDate_example # String | defaults to latest end-of-month (optional)

try: 
    api_response = api_instance.get_account_performance(accept, authorization, id, asOfDate=asOfDate)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountApi->getAccountPerformance: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Header parameters
Name Description
Accept*
String
Required
Authorization*
String
Required
Query parameters
Name Description
as_of_date
String
defaults to latest end-of-month

Responses

Status: 200 - account performance response

Status: 401 - not authorized

Status: 403 - forbidden

Status: 500 - unexpected error


getAccountPerformanceDetail

Returns the performance detail hash for the given date, or the most recent end-of-month.


accounts/{id}/performance_detail

Usage and SDK Samples

curl -X GET\
-H "Accept: application/vnd.m76.v2+json"\
"https://api.m76.co/accounts/{id}/performance_detail?to_date=&from_date="
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) {
        
        AccountApi apiInstance = new AccountApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        String id = id_example; // String | 
        String toDate = toDate_example; // String | defaults to latest end-of-month
        String fromDate = fromDate_example; // String | defaults to earliest date with a value
        try {
            PerformanceDetail result = apiInstance.getAccountPerformanceDetail(accept, authorization, id, toDate, fromDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountApi#getAccountPerformanceDetail");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AccountApi;

public class AccountApiExample {

    public static void main(String[] args) {
        AccountApi apiInstance = new AccountApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        String id = id_example; // String | 
        String toDate = toDate_example; // String | defaults to latest end-of-month
        String fromDate = fromDate_example; // String | defaults to earliest date with a value
        try {
            PerformanceDetail result = apiInstance.getAccountPerformanceDetail(accept, authorization, id, toDate, fromDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountApi#getAccountPerformanceDetail");
            e.printStackTrace();
        }
    }
}
String *accept = accept_example; // 
String *authorization = authorization_example; // 
String *id = id_example; // 
String *toDate = toDate_example; // defaults to latest end-of-month (optional)
String *fromDate = fromDate_example; // defaults to earliest date with a value (optional)

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

[apiInstance getAccountPerformanceDetailWith:accept
    authorization:authorization
    id:id
    toDate:toDate
    fromDate:fromDate
              completionHandler: ^(PerformanceDetail output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var M76Api = require('m76_api');

var api = new M76Api.AccountApi()
var accept = accept_example; // {{String}} 
var authorization = authorization_example; // {{String}} 
var id = id_example; // {{String}} 
var opts = { 
  'toDate': toDate_example, // {{String}} defaults to latest end-of-month
  'fromDate': fromDate_example // {{String}} defaults to earliest date with a value
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAccountPerformanceDetail(accept, authorization, id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getAccountPerformanceDetailExample
    {
        public void main()
        {

            var apiInstance = new AccountApi();
            var accept = accept_example;  // String | 
            var authorization = authorization_example;  // String | 
            var id = id_example;  // String | 
            var toDate = toDate_example;  // String | defaults to latest end-of-month (optional) 
            var fromDate = fromDate_example;  // String | defaults to earliest date with a value (optional) 

            try
            {
                PerformanceDetail result = apiInstance.getAccountPerformanceDetail(accept, authorization, id, toDate, fromDate);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AccountApi.getAccountPerformanceDetail: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAccountApi();
$accept = accept_example; // String | 
$authorization = authorization_example; // String | 
$id = id_example; // String | 
$toDate = toDate_example; // String | defaults to latest end-of-month
$fromDate = fromDate_example; // String | defaults to earliest date with a value

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

my $api_instance = WWW::SwaggerClient::AccountApi->new();
my $accept = accept_example; # String | 
my $authorization = authorization_example; # String | 
my $id = id_example; # String | 
my $toDate = toDate_example; # String | defaults to latest end-of-month
my $fromDate = fromDate_example; # String | defaults to earliest date with a value

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

# create an instance of the API class
api_instance = swagger_client.AccountApi()
accept = accept_example # String | 
authorization = authorization_example # String | 
id = id_example # String | 
toDate = toDate_example # String | defaults to latest end-of-month (optional)
fromDate = fromDate_example # String | defaults to earliest date with a value (optional)

try: 
    api_response = api_instance.get_account_performance_detail(accept, authorization, id, toDate=toDate, fromDate=fromDate)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountApi->getAccountPerformanceDetail: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Header parameters
Name Description
Accept*
String
Required
Authorization*
String
Required
Query parameters
Name Description
to_date
String
defaults to latest end-of-month
from_date
String
defaults to earliest date with a value

Responses

Status: 200 - account performance detail response

Status: 401 - not authorized

Status: 403 - forbidden

Status: 500 - unexpected error


getAccountPerformanceHistorys

Returns a paginated response of all available account_return_historys connected to the given account


/accounts/{id}/performance_history

Usage and SDK Samples

curl -X GET\
-H "Accept: application/vnd.m76.v2+json"\
"https://api.m76.co//accounts/{id}/performance_history"
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) {
        
        AccountApi apiInstance = new AccountApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        String id = id_example; // String | 
        try {
            AccountReturnHistory result = apiInstance.getAccountPerformanceHistorys(accept, authorization, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountApi#getAccountPerformanceHistorys");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AccountApi;

public class AccountApiExample {

    public static void main(String[] args) {
        AccountApi apiInstance = new AccountApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        String id = id_example; // String | 
        try {
            AccountReturnHistory result = apiInstance.getAccountPerformanceHistorys(accept, authorization, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountApi#getAccountPerformanceHistorys");
            e.printStackTrace();
        }
    }
}
String *accept = accept_example; // 
String *authorization = authorization_example; // 
String *id = id_example; // 

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

[apiInstance getAccountPerformanceHistorysWith:accept
    authorization:authorization
    id:id
              completionHandler: ^(AccountReturnHistory output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var M76Api = require('m76_api');

var api = new M76Api.AccountApi()
var accept = accept_example; // {{String}} 
var authorization = authorization_example; // {{String}} 
var id = id_example; // {{String}} 

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

namespace Example
{
    public class getAccountPerformanceHistorysExample
    {
        public void main()
        {

            var apiInstance = new AccountApi();
            var accept = accept_example;  // String | 
            var authorization = authorization_example;  // String | 
            var id = id_example;  // String | 

            try
            {
                AccountReturnHistory result = apiInstance.getAccountPerformanceHistorys(accept, authorization, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AccountApi.getAccountPerformanceHistorys: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAccountApi();
$accept = accept_example; // String | 
$authorization = authorization_example; // String | 
$id = id_example; // String | 

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

my $api_instance = WWW::SwaggerClient::AccountApi->new();
my $accept = accept_example; # String | 
my $authorization = authorization_example; # String | 
my $id = id_example; # String | 

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

# create an instance of the API class
api_instance = swagger_client.AccountApi()
accept = accept_example # String | 
authorization = authorization_example # String | 
id = id_example # String | 

try: 
    api_response = api_instance.get_account_performance_historys(accept, authorization, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountApi->getAccountPerformanceHistorys: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Header parameters
Name Description
Accept*
String
Required
Authorization*
String
Required

Responses

Status: 200 - account account_return_historys response

Status: 401 - not authorized

Status: 403 - forbidden

Status: 500 - unexpected error


getAccountPositions

Returns a paginated response of all available positions connected to the given account


/accounts/{id}/positions

Usage and SDK Samples

curl -X GET\
-H "Accept: application/vnd.m76.v2+json"\
"https://api.m76.co//accounts/{id}/positions"
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) {
        
        AccountApi apiInstance = new AccountApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        String id = id_example; // String | 
        try {
            Position result = apiInstance.getAccountPositions(accept, authorization, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountApi#getAccountPositions");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AccountApi;

public class AccountApiExample {

    public static void main(String[] args) {
        AccountApi apiInstance = new AccountApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        String id = id_example; // String | 
        try {
            Position result = apiInstance.getAccountPositions(accept, authorization, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountApi#getAccountPositions");
            e.printStackTrace();
        }
    }
}
String *accept = accept_example; // 
String *authorization = authorization_example; // 
String *id = id_example; // 

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

[apiInstance getAccountPositionsWith:accept
    authorization:authorization
    id:id
              completionHandler: ^(Position output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var M76Api = require('m76_api');

var api = new M76Api.AccountApi()
var accept = accept_example; // {{String}} 
var authorization = authorization_example; // {{String}} 
var id = id_example; // {{String}} 

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

namespace Example
{
    public class getAccountPositionsExample
    {
        public void main()
        {

            var apiInstance = new AccountApi();
            var accept = accept_example;  // String | 
            var authorization = authorization_example;  // String | 
            var id = id_example;  // String | 

            try
            {
                Position result = apiInstance.getAccountPositions(accept, authorization, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AccountApi.getAccountPositions: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAccountApi();
$accept = accept_example; // String | 
$authorization = authorization_example; // String | 
$id = id_example; // String | 

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

my $api_instance = WWW::SwaggerClient::AccountApi->new();
my $accept = accept_example; # String | 
my $authorization = authorization_example; # String | 
my $id = id_example; # String | 

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

# create an instance of the API class
api_instance = swagger_client.AccountApi()
accept = accept_example # String | 
authorization = authorization_example # String | 
id = id_example # String | 

try: 
    api_response = api_instance.get_account_positions(accept, authorization, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountApi->getAccountPositions: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Header parameters
Name Description
Accept*
String
Required
Authorization*
String
Required

Responses

Status: 200 - account positions response

Status: 401 - not authorized

Status: 403 - forbidden

Status: 500 - unexpected error


getAccountRepCodes

Returns a paginated response of all available rep_codes connected to the given account


/accounts/{id}/rep_codes

Usage and SDK Samples

curl -X GET\
-H "Accept: application/vnd.m76.v2+json"\
"https://api.m76.co//accounts/{id}/rep_codes"
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) {
        
        AccountApi apiInstance = new AccountApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        String id = id_example; // String | 
        try {
            RepCode result = apiInstance.getAccountRepCodes(accept, authorization, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountApi#getAccountRepCodes");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AccountApi;

public class AccountApiExample {

    public static void main(String[] args) {
        AccountApi apiInstance = new AccountApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        String id = id_example; // String | 
        try {
            RepCode result = apiInstance.getAccountRepCodes(accept, authorization, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountApi#getAccountRepCodes");
            e.printStackTrace();
        }
    }
}
String *accept = accept_example; // 
String *authorization = authorization_example; // 
String *id = id_example; // 

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

[apiInstance getAccountRepCodesWith:accept
    authorization:authorization
    id:id
              completionHandler: ^(RepCode output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var M76Api = require('m76_api');

var api = new M76Api.AccountApi()
var accept = accept_example; // {{String}} 
var authorization = authorization_example; // {{String}} 
var id = id_example; // {{String}} 

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

namespace Example
{
    public class getAccountRepCodesExample
    {
        public void main()
        {

            var apiInstance = new AccountApi();
            var accept = accept_example;  // String | 
            var authorization = authorization_example;  // String | 
            var id = id_example;  // String | 

            try
            {
                RepCode result = apiInstance.getAccountRepCodes(accept, authorization, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AccountApi.getAccountRepCodes: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAccountApi();
$accept = accept_example; // String | 
$authorization = authorization_example; // String | 
$id = id_example; // String | 

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

my $api_instance = WWW::SwaggerClient::AccountApi->new();
my $accept = accept_example; # String | 
my $authorization = authorization_example; # String | 
my $id = id_example; # String | 

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

# create an instance of the API class
api_instance = swagger_client.AccountApi()
accept = accept_example # String | 
authorization = authorization_example # String | 
id = id_example # String | 

try: 
    api_response = api_instance.get_account_rep_codes(accept, authorization, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountApi->getAccountRepCodes: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Header parameters
Name Description
Accept*
String
Required
Authorization*
String
Required

Responses

Status: 200 - account rep_codes response

Status: 401 - not authorized

Status: 403 - forbidden

Status: 500 - unexpected error


getAccountTransactions

Returns a paginated response of all available transactions connected to the given account


/accounts/{id}/transactions

Usage and SDK Samples

curl -X GET\
-H "Accept: application/vnd.m76.v2+json"\
"https://api.m76.co//accounts/{id}/transactions"
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) {
        
        AccountApi apiInstance = new AccountApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        String id = id_example; // String | 
        try {
            Transaction result = apiInstance.getAccountTransactions(accept, authorization, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountApi#getAccountTransactions");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AccountApi;

public class AccountApiExample {

    public static void main(String[] args) {
        AccountApi apiInstance = new AccountApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        String id = id_example; // String | 
        try {
            Transaction result = apiInstance.getAccountTransactions(accept, authorization, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountApi#getAccountTransactions");
            e.printStackTrace();
        }
    }
}
String *accept = accept_example; // 
String *authorization = authorization_example; // 
String *id = id_example; // 

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

[apiInstance getAccountTransactionsWith:accept
    authorization:authorization
    id:id
              completionHandler: ^(Transaction output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var M76Api = require('m76_api');

var api = new M76Api.AccountApi()
var accept = accept_example; // {{String}} 
var authorization = authorization_example; // {{String}} 
var id = id_example; // {{String}} 

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

namespace Example
{
    public class getAccountTransactionsExample
    {
        public void main()
        {

            var apiInstance = new AccountApi();
            var accept = accept_example;  // String | 
            var authorization = authorization_example;  // String | 
            var id = id_example;  // String | 

            try
            {
                Transaction result = apiInstance.getAccountTransactions(accept, authorization, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AccountApi.getAccountTransactions: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAccountApi();
$accept = accept_example; // String | 
$authorization = authorization_example; // String | 
$id = id_example; // String | 

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

my $api_instance = WWW::SwaggerClient::AccountApi->new();
my $accept = accept_example; # String | 
my $authorization = authorization_example; # String | 
my $id = id_example; # String | 

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

# create an instance of the API class
api_instance = swagger_client.AccountApi()
accept = accept_example # String | 
authorization = authorization_example # String | 
id = id_example # String | 

try: 
    api_response = api_instance.get_account_transactions(accept, authorization, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountApi->getAccountTransactions: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Header parameters
Name Description
Accept*
String
Required
Authorization*
String
Required

Responses

Status: 200 - account transactions response

Status: 401 - not authorized

Status: 403 - forbidden

Status: 500 - unexpected error


getAccounts

Returns a paginated response of all available accounts. Allows filtering on the listed attributes as well as those on include-able associations by prefixing the association name (e.g. accounts_account_number).


accounts

Usage and SDK Samples

curl -X GET\
-H "Accept: application/vnd.m76.v2+json"\
"https://api.m76.co/accounts?include=&filter[account_identifier]=&filter[account_management_type]=&filter[account_number]=&filter[account_status]=&filter[account_type]=&filter[custodian]=&filter[display_name]=&filter[firm_id]=&filter[latest_balance_date]=&filter[latest_balance_date_max]=&filter[latest_balance_date_min]=&filter[total_market_value]=&filter[total_market_value_max]=&filter[total_market_value_min]=&filter[unmatched]="
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) {
        
        AccountApi apiInstance = new AccountApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        String include = include_example; // String | Include associations in requests. Allows comma-separated list of: contacts, groups, performance_history, positions, rep_codes, transactions, latest_performance_history, performance_detail.
        String filter[accountIdentifier] = filter[accountIdentifier]_example; // String | 
        String filter[accountManagementType] = filter[accountManagementType]_example; // String | 
        String filter[accountNumber] = filter[accountNumber]_example; // String | 
        String filter[accountStatus] = filter[accountStatus]_example; // String | 
        String filter[accountType] = filter[accountType]_example; // String | 
        String filter[custodian] = filter[custodian]_example; // String | 
        String filter[displayName] = filter[displayName]_example; // String | Search by name/identifier.
        String filter[firmId] = filter[firmId]_example; // String | 
        String filter[latestBalanceDate] = filter[latestBalanceDate]_example; // String | 
        String filter[latestBalanceDateMax] = filter[latestBalanceDateMax]_example; // String | 
        String filter[latestBalanceDateMin] = filter[latestBalanceDateMin]_example; // String | 
        BigDecimal filter[totalMarketValue] = 1.2; // BigDecimal | 
        BigDecimal filter[totalMarketValueMax] = 1.2; // BigDecimal | 
        BigDecimal filter[totalMarketValueMin] = 1.2; // BigDecimal | 
        Boolean filter[unmatched] = true; // Boolean | 
        try {
            Accounts result = apiInstance.getAccounts(accept, authorization, include, filter[accountIdentifier], filter[accountManagementType], filter[accountNumber], filter[accountStatus], filter[accountType], filter[custodian], filter[displayName], filter[firmId], filter[latestBalanceDate], filter[latestBalanceDateMax], filter[latestBalanceDateMin], filter[totalMarketValue], filter[totalMarketValueMax], filter[totalMarketValueMin], filter[unmatched]);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountApi#getAccounts");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AccountApi;

public class AccountApiExample {

    public static void main(String[] args) {
        AccountApi apiInstance = new AccountApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        String include = include_example; // String | Include associations in requests. Allows comma-separated list of: contacts, groups, performance_history, positions, rep_codes, transactions, latest_performance_history, performance_detail.
        String filter[accountIdentifier] = filter[accountIdentifier]_example; // String | 
        String filter[accountManagementType] = filter[accountManagementType]_example; // String | 
        String filter[accountNumber] = filter[accountNumber]_example; // String | 
        String filter[accountStatus] = filter[accountStatus]_example; // String | 
        String filter[accountType] = filter[accountType]_example; // String | 
        String filter[custodian] = filter[custodian]_example; // String | 
        String filter[displayName] = filter[displayName]_example; // String | Search by name/identifier.
        String filter[firmId] = filter[firmId]_example; // String | 
        String filter[latestBalanceDate] = filter[latestBalanceDate]_example; // String | 
        String filter[latestBalanceDateMax] = filter[latestBalanceDateMax]_example; // String | 
        String filter[latestBalanceDateMin] = filter[latestBalanceDateMin]_example; // String | 
        BigDecimal filter[totalMarketValue] = 1.2; // BigDecimal | 
        BigDecimal filter[totalMarketValueMax] = 1.2; // BigDecimal | 
        BigDecimal filter[totalMarketValueMin] = 1.2; // BigDecimal | 
        Boolean filter[unmatched] = true; // Boolean | 
        try {
            Accounts result = apiInstance.getAccounts(accept, authorization, include, filter[accountIdentifier], filter[accountManagementType], filter[accountNumber], filter[accountStatus], filter[accountType], filter[custodian], filter[displayName], filter[firmId], filter[latestBalanceDate], filter[latestBalanceDateMax], filter[latestBalanceDateMin], filter[totalMarketValue], filter[totalMarketValueMax], filter[totalMarketValueMin], filter[unmatched]);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountApi#getAccounts");
            e.printStackTrace();
        }
    }
}
String *accept = accept_example; // 
String *authorization = authorization_example; // 
String *include = include_example; // Include associations in requests. Allows comma-separated list of: contacts, groups, performance_history, positions, rep_codes, transactions, latest_performance_history, performance_detail. (optional)
String *filter[accountIdentifier] = filter[accountIdentifier]_example; //  (optional)
String *filter[accountManagementType] = filter[accountManagementType]_example; //  (optional)
String *filter[accountNumber] = filter[accountNumber]_example; //  (optional)
String *filter[accountStatus] = filter[accountStatus]_example; //  (optional)
String *filter[accountType] = filter[accountType]_example; //  (optional)
String *filter[custodian] = filter[custodian]_example; //  (optional)
String *filter[displayName] = filter[displayName]_example; // Search by name/identifier. (optional)
String *filter[firmId] = filter[firmId]_example; //  (optional)
String *filter[latestBalanceDate] = filter[latestBalanceDate]_example; //  (optional)
String *filter[latestBalanceDateMax] = filter[latestBalanceDateMax]_example; //  (optional)
String *filter[latestBalanceDateMin] = filter[latestBalanceDateMin]_example; //  (optional)
BigDecimal *filter[totalMarketValue] = 1.2; //  (optional)
BigDecimal *filter[totalMarketValueMax] = 1.2; //  (optional)
BigDecimal *filter[totalMarketValueMin] = 1.2; //  (optional)
Boolean *filter[unmatched] = true; //  (optional)

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

[apiInstance getAccountsWith:accept
    authorization:authorization
    include:include
    filter[accountIdentifier]:filter[accountIdentifier]
    filter[accountManagementType]:filter[accountManagementType]
    filter[accountNumber]:filter[accountNumber]
    filter[accountStatus]:filter[accountStatus]
    filter[accountType]:filter[accountType]
    filter[custodian]:filter[custodian]
    filter[displayName]:filter[displayName]
    filter[firmId]:filter[firmId]
    filter[latestBalanceDate]:filter[latestBalanceDate]
    filter[latestBalanceDateMax]:filter[latestBalanceDateMax]
    filter[latestBalanceDateMin]:filter[latestBalanceDateMin]
    filter[totalMarketValue]:filter[totalMarketValue]
    filter[totalMarketValueMax]:filter[totalMarketValueMax]
    filter[totalMarketValueMin]:filter[totalMarketValueMin]
    filter[unmatched]:filter[unmatched]
              completionHandler: ^(Accounts output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var M76Api = require('m76_api');

var api = new M76Api.AccountApi()
var accept = accept_example; // {{String}} 
var authorization = authorization_example; // {{String}} 
var opts = { 
  'include': include_example, // {{String}} Include associations in requests. Allows comma-separated list of: contacts, groups, performance_history, positions, rep_codes, transactions, latest_performance_history, performance_detail.
  'filter[accountIdentifier]': filter[accountIdentifier]_example, // {{String}} 
  'filter[accountManagementType]': filter[accountManagementType]_example, // {{String}} 
  'filter[accountNumber]': filter[accountNumber]_example, // {{String}} 
  'filter[accountStatus]': filter[accountStatus]_example, // {{String}} 
  'filter[accountType]': filter[accountType]_example, // {{String}} 
  'filter[custodian]': filter[custodian]_example, // {{String}} 
  'filter[displayName]': filter[displayName]_example, // {{String}} Search by name/identifier.
  'filter[firmId]': filter[firmId]_example, // {{String}} 
  'filter[latestBalanceDate]': filter[latestBalanceDate]_example, // {{String}} 
  'filter[latestBalanceDateMax]': filter[latestBalanceDateMax]_example, // {{String}} 
  'filter[latestBalanceDateMin]': filter[latestBalanceDateMin]_example, // {{String}} 
  'filter[totalMarketValue]': 1.2, // {{BigDecimal}} 
  'filter[totalMarketValueMax]': 1.2, // {{BigDecimal}} 
  'filter[totalMarketValueMin]': 1.2, // {{BigDecimal}} 
  'filter[unmatched]': true // {{Boolean}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAccounts(accept, authorization, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getAccountsExample
    {
        public void main()
        {

            var apiInstance = new AccountApi();
            var accept = accept_example;  // String | 
            var authorization = authorization_example;  // String | 
            var include = include_example;  // String | Include associations in requests. Allows comma-separated list of: contacts, groups, performance_history, positions, rep_codes, transactions, latest_performance_history, performance_detail. (optional) 
            var filter[accountIdentifier] = filter[accountIdentifier]_example;  // String |  (optional) 
            var filter[accountManagementType] = filter[accountManagementType]_example;  // String |  (optional) 
            var filter[accountNumber] = filter[accountNumber]_example;  // String |  (optional) 
            var filter[accountStatus] = filter[accountStatus]_example;  // String |  (optional) 
            var filter[accountType] = filter[accountType]_example;  // String |  (optional) 
            var filter[custodian] = filter[custodian]_example;  // String |  (optional) 
            var filter[displayName] = filter[displayName]_example;  // String | Search by name/identifier. (optional) 
            var filter[firmId] = filter[firmId]_example;  // String |  (optional) 
            var filter[latestBalanceDate] = filter[latestBalanceDate]_example;  // String |  (optional) 
            var filter[latestBalanceDateMax] = filter[latestBalanceDateMax]_example;  // String |  (optional) 
            var filter[latestBalanceDateMin] = filter[latestBalanceDateMin]_example;  // String |  (optional) 
            var filter[totalMarketValue] = 1.2;  // BigDecimal |  (optional) 
            var filter[totalMarketValueMax] = 1.2;  // BigDecimal |  (optional) 
            var filter[totalMarketValueMin] = 1.2;  // BigDecimal |  (optional) 
            var filter[unmatched] = true;  // Boolean |  (optional) 

            try
            {
                Accounts result = apiInstance.getAccounts(accept, authorization, include, filter[accountIdentifier], filter[accountManagementType], filter[accountNumber], filter[accountStatus], filter[accountType], filter[custodian], filter[displayName], filter[firmId], filter[latestBalanceDate], filter[latestBalanceDateMax], filter[latestBalanceDateMin], filter[totalMarketValue], filter[totalMarketValueMax], filter[totalMarketValueMin], filter[unmatched]);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AccountApi.getAccounts: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAccountApi();
$accept = accept_example; // String | 
$authorization = authorization_example; // String | 
$include = include_example; // String | Include associations in requests. Allows comma-separated list of: contacts, groups, performance_history, positions, rep_codes, transactions, latest_performance_history, performance_detail.
$filter[accountIdentifier] = filter[accountIdentifier]_example; // String | 
$filter[accountManagementType] = filter[accountManagementType]_example; // String | 
$filter[accountNumber] = filter[accountNumber]_example; // String | 
$filter[accountStatus] = filter[accountStatus]_example; // String | 
$filter[accountType] = filter[accountType]_example; // String | 
$filter[custodian] = filter[custodian]_example; // String | 
$filter[displayName] = filter[displayName]_example; // String | Search by name/identifier.
$filter[firmId] = filter[firmId]_example; // String | 
$filter[latestBalanceDate] = filter[latestBalanceDate]_example; // String | 
$filter[latestBalanceDateMax] = filter[latestBalanceDateMax]_example; // String | 
$filter[latestBalanceDateMin] = filter[latestBalanceDateMin]_example; // String | 
$filter[totalMarketValue] = 1.2; // BigDecimal | 
$filter[totalMarketValueMax] = 1.2; // BigDecimal | 
$filter[totalMarketValueMin] = 1.2; // BigDecimal | 
$filter[unmatched] = true; // Boolean | 

try {
    $result = $api_instance->getAccounts($accept, $authorization, $include, $filter[accountIdentifier], $filter[accountManagementType], $filter[accountNumber], $filter[accountStatus], $filter[accountType], $filter[custodian], $filter[displayName], $filter[firmId], $filter[latestBalanceDate], $filter[latestBalanceDateMax], $filter[latestBalanceDateMin], $filter[totalMarketValue], $filter[totalMarketValueMax], $filter[totalMarketValueMin], $filter[unmatched]);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AccountApi->getAccounts: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AccountApi;

my $api_instance = WWW::SwaggerClient::AccountApi->new();
my $accept = accept_example; # String | 
my $authorization = authorization_example; # String | 
my $include = include_example; # String | Include associations in requests. Allows comma-separated list of: contacts, groups, performance_history, positions, rep_codes, transactions, latest_performance_history, performance_detail.
my $filter[accountIdentifier] = filter[accountIdentifier]_example; # String | 
my $filter[accountManagementType] = filter[accountManagementType]_example; # String | 
my $filter[accountNumber] = filter[accountNumber]_example; # String | 
my $filter[accountStatus] = filter[accountStatus]_example; # String | 
my $filter[accountType] = filter[accountType]_example; # String | 
my $filter[custodian] = filter[custodian]_example; # String | 
my $filter[displayName] = filter[displayName]_example; # String | Search by name/identifier.
my $filter[firmId] = filter[firmId]_example; # String | 
my $filter[latestBalanceDate] = filter[latestBalanceDate]_example; # String | 
my $filter[latestBalanceDateMax] = filter[latestBalanceDateMax]_example; # String | 
my $filter[latestBalanceDateMin] = filter[latestBalanceDateMin]_example; # String | 
my $filter[totalMarketValue] = 1.2; # BigDecimal | 
my $filter[totalMarketValueMax] = 1.2; # BigDecimal | 
my $filter[totalMarketValueMin] = 1.2; # BigDecimal | 
my $filter[unmatched] = true; # Boolean | 

eval { 
    my $result = $api_instance->getAccounts(accept => $accept, authorization => $authorization, include => $include, filter[accountIdentifier] => $filter[accountIdentifier], filter[accountManagementType] => $filter[accountManagementType], filter[accountNumber] => $filter[accountNumber], filter[accountStatus] => $filter[accountStatus], filter[accountType] => $filter[accountType], filter[custodian] => $filter[custodian], filter[displayName] => $filter[displayName], filter[firmId] => $filter[firmId], filter[latestBalanceDate] => $filter[latestBalanceDate], filter[latestBalanceDateMax] => $filter[latestBalanceDateMax], filter[latestBalanceDateMin] => $filter[latestBalanceDateMin], filter[totalMarketValue] => $filter[totalMarketValue], filter[totalMarketValueMax] => $filter[totalMarketValueMax], filter[totalMarketValueMin] => $filter[totalMarketValueMin], filter[unmatched] => $filter[unmatched]);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountApi->getAccounts: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.AccountApi()
accept = accept_example # String | 
authorization = authorization_example # String | 
include = include_example # String | Include associations in requests. Allows comma-separated list of: contacts, groups, performance_history, positions, rep_codes, transactions, latest_performance_history, performance_detail. (optional)
filter[accountIdentifier] = filter[accountIdentifier]_example # String |  (optional)
filter[accountManagementType] = filter[accountManagementType]_example # String |  (optional)
filter[accountNumber] = filter[accountNumber]_example # String |  (optional)
filter[accountStatus] = filter[accountStatus]_example # String |  (optional)
filter[accountType] = filter[accountType]_example # String |  (optional)
filter[custodian] = filter[custodian]_example # String |  (optional)
filter[displayName] = filter[displayName]_example # String | Search by name/identifier. (optional)
filter[firmId] = filter[firmId]_example # String |  (optional)
filter[latestBalanceDate] = filter[latestBalanceDate]_example # String |  (optional)
filter[latestBalanceDateMax] = filter[latestBalanceDateMax]_example # String |  (optional)
filter[latestBalanceDateMin] = filter[latestBalanceDateMin]_example # String |  (optional)
filter[totalMarketValue] = 1.2 # BigDecimal |  (optional)
filter[totalMarketValueMax] = 1.2 # BigDecimal |  (optional)
filter[totalMarketValueMin] = 1.2 # BigDecimal |  (optional)
filter[unmatched] = true # Boolean |  (optional)

try: 
    api_response = api_instance.get_accounts(accept, authorization, include=include, filter[accountIdentifier]=filter[accountIdentifier], filter[accountManagementType]=filter[accountManagementType], filter[accountNumber]=filter[accountNumber], filter[accountStatus]=filter[accountStatus], filter[accountType]=filter[accountType], filter[custodian]=filter[custodian], filter[displayName]=filter[displayName], filter[firmId]=filter[firmId], filter[latestBalanceDate]=filter[latestBalanceDate], filter[latestBalanceDateMax]=filter[latestBalanceDateMax], filter[latestBalanceDateMin]=filter[latestBalanceDateMin], filter[totalMarketValue]=filter[totalMarketValue], filter[totalMarketValueMax]=filter[totalMarketValueMax], filter[totalMarketValueMin]=filter[totalMarketValueMin], filter[unmatched]=filter[unmatched])
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountApi->getAccounts: %s\n" % e)

Parameters

Header parameters
Name Description
Accept*
String
Required
Authorization*
String
Required
Query parameters
Name Description
include
String
Include associations in requests. Allows comma-separated list of: contacts, groups, performance_history, positions, rep_codes, transactions, latest_performance_history, performance_detail.
filter[account_identifier]
String
filter[account_management_type]
String
filter[account_number]
String
filter[account_status]
String
filter[account_type]
String
filter[custodian]
String
filter[display_name]
String
Search by name/identifier.
filter[firm_id]
String
filter[latest_balance_date]
String
filter[latest_balance_date_max]
String
filter[latest_balance_date_min]
String
filter[total_market_value]
BigDecimal
filter[total_market_value_max]
BigDecimal
filter[total_market_value_min]
BigDecimal
filter[unmatched]
Boolean

Responses

Status: 200 - accounts response

Status: 401 - not authorized

Status: 403 - forbidden

Status: 500 - unexpected error


patchAccount

Update account associations by adding/removing rep_codes. An account_rep_codes_attributes array of rep_code_ids may be passed into the body params like so Add Rep_code: { account_rep_codes_attributes: [{rep_code_id: 4}, {rep_code_id: 5}]} Remove Rep_code: { account_rep_codes_attributes: [{rep_code_id: 4, _destroy: 1}]} Update account associations by adding/removing groups. An account_groups_attributes array of group_ids may be passed into the body params like so Add Group: { account_groups_attributes: [{group_id: 4}, {group_id: 5}]} Remove Group: { account_groups_attributes: [{group_id: 4, _destroy: 1}]} Update account associations by adding/removing contacts. An account_contacts_attributes array of contact_ids may be passed into the body params like so Add Contact: { account_contacts_attributes: [{contact_id: 4}, {contact_id: 5}]} Remove Contact: { account_contacts_attributes: [{contact_id: 4, _destroy: 1}]}


/account/{id}

Usage and SDK Samples

curl -X PATCH\
-H "Accept: application/vnd.m76.v2+json"\
-H "Content-Type: application/vnd.m76.v2+json"\
"https://api.m76.co//account/{id}"
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) {
        
        AccountApi apiInstance = new AccountApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        String id = id_example; // String | 
        PatchAccount body = ; // PatchAccount | 
        try {
            apiInstance.patchAccount(accept, authorization, id, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountApi#patchAccount");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AccountApi;

public class AccountApiExample {

    public static void main(String[] args) {
        AccountApi apiInstance = new AccountApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        String id = id_example; // String | 
        PatchAccount body = ; // PatchAccount | 
        try {
            apiInstance.patchAccount(accept, authorization, id, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountApi#patchAccount");
            e.printStackTrace();
        }
    }
}
String *accept = accept_example; // 
String *authorization = authorization_example; // 
String *id = id_example; // 
PatchAccount *body = ; //  (optional)

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

[apiInstance patchAccountWith:accept
    authorization:authorization
    id:id
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var M76Api = require('m76_api');

var api = new M76Api.AccountApi()
var accept = accept_example; // {{String}} 
var authorization = authorization_example; // {{String}} 
var id = id_example; // {{String}} 
var opts = { 
  'body':  // {{PatchAccount}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.patchAccount(acceptauthorizationid, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class patchAccountExample
    {
        public void main()
        {

            var apiInstance = new AccountApi();
            var accept = accept_example;  // String | 
            var authorization = authorization_example;  // String | 
            var id = id_example;  // String | 
            var body = new PatchAccount(); // PatchAccount |  (optional) 

            try
            {
                apiInstance.patchAccount(accept, authorization, id, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AccountApi.patchAccount: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAccountApi();
$accept = accept_example; // String | 
$authorization = authorization_example; // String | 
$id = id_example; // String | 
$body = ; // PatchAccount | 

try {
    $api_instance->patchAccount($accept, $authorization, $id, $body);
} catch (Exception $e) {
    echo 'Exception when calling AccountApi->patchAccount: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AccountApi;

my $api_instance = WWW::SwaggerClient::AccountApi->new();
my $accept = accept_example; # String | 
my $authorization = authorization_example; # String | 
my $id = id_example; # String | 
my $body = WWW::SwaggerClient::Object::PatchAccount->new(); # PatchAccount | 

eval { 
    $api_instance->patchAccount(accept => $accept, authorization => $authorization, id => $id, body => $body);
};
if ($@) {
    warn "Exception when calling AccountApi->patchAccount: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.AccountApi()
accept = accept_example # String | 
authorization = authorization_example # String | 
id = id_example # String | 
body =  # PatchAccount |  (optional)

try: 
    api_instance.patch_account(accept, authorization, id, body=body)
except ApiException as e:
    print("Exception when calling AccountApi->patchAccount: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Header parameters
Name Description
Accept*
String
Required
Authorization*
String
Required
Body parameters
Name Description
body

Responses

Status: 401 - not authorized

Status: 403 - forbidden

Status: 500 - unexpected error


AggregationCalculator

accountPositions

Returns all positions for a set of accounts


 aggregation_calculator

Usage and SDK Samples

curl -X GET\
-H "Accept: application/vnd.m76.v2+json"\
"https://api.m76.co/ aggregation_calculator?account_ids=&calculation="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AggregationCalculatorApi;

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

public class AggregationCalculatorApiExample {

    public static void main(String[] args) {
        
        AggregationCalculatorApi apiInstance = new AggregationCalculatorApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        String id = id_example; // String | 
        array[String] accountIds = ; // array[String] | comma separated Account ids/slugs (max 25)
        String calculation = calculation_example; // String | type of aggregation (positions)
        try {
            Positions result = apiInstance.accountPositions(accept, authorization, id, accountIds, calculation);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AggregationCalculatorApi#accountPositions");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AggregationCalculatorApi;

public class AggregationCalculatorApiExample {

    public static void main(String[] args) {
        AggregationCalculatorApi apiInstance = new AggregationCalculatorApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        String id = id_example; // String | 
        array[String] accountIds = ; // array[String] | comma separated Account ids/slugs (max 25)
        String calculation = calculation_example; // String | type of aggregation (positions)
        try {
            Positions result = apiInstance.accountPositions(accept, authorization, id, accountIds, calculation);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AggregationCalculatorApi#accountPositions");
            e.printStackTrace();
        }
    }
}
String *accept = accept_example; // 
String *authorization = authorization_example; // 
String *id = id_example; // 
array[String] *accountIds = ; // comma separated Account ids/slugs (max 25) (optional)
String *calculation = calculation_example; // type of aggregation (positions) (optional)

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

[apiInstance accountPositionsWith:accept
    authorization:authorization
    id:id
    accountIds:accountIds
    calculation:calculation
              completionHandler: ^(Positions output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var M76Api = require('m76_api');

var api = new M76Api.AggregationCalculatorApi()
var accept = accept_example; // {{String}} 
var authorization = authorization_example; // {{String}} 
var id = id_example; // {{String}} 
var opts = { 
  'accountIds': , // {{array[String]}} comma separated Account ids/slugs (max 25)
  'calculation': calculation_example // {{String}} type of aggregation (positions)
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.accountPositions(accept, authorization, id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class accountPositionsExample
    {
        public void main()
        {

            var apiInstance = new AggregationCalculatorApi();
            var accept = accept_example;  // String | 
            var authorization = authorization_example;  // String | 
            var id = id_example;  // String | 
            var accountIds = new array[String](); // array[String] | comma separated Account ids/slugs (max 25) (optional) 
            var calculation = calculation_example;  // String | type of aggregation (positions) (optional) 

            try
            {
                Positions result = apiInstance.accountPositions(accept, authorization, id, accountIds, calculation);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AggregationCalculatorApi.accountPositions: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAggregationCalculatorApi();
$accept = accept_example; // String | 
$authorization = authorization_example; // String | 
$id = id_example; // String | 
$accountIds = ; // array[String] | comma separated Account ids/slugs (max 25)
$calculation = calculation_example; // String | type of aggregation (positions)

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

my $api_instance = WWW::SwaggerClient::AggregationCalculatorApi->new();
my $accept = accept_example; # String | 
my $authorization = authorization_example; # String | 
my $id = id_example; # String | 
my $accountIds = []; # array[String] | comma separated Account ids/slugs (max 25)
my $calculation = calculation_example; # String | type of aggregation (positions)

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

# create an instance of the API class
api_instance = swagger_client.AggregationCalculatorApi()
accept = accept_example # String | 
authorization = authorization_example # String | 
id = id_example # String | 
accountIds =  # array[String] | comma separated Account ids/slugs (max 25) (optional)
calculation = calculation_example # String | type of aggregation (positions) (optional)

try: 
    api_response = api_instance.account_positions(accept, authorization, id, accountIds=accountIds, calculation=calculation)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AggregationCalculatorApi->accountPositions: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Header parameters
Name Description
Accept*
String
Required
Authorization*
String
Required
Query parameters
Name Description
account_ids
array[String]
comma separated Account ids/slugs (max 25)
calculation
String
type of aggregation (positions)

Responses

Status: 200 -

Status: 401 - not authorized

Status: 403 - forbidden

Status: 500 - unexpected error


accountTransactions

Returns all transactions for a set of accounts


 aggregation_calculator 

Usage and SDK Samples

curl -X GET\
-H "Accept: application/vnd.m76.v2+json"\
"https://api.m76.co/ aggregation_calculator ?account_ids=&calculation="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AggregationCalculatorApi;

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

public class AggregationCalculatorApiExample {

    public static void main(String[] args) {
        
        AggregationCalculatorApi apiInstance = new AggregationCalculatorApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        String id = id_example; // String | 
        array[String] accountIds = ; // array[String] | comma separated Account ids/slugs (max 25)
        String calculation = calculation_example; // String | type of aggregation (positions)
        try {
            Transactions result = apiInstance.accountTransactions(accept, authorization, id, accountIds, calculation);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AggregationCalculatorApi#accountTransactions");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AggregationCalculatorApi;

public class AggregationCalculatorApiExample {

    public static void main(String[] args) {
        AggregationCalculatorApi apiInstance = new AggregationCalculatorApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        String id = id_example; // String | 
        array[String] accountIds = ; // array[String] | comma separated Account ids/slugs (max 25)
        String calculation = calculation_example; // String | type of aggregation (positions)
        try {
            Transactions result = apiInstance.accountTransactions(accept, authorization, id, accountIds, calculation);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AggregationCalculatorApi#accountTransactions");
            e.printStackTrace();
        }
    }
}
String *accept = accept_example; // 
String *authorization = authorization_example; // 
String *id = id_example; // 
array[String] *accountIds = ; // comma separated Account ids/slugs (max 25) (optional)
String *calculation = calculation_example; // type of aggregation (positions) (optional)

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

[apiInstance accountTransactionsWith:accept
    authorization:authorization
    id:id
    accountIds:accountIds
    calculation:calculation
              completionHandler: ^(Transactions output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var M76Api = require('m76_api');

var api = new M76Api.AggregationCalculatorApi()
var accept = accept_example; // {{String}} 
var authorization = authorization_example; // {{String}} 
var id = id_example; // {{String}} 
var opts = { 
  'accountIds': , // {{array[String]}} comma separated Account ids/slugs (max 25)
  'calculation': calculation_example // {{String}} type of aggregation (positions)
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.accountTransactions(accept, authorization, id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class accountTransactionsExample
    {
        public void main()
        {

            var apiInstance = new AggregationCalculatorApi();
            var accept = accept_example;  // String | 
            var authorization = authorization_example;  // String | 
            var id = id_example;  // String | 
            var accountIds = new array[String](); // array[String] | comma separated Account ids/slugs (max 25) (optional) 
            var calculation = calculation_example;  // String | type of aggregation (positions) (optional) 

            try
            {
                Transactions result = apiInstance.accountTransactions(accept, authorization, id, accountIds, calculation);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AggregationCalculatorApi.accountTransactions: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAggregationCalculatorApi();
$accept = accept_example; // String | 
$authorization = authorization_example; // String | 
$id = id_example; // String | 
$accountIds = ; // array[String] | comma separated Account ids/slugs (max 25)
$calculation = calculation_example; // String | type of aggregation (positions)

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

my $api_instance = WWW::SwaggerClient::AggregationCalculatorApi->new();
my $accept = accept_example; # String | 
my $authorization = authorization_example; # String | 
my $id = id_example; # String | 
my $accountIds = []; # array[String] | comma separated Account ids/slugs (max 25)
my $calculation = calculation_example; # String | type of aggregation (positions)

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

# create an instance of the API class
api_instance = swagger_client.AggregationCalculatorApi()
accept = accept_example # String | 
authorization = authorization_example # String | 
id = id_example # String | 
accountIds =  # array[String] | comma separated Account ids/slugs (max 25) (optional)
calculation = calculation_example # String | type of aggregation (positions) (optional)

try: 
    api_response = api_instance.account_transactions(accept, authorization, id, accountIds=accountIds, calculation=calculation)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AggregationCalculatorApi->accountTransactions: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Header parameters
Name Description
Accept*
String
Required
Authorization*
String
Required
Query parameters
Name Description
account_ids
array[String]
comma separated Account ids/slugs (max 25)
calculation
String
type of aggregation (positions)

Responses

Status: 200 -

Status: 401 - not authorized

Status: 403 - forbidden

Status: 500 - unexpected error


performanceDetail

Returns the performance detail hash for the set of accounts given date, or the most recent end-of-month.


aggregation_calculator

Usage and SDK Samples

curl -X GET\
-H "Accept: application/vnd.m76.v2+json"\
"https://api.m76.co/aggregation_calculator?account_ids=&calculation=&as_of_date=&from_date="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AggregationCalculatorApi;

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

public class AggregationCalculatorApiExample {

    public static void main(String[] args) {
        
        AggregationCalculatorApi apiInstance = new AggregationCalculatorApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        String id = id_example; // String | 
        array[String] accountIds = ; // array[String] | comma separated Account ids/slugs (max 25)
        String calculation = calculation_example; // String | type of aggregation; (performance_detail)
        String asOfDate = asOfDate_example; // String | end date for performance_detail calculations
        String fromDate = fromDate_example; // String | start date for performance_detail calculation
        try {
            PerformanceDetail result = apiInstance.performanceDetail(accept, authorization, id, accountIds, calculation, asOfDate, fromDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AggregationCalculatorApi#performanceDetail");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AggregationCalculatorApi;

public class AggregationCalculatorApiExample {

    public static void main(String[] args) {
        AggregationCalculatorApi apiInstance = new AggregationCalculatorApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        String id = id_example; // String | 
        array[String] accountIds = ; // array[String] | comma separated Account ids/slugs (max 25)
        String calculation = calculation_example; // String | type of aggregation; (performance_detail)
        String asOfDate = asOfDate_example; // String | end date for performance_detail calculations
        String fromDate = fromDate_example; // String | start date for performance_detail calculation
        try {
            PerformanceDetail result = apiInstance.performanceDetail(accept, authorization, id, accountIds, calculation, asOfDate, fromDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AggregationCalculatorApi#performanceDetail");
            e.printStackTrace();
        }
    }
}
String *accept = accept_example; // 
String *authorization = authorization_example; // 
String *id = id_example; // 
array[String] *accountIds = ; // comma separated Account ids/slugs (max 25) (optional)
String *calculation = calculation_example; // type of aggregation; (performance_detail) (optional)
String *asOfDate = asOfDate_example; // end date for performance_detail calculations (optional)
String *fromDate = fromDate_example; // start date for performance_detail calculation (optional)

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

[apiInstance performanceDetailWith:accept
    authorization:authorization
    id:id
    accountIds:accountIds
    calculation:calculation
    asOfDate:asOfDate
    fromDate:fromDate
              completionHandler: ^(PerformanceDetail output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var M76Api = require('m76_api');

var api = new M76Api.AggregationCalculatorApi()
var accept = accept_example; // {{String}} 
var authorization = authorization_example; // {{String}} 
var id = id_example; // {{String}} 
var opts = { 
  'accountIds': , // {{array[String]}} comma separated Account ids/slugs (max 25)
  'calculation': calculation_example, // {{String}} type of aggregation; (performance_detail)
  'asOfDate': asOfDate_example, // {{String}} end date for performance_detail calculations
  'fromDate': fromDate_example // {{String}} start date for performance_detail calculation
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.performanceDetail(accept, authorization, id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class performanceDetailExample
    {
        public void main()
        {

            var apiInstance = new AggregationCalculatorApi();
            var accept = accept_example;  // String | 
            var authorization = authorization_example;  // String | 
            var id = id_example;  // String | 
            var accountIds = new array[String](); // array[String] | comma separated Account ids/slugs (max 25) (optional) 
            var calculation = calculation_example;  // String | type of aggregation; (performance_detail) (optional) 
            var asOfDate = asOfDate_example;  // String | end date for performance_detail calculations (optional) 
            var fromDate = fromDate_example;  // String | start date for performance_detail calculation (optional) 

            try
            {
                PerformanceDetail result = apiInstance.performanceDetail(accept, authorization, id, accountIds, calculation, asOfDate, fromDate);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AggregationCalculatorApi.performanceDetail: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAggregationCalculatorApi();
$accept = accept_example; // String | 
$authorization = authorization_example; // String | 
$id = id_example; // String | 
$accountIds = ; // array[String] | comma separated Account ids/slugs (max 25)
$calculation = calculation_example; // String | type of aggregation; (performance_detail)
$asOfDate = asOfDate_example; // String | end date for performance_detail calculations
$fromDate = fromDate_example; // String | start date for performance_detail calculation

try {
    $result = $api_instance->performanceDetail($accept, $authorization, $id, $accountIds, $calculation, $asOfDate, $fromDate);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AggregationCalculatorApi->performanceDetail: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AggregationCalculatorApi;

my $api_instance = WWW::SwaggerClient::AggregationCalculatorApi->new();
my $accept = accept_example; # String | 
my $authorization = authorization_example; # String | 
my $id = id_example; # String | 
my $accountIds = []; # array[String] | comma separated Account ids/slugs (max 25)
my $calculation = calculation_example; # String | type of aggregation; (performance_detail)
my $asOfDate = asOfDate_example; # String | end date for performance_detail calculations
my $fromDate = fromDate_example; # String | start date for performance_detail calculation

eval { 
    my $result = $api_instance->performanceDetail(accept => $accept, authorization => $authorization, id => $id, accountIds => $accountIds, calculation => $calculation, asOfDate => $asOfDate, fromDate => $fromDate);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AggregationCalculatorApi->performanceDetail: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.AggregationCalculatorApi()
accept = accept_example # String | 
authorization = authorization_example # String | 
id = id_example # String | 
accountIds =  # array[String] | comma separated Account ids/slugs (max 25) (optional)
calculation = calculation_example # String | type of aggregation; (performance_detail) (optional)
asOfDate = asOfDate_example # String | end date for performance_detail calculations (optional)
fromDate = fromDate_example # String | start date for performance_detail calculation (optional)

try: 
    api_response = api_instance.performance_detail(accept, authorization, id, accountIds=accountIds, calculation=calculation, asOfDate=asOfDate, fromDate=fromDate)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AggregationCalculatorApi->performanceDetail: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Header parameters
Name Description
Accept*
String
Required
Authorization*
String
Required
Query parameters
Name Description
account_ids
array[String]
comma separated Account ids/slugs (max 25)
calculation
String
type of aggregation; (performance_detail)
as_of_date
String
end date for performance_detail calculations
from_date
String
start date for performance_detail calculation

Responses

Status: 200 - performance detail response

Status: 401 - not authorized

Status: 403 - forbidden

Status: 500 - unexpected error


performanceHistory

Returns the performance history hash for a set of accounts.


aggregation_calculator 

Usage and SDK Samples

curl -X GET\
-H "Accept: application/vnd.m76.v2+json"\
"https://api.m76.co/aggregation_calculator ?account_ids=&calculation="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AggregationCalculatorApi;

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

public class AggregationCalculatorApiExample {

    public static void main(String[] args) {
        
        AggregationCalculatorApi apiInstance = new AggregationCalculatorApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        String id = id_example; // String | 
        array[String] accountIds = ; // array[String] | comma separated Account ids/slugs(max 25)
        String calculation = calculation_example; // String | type of aggregation (performance_history)
        try {
            PerformanceHistory result = apiInstance.performanceHistory(accept, authorization, id, accountIds, calculation);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AggregationCalculatorApi#performanceHistory");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AggregationCalculatorApi;

public class AggregationCalculatorApiExample {

    public static void main(String[] args) {
        AggregationCalculatorApi apiInstance = new AggregationCalculatorApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        String id = id_example; // String | 
        array[String] accountIds = ; // array[String] | comma separated Account ids/slugs(max 25)
        String calculation = calculation_example; // String | type of aggregation (performance_history)
        try {
            PerformanceHistory result = apiInstance.performanceHistory(accept, authorization, id, accountIds, calculation);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AggregationCalculatorApi#performanceHistory");
            e.printStackTrace();
        }
    }
}
String *accept = accept_example; // 
String *authorization = authorization_example; // 
String *id = id_example; // 
array[String] *accountIds = ; // comma separated Account ids/slugs(max 25) (optional)
String *calculation = calculation_example; // type of aggregation (performance_history) (optional)

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

[apiInstance performanceHistoryWith:accept
    authorization:authorization
    id:id
    accountIds:accountIds
    calculation:calculation
              completionHandler: ^(PerformanceHistory output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var M76Api = require('m76_api');

var api = new M76Api.AggregationCalculatorApi()
var accept = accept_example; // {{String}} 
var authorization = authorization_example; // {{String}} 
var id = id_example; // {{String}} 
var opts = { 
  'accountIds': , // {{array[String]}} comma separated Account ids/slugs(max 25)
  'calculation': calculation_example // {{String}} type of aggregation (performance_history)
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.performanceHistory(accept, authorization, id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class performanceHistoryExample
    {
        public void main()
        {

            var apiInstance = new AggregationCalculatorApi();
            var accept = accept_example;  // String | 
            var authorization = authorization_example;  // String | 
            var id = id_example;  // String | 
            var accountIds = new array[String](); // array[String] | comma separated Account ids/slugs(max 25) (optional) 
            var calculation = calculation_example;  // String | type of aggregation (performance_history) (optional) 

            try
            {
                PerformanceHistory result = apiInstance.performanceHistory(accept, authorization, id, accountIds, calculation);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AggregationCalculatorApi.performanceHistory: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAggregationCalculatorApi();
$accept = accept_example; // String | 
$authorization = authorization_example; // String | 
$id = id_example; // String | 
$accountIds = ; // array[String] | comma separated Account ids/slugs(max 25)
$calculation = calculation_example; // String | type of aggregation (performance_history)

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

my $api_instance = WWW::SwaggerClient::AggregationCalculatorApi->new();
my $accept = accept_example; # String | 
my $authorization = authorization_example; # String | 
my $id = id_example; # String | 
my $accountIds = []; # array[String] | comma separated Account ids/slugs(max 25)
my $calculation = calculation_example; # String | type of aggregation (performance_history)

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

# create an instance of the API class
api_instance = swagger_client.AggregationCalculatorApi()
accept = accept_example # String | 
authorization = authorization_example # String | 
id = id_example # String | 
accountIds =  # array[String] | comma separated Account ids/slugs(max 25) (optional)
calculation = calculation_example # String | type of aggregation (performance_history) (optional)

try: 
    api_response = api_instance.performance_history(accept, authorization, id, accountIds=accountIds, calculation=calculation)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AggregationCalculatorApi->performanceHistory: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Header parameters
Name Description
Accept*
String
Required
Authorization*
String
Required
Query parameters
Name Description
account_ids
array[String]
comma separated Account ids/slugs(max 25)
calculation
String
type of aggregation (performance_history)

Responses

Status: 200 -

Status: 401 - not authorized

Status: 403 - forbidden

Status: 500 - unexpected error


CategorySharing

deleteCategorySharing

Deletes a category_sharing


category_sharings/{id}

Usage and SDK Samples

curl -X DELETE\
-H "Accept: application/vnd.m76.v2+json"\
"https://api.m76.co/category_sharings/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CategorySharingApi;

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

public class CategorySharingApiExample {

    public static void main(String[] args) {
        
        CategorySharingApi apiInstance = new CategorySharingApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        String id = id_example; // String | 
        try {
            apiInstance.deleteCategorySharing(accept, authorization, id);
        } catch (ApiException e) {
            System.err.println("Exception when calling CategorySharingApi#deleteCategorySharing");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CategorySharingApi;

public class CategorySharingApiExample {

    public static void main(String[] args) {
        CategorySharingApi apiInstance = new CategorySharingApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        String id = id_example; // String | 
        try {
            apiInstance.deleteCategorySharing(accept, authorization, id);
        } catch (ApiException e) {
            System.err.println("Exception when calling CategorySharingApi#deleteCategorySharing");
            e.printStackTrace();
        }
    }
}
String *accept = accept_example; // 
String *authorization = authorization_example; // 
String *id = id_example; // 

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

[apiInstance deleteCategorySharingWith:accept
    authorization:authorization
    id:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var M76Api = require('m76_api');

var api = new M76Api.CategorySharingApi()
var accept = accept_example; // {{String}} 
var authorization = authorization_example; // {{String}} 
var id = id_example; // {{String}} 

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

namespace Example
{
    public class deleteCategorySharingExample
    {
        public void main()
        {

            var apiInstance = new CategorySharingApi();
            var accept = accept_example;  // String | 
            var authorization = authorization_example;  // String | 
            var id = id_example;  // String | 

            try
            {
                apiInstance.deleteCategorySharing(accept, authorization, id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CategorySharingApi.deleteCategorySharing: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiCategorySharingApi();
$accept = accept_example; // String | 
$authorization = authorization_example; // String | 
$id = id_example; // String | 

try {
    $api_instance->deleteCategorySharing($accept, $authorization, $id);
} catch (Exception $e) {
    echo 'Exception when calling CategorySharingApi->deleteCategorySharing: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CategorySharingApi;

my $api_instance = WWW::SwaggerClient::CategorySharingApi->new();
my $accept = accept_example; # String | 
my $authorization = authorization_example; # String | 
my $id = id_example; # String | 

eval { 
    $api_instance->deleteCategorySharing(accept => $accept, authorization => $authorization, id => $id);
};
if ($@) {
    warn "Exception when calling CategorySharingApi->deleteCategorySharing: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.CategorySharingApi()
accept = accept_example # String | 
authorization = authorization_example # String | 
id = id_example # String | 

try: 
    api_instance.delete_category_sharing(accept, authorization, id)
except ApiException as e:
    print("Exception when calling CategorySharingApi->deleteCategorySharing: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Header parameters
Name Description
Accept*
String
Required
Authorization*
String
Required

Responses

Status: 401 - not authorized

Status: 403 - forbidden

Status: 500 - unexpected error


getCategorySharing

Returns a single category_sharing if the user has access


category_sharings/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/vnd.m76.v2+json"\
"https://api.m76.co/category_sharings/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CategorySharingApi;

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

public class CategorySharingApiExample {

    public static void main(String[] args) {
        
        CategorySharingApi apiInstance = new CategorySharingApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        String id = id_example; // String | 
        try {
            CategorySharing result = apiInstance.getCategorySharing(accept, authorization, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CategorySharingApi#getCategorySharing");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CategorySharingApi;

public class CategorySharingApiExample {

    public static void main(String[] args) {
        CategorySharingApi apiInstance = new CategorySharingApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        String id = id_example; // String | 
        try {
            CategorySharing result = apiInstance.getCategorySharing(accept, authorization, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CategorySharingApi#getCategorySharing");
            e.printStackTrace();
        }
    }
}
String *accept = accept_example; // 
String *authorization = authorization_example; // 
String *id = id_example; // 

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

[apiInstance getCategorySharingWith:accept
    authorization:authorization
    id:id
              completionHandler: ^(CategorySharing output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var M76Api = require('m76_api');

var api = new M76Api.CategorySharingApi()
var accept = accept_example; // {{String}} 
var authorization = authorization_example; // {{String}} 
var id = id_example; // {{String}} 

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

namespace Example
{
    public class getCategorySharingExample
    {
        public void main()
        {

            var apiInstance = new CategorySharingApi();
            var accept = accept_example;  // String | 
            var authorization = authorization_example;  // String | 
            var id = id_example;  // String | 

            try
            {
                CategorySharing result = apiInstance.getCategorySharing(accept, authorization, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CategorySharingApi.getCategorySharing: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiCategorySharingApi();
$accept = accept_example; // String | 
$authorization = authorization_example; // String | 
$id = id_example; // String | 

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

my $api_instance = WWW::SwaggerClient::CategorySharingApi->new();
my $accept = accept_example; # String | 
my $authorization = authorization_example; # String | 
my $id = id_example; # String | 

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

# create an instance of the API class
api_instance = swagger_client.CategorySharingApi()
accept = accept_example # String | 
authorization = authorization_example # String | 
id = id_example # String | 

try: 
    api_response = api_instance.get_category_sharing(accept, authorization, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CategorySharingApi->getCategorySharing: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Header parameters
Name Description
Accept*
String
Required
Authorization*
String
Required

Responses

Status: 200 - category_sharing response

Status: 401 - not authorized

Status: 403 - forbidden

Status: 500 - unexpected error


getCategorySharings

Returns a paginated response of all available category_sharings. Allows filtering on the listed attributes as well as those on include-able associations by prefixing the association name (e.g. accounts_account_number).


category_sharings

Usage and SDK Samples

curl -X GET\
-H "Accept: application/vnd.m76.v2+json"\
"https://api.m76.co/category_sharings?filter[calendar_read]=&filter[calendar_write]=&filter[client_read]=&filter[client_write]=&filter[display_name]=&filter[files_read]=&filter[files_write]=&filter[shared_by_user_id]=&filter[shared_with_user_id]="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CategorySharingApi;

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

public class CategorySharingApiExample {

    public static void main(String[] args) {
        
        CategorySharingApi apiInstance = new CategorySharingApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        Boolean filter[calendarRead] = true; // Boolean | 
        Boolean filter[calendarWrite] = true; // Boolean | 
        Boolean filter[clientRead] = true; // Boolean | 
        Boolean filter[clientWrite] = true; // Boolean | 
        String filter[displayName] = filter[displayName]_example; // String | Search by name/identifier.
        Boolean filter[filesRead] = true; // Boolean | 
        Boolean filter[filesWrite] = true; // Boolean | 
        String filter[sharedByUserId] = filter[sharedByUserId]_example; // String | 
        String filter[sharedWithUserId] = filter[sharedWithUserId]_example; // String | 
        try {
            CategorySharings result = apiInstance.getCategorySharings(accept, authorization, filter[calendarRead], filter[calendarWrite], filter[clientRead], filter[clientWrite], filter[displayName], filter[filesRead], filter[filesWrite], filter[sharedByUserId], filter[sharedWithUserId]);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CategorySharingApi#getCategorySharings");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CategorySharingApi;

public class CategorySharingApiExample {

    public static void main(String[] args) {
        CategorySharingApi apiInstance = new CategorySharingApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        Boolean filter[calendarRead] = true; // Boolean | 
        Boolean filter[calendarWrite] = true; // Boolean | 
        Boolean filter[clientRead] = true; // Boolean | 
        Boolean filter[clientWrite] = true; // Boolean | 
        String filter[displayName] = filter[displayName]_example; // String | Search by name/identifier.
        Boolean filter[filesRead] = true; // Boolean | 
        Boolean filter[filesWrite] = true; // Boolean | 
        String filter[sharedByUserId] = filter[sharedByUserId]_example; // String | 
        String filter[sharedWithUserId] = filter[sharedWithUserId]_example; // String | 
        try {
            CategorySharings result = apiInstance.getCategorySharings(accept, authorization, filter[calendarRead], filter[calendarWrite], filter[clientRead], filter[clientWrite], filter[displayName], filter[filesRead], filter[filesWrite], filter[sharedByUserId], filter[sharedWithUserId]);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CategorySharingApi#getCategorySharings");
            e.printStackTrace();
        }
    }
}
String *accept = accept_example; // 
String *authorization = authorization_example; // 
Boolean *filter[calendarRead] = true; //  (optional)
Boolean *filter[calendarWrite] = true; //  (optional)
Boolean *filter[clientRead] = true; //  (optional)
Boolean *filter[clientWrite] = true; //  (optional)
String *filter[displayName] = filter[displayName]_example; // Search by name/identifier. (optional)
Boolean *filter[filesRead] = true; //  (optional)
Boolean *filter[filesWrite] = true; //  (optional)
String *filter[sharedByUserId] = filter[sharedByUserId]_example; //  (optional)
String *filter[sharedWithUserId] = filter[sharedWithUserId]_example; //  (optional)

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

[apiInstance getCategorySharingsWith:accept
    authorization:authorization
    filter[calendarRead]:filter[calendarRead]
    filter[calendarWrite]:filter[calendarWrite]
    filter[clientRead]:filter[clientRead]
    filter[clientWrite]:filter[clientWrite]
    filter[displayName]:filter[displayName]
    filter[filesRead]:filter[filesRead]
    filter[filesWrite]:filter[filesWrite]
    filter[sharedByUserId]:filter[sharedByUserId]
    filter[sharedWithUserId]:filter[sharedWithUserId]
              completionHandler: ^(CategorySharings output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var M76Api = require('m76_api');

var api = new M76Api.CategorySharingApi()
var accept = accept_example; // {{String}} 
var authorization = authorization_example; // {{String}} 
var opts = { 
  'filter[calendarRead]': true, // {{Boolean}} 
  'filter[calendarWrite]': true, // {{Boolean}} 
  'filter[clientRead]': true, // {{Boolean}} 
  'filter[clientWrite]': true, // {{Boolean}} 
  'filter[displayName]': filter[displayName]_example, // {{String}} Search by name/identifier.
  'filter[filesRead]': true, // {{Boolean}} 
  'filter[filesWrite]': true, // {{Boolean}} 
  'filter[sharedByUserId]': filter[sharedByUserId]_example, // {{String}} 
  'filter[sharedWithUserId]': filter[sharedWithUserId]_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getCategorySharings(accept, authorization, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getCategorySharingsExample
    {
        public void main()
        {

            var apiInstance = new CategorySharingApi();
            var accept = accept_example;  // String | 
            var authorization = authorization_example;  // String | 
            var filter[calendarRead] = true;  // Boolean |  (optional) 
            var filter[calendarWrite] = true;  // Boolean |  (optional) 
            var filter[clientRead] = true;  // Boolean |  (optional) 
            var filter[clientWrite] = true;  // Boolean |  (optional) 
            var filter[displayName] = filter[displayName]_example;  // String | Search by name/identifier. (optional) 
            var filter[filesRead] = true;  // Boolean |  (optional) 
            var filter[filesWrite] = true;  // Boolean |  (optional) 
            var filter[sharedByUserId] = filter[sharedByUserId]_example;  // String |  (optional) 
            var filter[sharedWithUserId] = filter[sharedWithUserId]_example;  // String |  (optional) 

            try
            {
                CategorySharings result = apiInstance.getCategorySharings(accept, authorization, filter[calendarRead], filter[calendarWrite], filter[clientRead], filter[clientWrite], filter[displayName], filter[filesRead], filter[filesWrite], filter[sharedByUserId], filter[sharedWithUserId]);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CategorySharingApi.getCategorySharings: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiCategorySharingApi();
$accept = accept_example; // String | 
$authorization = authorization_example; // String | 
$filter[calendarRead] = true; // Boolean | 
$filter[calendarWrite] = true; // Boolean | 
$filter[clientRead] = true; // Boolean | 
$filter[clientWrite] = true; // Boolean | 
$filter[displayName] = filter[displayName]_example; // String | Search by name/identifier.
$filter[filesRead] = true; // Boolean | 
$filter[filesWrite] = true; // Boolean | 
$filter[sharedByUserId] = filter[sharedByUserId]_example; // String | 
$filter[sharedWithUserId] = filter[sharedWithUserId]_example; // String | 

try {
    $result = $api_instance->getCategorySharings($accept, $authorization, $filter[calendarRead], $filter[calendarWrite], $filter[clientRead], $filter[clientWrite], $filter[displayName], $filter[filesRead], $filter[filesWrite], $filter[sharedByUserId], $filter[sharedWithUserId]);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CategorySharingApi->getCategorySharings: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CategorySharingApi;

my $api_instance = WWW::SwaggerClient::CategorySharingApi->new();
my $accept = accept_example; # String | 
my $authorization = authorization_example; # String | 
my $filter[calendarRead] = true; # Boolean | 
my $filter[calendarWrite] = true; # Boolean | 
my $filter[clientRead] = true; # Boolean | 
my $filter[clientWrite] = true; # Boolean | 
my $filter[displayName] = filter[displayName]_example; # String | Search by name/identifier.
my $filter[filesRead] = true; # Boolean | 
my $filter[filesWrite] = true; # Boolean | 
my $filter[sharedByUserId] = filter[sharedByUserId]_example; # String | 
my $filter[sharedWithUserId] = filter[sharedWithUserId]_example; # String | 

eval { 
    my $result = $api_instance->getCategorySharings(accept => $accept, authorization => $authorization, filter[calendarRead] => $filter[calendarRead], filter[calendarWrite] => $filter[calendarWrite], filter[clientRead] => $filter[clientRead], filter[clientWrite] => $filter[clientWrite], filter[displayName] => $filter[displayName], filter[filesRead] => $filter[filesRead], filter[filesWrite] => $filter[filesWrite], filter[sharedByUserId] => $filter[sharedByUserId], filter[sharedWithUserId] => $filter[sharedWithUserId]);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CategorySharingApi->getCategorySharings: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.CategorySharingApi()
accept = accept_example # String | 
authorization = authorization_example # String | 
filter[calendarRead] = true # Boolean |  (optional)
filter[calendarWrite] = true # Boolean |  (optional)
filter[clientRead] = true # Boolean |  (optional)
filter[clientWrite] = true # Boolean |  (optional)
filter[displayName] = filter[displayName]_example # String | Search by name/identifier. (optional)
filter[filesRead] = true # Boolean |  (optional)
filter[filesWrite] = true # Boolean |  (optional)
filter[sharedByUserId] = filter[sharedByUserId]_example # String |  (optional)
filter[sharedWithUserId] = filter[sharedWithUserId]_example # String |  (optional)

try: 
    api_response = api_instance.get_category_sharings(accept, authorization, filter[calendarRead]=filter[calendarRead], filter[calendarWrite]=filter[calendarWrite], filter[clientRead]=filter[clientRead], filter[clientWrite]=filter[clientWrite], filter[displayName]=filter[displayName], filter[filesRead]=filter[filesRead], filter[filesWrite]=filter[filesWrite], filter[sharedByUserId]=filter[sharedByUserId], filter[sharedWithUserId]=filter[sharedWithUserId])
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CategorySharingApi->getCategorySharings: %s\n" % e)

Parameters

Header parameters
Name Description
Accept*
String
Required
Authorization*
String
Required
Query parameters
Name Description
filter[calendar_read]
Boolean
filter[calendar_write]
Boolean
filter[client_read]
Boolean
filter[client_write]
Boolean
filter[display_name]
String
Search by name/identifier.
filter[files_read]
Boolean
filter[files_write]
Boolean
filter[shared_by_user_id]
String
filter[shared_with_user_id]
String

Responses

Status: 200 - category_sharings response

Status: 401 - not authorized

Status: 403 - forbidden

Status: 500 - unexpected error


patchCategorySharing

Updates a category_sharing


category_sharings/{id}

Usage and SDK Samples

curl -X PATCH\
-H "Accept: application/vnd.m76.v2+json"\
-H "Content-Type: application/vnd.m76.v2+json"\
"https://api.m76.co/category_sharings/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CategorySharingApi;

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

public class CategorySharingApiExample {

    public static void main(String[] args) {
        
        CategorySharingApi apiInstance = new CategorySharingApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        String id = id_example; // String | 
        PatchCategorySharing body = ; // PatchCategorySharing | 
        try {
            apiInstance.patchCategorySharing(accept, authorization, id, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling CategorySharingApi#patchCategorySharing");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CategorySharingApi;

public class CategorySharingApiExample {

    public static void main(String[] args) {
        CategorySharingApi apiInstance = new CategorySharingApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        String id = id_example; // String | 
        PatchCategorySharing body = ; // PatchCategorySharing | 
        try {
            apiInstance.patchCategorySharing(accept, authorization, id, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling CategorySharingApi#patchCategorySharing");
            e.printStackTrace();
        }
    }
}
String *accept = accept_example; // 
String *authorization = authorization_example; // 
String *id = id_example; // 
PatchCategorySharing *body = ; //  (optional)

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

[apiInstance patchCategorySharingWith:accept
    authorization:authorization
    id:id
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var M76Api = require('m76_api');

var api = new M76Api.CategorySharingApi()
var accept = accept_example; // {{String}} 
var authorization = authorization_example; // {{String}} 
var id = id_example; // {{String}} 
var opts = { 
  'body':  // {{PatchCategorySharing}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.patchCategorySharing(acceptauthorizationid, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class patchCategorySharingExample
    {
        public void main()
        {

            var apiInstance = new CategorySharingApi();
            var accept = accept_example;  // String | 
            var authorization = authorization_example;  // String | 
            var id = id_example;  // String | 
            var body = new PatchCategorySharing(); // PatchCategorySharing |  (optional) 

            try
            {
                apiInstance.patchCategorySharing(accept, authorization, id, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CategorySharingApi.patchCategorySharing: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiCategorySharingApi();
$accept = accept_example; // String | 
$authorization = authorization_example; // String | 
$id = id_example; // String | 
$body = ; // PatchCategorySharing | 

try {
    $api_instance->patchCategorySharing($accept, $authorization, $id, $body);
} catch (Exception $e) {
    echo 'Exception when calling CategorySharingApi->patchCategorySharing: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CategorySharingApi;

my $api_instance = WWW::SwaggerClient::CategorySharingApi->new();
my $accept = accept_example; # String | 
my $authorization = authorization_example; # String | 
my $id = id_example; # String | 
my $body = WWW::SwaggerClient::Object::PatchCategorySharing->new(); # PatchCategorySharing | 

eval { 
    $api_instance->patchCategorySharing(accept => $accept, authorization => $authorization, id => $id, body => $body);
};
if ($@) {
    warn "Exception when calling CategorySharingApi->patchCategorySharing: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.CategorySharingApi()
accept = accept_example # String | 
authorization = authorization_example # String | 
id = id_example # String | 
body =  # PatchCategorySharing |  (optional)

try: 
    api_instance.patch_category_sharing(accept, authorization, id, body=body)
except ApiException as e:
    print("Exception when calling CategorySharingApi->patchCategorySharing: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Header parameters
Name Description
Accept*
String
Required
Authorization*
String
Required
Body parameters
Name Description
body

Responses

Status: 401 - not authorized

Status: 403 - forbidden

Status: 500 - unexpected error


postCategorySharing

Creates a category_sharing


category_sharings

Usage and SDK Samples

curl -X POST\
-H "Accept: application/vnd.m76.v2+json"\
-H "Content-Type: application/vnd.m76.v2+json"\
"https://api.m76.co/category_sharings"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CategorySharingApi;

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

public class CategorySharingApiExample {

    public static void main(String[] args) {
        
        CategorySharingApi apiInstance = new CategorySharingApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        PostCategorySharing body = ; // PostCategorySharing | 
        try {
            apiInstance.postCategorySharing(accept, authorization, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling CategorySharingApi#postCategorySharing");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CategorySharingApi;

public class CategorySharingApiExample {

    public static void main(String[] args) {
        CategorySharingApi apiInstance = new CategorySharingApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        PostCategorySharing body = ; // PostCategorySharing | 
        try {
            apiInstance.postCategorySharing(accept, authorization, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling CategorySharingApi#postCategorySharing");
            e.printStackTrace();
        }
    }
}
String *accept = accept_example; // 
String *authorization = authorization_example; // 
PostCategorySharing *body = ; //  (optional)

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

[apiInstance postCategorySharingWith:accept
    authorization:authorization
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var M76Api = require('m76_api');

var api = new M76Api.CategorySharingApi()
var accept = accept_example; // {{String}} 
var authorization = authorization_example; // {{String}} 
var opts = { 
  'body':  // {{PostCategorySharing}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.postCategorySharing(acceptauthorization, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class postCategorySharingExample
    {
        public void main()
        {

            var apiInstance = new CategorySharingApi();
            var accept = accept_example;  // String | 
            var authorization = authorization_example;  // String | 
            var body = new PostCategorySharing(); // PostCategorySharing |  (optional) 

            try
            {
                apiInstance.postCategorySharing(accept, authorization, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CategorySharingApi.postCategorySharing: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiCategorySharingApi();
$accept = accept_example; // String | 
$authorization = authorization_example; // String | 
$body = ; // PostCategorySharing | 

try {
    $api_instance->postCategorySharing($accept, $authorization, $body);
} catch (Exception $e) {
    echo 'Exception when calling CategorySharingApi->postCategorySharing: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CategorySharingApi;

my $api_instance = WWW::SwaggerClient::CategorySharingApi->new();
my $accept = accept_example; # String | 
my $authorization = authorization_example; # String | 
my $body = WWW::SwaggerClient::Object::PostCategorySharing->new(); # PostCategorySharing | 

eval { 
    $api_instance->postCategorySharing(accept => $accept, authorization => $authorization, body => $body);
};
if ($@) {
    warn "Exception when calling CategorySharingApi->postCategorySharing: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.CategorySharingApi()
accept = accept_example # String | 
authorization = authorization_example # String | 
body =  # PostCategorySharing |  (optional)

try: 
    api_instance.post_category_sharing(accept, authorization, body=body)
except ApiException as e:
    print("Exception when calling CategorySharingApi->postCategorySharing: %s\n" % e)

Parameters

Header parameters
Name Description
Accept*
String
Required
Authorization*
String
Required
Body parameters
Name Description
body

Responses

Status: 401 - not authorized

Status: 403 - forbidden

Status: 500 - unexpected error


CategorySharings

sharedByMe

returns list of category_sharings shared with the current_user


category_sharings/shared_by_me

Usage and SDK Samples

curl -X GET\
-H "Accept: application/vnd.m76.v2+json"\
"https://api.m76.co/category_sharings/shared_by_me?filter[calendar_read]=&filter[calendar_write]=&filter[client_read]=&filter[client_write]=&filter[display_name]=&filter[files_read]=&filter[files_write]=&filter[shared_by_user_id]=&filter[shared_with_user_id]="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CategorySharingsApi;

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

public class CategorySharingsApiExample {

    public static void main(String[] args) {
        
        CategorySharingsApi apiInstance = new CategorySharingsApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        Boolean filter[calendarRead] = true; // Boolean | 
        Boolean filter[calendarWrite] = true; // Boolean | 
        Boolean filter[clientRead] = true; // Boolean | 
        Boolean filter[clientWrite] = true; // Boolean | 
        String filter[displayName] = filter[displayName]_example; // String | Search by name/identifier.
        Boolean filter[filesRead] = true; // Boolean | 
        Boolean filter[filesWrite] = true; // Boolean | 
        String filter[sharedByUserId] = filter[sharedByUserId]_example; // String | 
        String filter[sharedWithUserId] = filter[sharedWithUserId]_example; // String | 
        try {
            CategorySharings result = apiInstance.sharedByMe(accept, authorization, filter[calendarRead], filter[calendarWrite], filter[clientRead], filter[clientWrite], filter[displayName], filter[filesRead], filter[filesWrite], filter[sharedByUserId], filter[sharedWithUserId]);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CategorySharingsApi#sharedByMe");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CategorySharingsApi;

public class CategorySharingsApiExample {

    public static void main(String[] args) {
        CategorySharingsApi apiInstance = new CategorySharingsApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        Boolean filter[calendarRead] = true; // Boolean | 
        Boolean filter[calendarWrite] = true; // Boolean | 
        Boolean filter[clientRead] = true; // Boolean | 
        Boolean filter[clientWrite] = true; // Boolean | 
        String filter[displayName] = filter[displayName]_example; // String | Search by name/identifier.
        Boolean filter[filesRead] = true; // Boolean | 
        Boolean filter[filesWrite] = true; // Boolean | 
        String filter[sharedByUserId] = filter[sharedByUserId]_example; // String | 
        String filter[sharedWithUserId] = filter[sharedWithUserId]_example; // String | 
        try {
            CategorySharings result = apiInstance.sharedByMe(accept, authorization, filter[calendarRead], filter[calendarWrite], filter[clientRead], filter[clientWrite], filter[displayName], filter[filesRead], filter[filesWrite], filter[sharedByUserId], filter[sharedWithUserId]);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CategorySharingsApi#sharedByMe");
            e.printStackTrace();
        }
    }
}
String *accept = accept_example; // 
String *authorization = authorization_example; // 
Boolean *filter[calendarRead] = true; //  (optional)
Boolean *filter[calendarWrite] = true; //  (optional)
Boolean *filter[clientRead] = true; //  (optional)
Boolean *filter[clientWrite] = true; //  (optional)
String *filter[displayName] = filter[displayName]_example; // Search by name/identifier. (optional)
Boolean *filter[filesRead] = true; //  (optional)
Boolean *filter[filesWrite] = true; //  (optional)
String *filter[sharedByUserId] = filter[sharedByUserId]_example; //  (optional)
String *filter[sharedWithUserId] = filter[sharedWithUserId]_example; //  (optional)

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

[apiInstance sharedByMeWith:accept
    authorization:authorization
    filter[calendarRead]:filter[calendarRead]
    filter[calendarWrite]:filter[calendarWrite]
    filter[clientRead]:filter[clientRead]
    filter[clientWrite]:filter[clientWrite]
    filter[displayName]:filter[displayName]
    filter[filesRead]:filter[filesRead]
    filter[filesWrite]:filter[filesWrite]
    filter[sharedByUserId]:filter[sharedByUserId]
    filter[sharedWithUserId]:filter[sharedWithUserId]
              completionHandler: ^(CategorySharings output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var M76Api = require('m76_api');

var api = new M76Api.CategorySharingsApi()
var accept = accept_example; // {{String}} 
var authorization = authorization_example; // {{String}} 
var opts = { 
  'filter[calendarRead]': true, // {{Boolean}} 
  'filter[calendarWrite]': true, // {{Boolean}} 
  'filter[clientRead]': true, // {{Boolean}} 
  'filter[clientWrite]': true, // {{Boolean}} 
  'filter[displayName]': filter[displayName]_example, // {{String}} Search by name/identifier.
  'filter[filesRead]': true, // {{Boolean}} 
  'filter[filesWrite]': true, // {{Boolean}} 
  'filter[sharedByUserId]': filter[sharedByUserId]_example, // {{String}} 
  'filter[sharedWithUserId]': filter[sharedWithUserId]_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.sharedByMe(accept, authorization, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class sharedByMeExample
    {
        public void main()
        {

            var apiInstance = new CategorySharingsApi();
            var accept = accept_example;  // String | 
            var authorization = authorization_example;  // String | 
            var filter[calendarRead] = true;  // Boolean |  (optional) 
            var filter[calendarWrite] = true;  // Boolean |  (optional) 
            var filter[clientRead] = true;  // Boolean |  (optional) 
            var filter[clientWrite] = true;  // Boolean |  (optional) 
            var filter[displayName] = filter[displayName]_example;  // String | Search by name/identifier. (optional) 
            var filter[filesRead] = true;  // Boolean |  (optional) 
            var filter[filesWrite] = true;  // Boolean |  (optional) 
            var filter[sharedByUserId] = filter[sharedByUserId]_example;  // String |  (optional) 
            var filter[sharedWithUserId] = filter[sharedWithUserId]_example;  // String |  (optional) 

            try
            {
                CategorySharings result = apiInstance.sharedByMe(accept, authorization, filter[calendarRead], filter[calendarWrite], filter[clientRead], filter[clientWrite], filter[displayName], filter[filesRead], filter[filesWrite], filter[sharedByUserId], filter[sharedWithUserId]);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CategorySharingsApi.sharedByMe: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiCategorySharingsApi();
$accept = accept_example; // String | 
$authorization = authorization_example; // String | 
$filter[calendarRead] = true; // Boolean | 
$filter[calendarWrite] = true; // Boolean | 
$filter[clientRead] = true; // Boolean | 
$filter[clientWrite] = true; // Boolean | 
$filter[displayName] = filter[displayName]_example; // String | Search by name/identifier.
$filter[filesRead] = true; // Boolean | 
$filter[filesWrite] = true; // Boolean | 
$filter[sharedByUserId] = filter[sharedByUserId]_example; // String | 
$filter[sharedWithUserId] = filter[sharedWithUserId]_example; // String | 

try {
    $result = $api_instance->sharedByMe($accept, $authorization, $filter[calendarRead], $filter[calendarWrite], $filter[clientRead], $filter[clientWrite], $filter[displayName], $filter[filesRead], $filter[filesWrite], $filter[sharedByUserId], $filter[sharedWithUserId]);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CategorySharingsApi->sharedByMe: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CategorySharingsApi;

my $api_instance = WWW::SwaggerClient::CategorySharingsApi->new();
my $accept = accept_example; # String | 
my $authorization = authorization_example; # String | 
my $filter[calendarRead] = true; # Boolean | 
my $filter[calendarWrite] = true; # Boolean | 
my $filter[clientRead] = true; # Boolean | 
my $filter[clientWrite] = true; # Boolean | 
my $filter[displayName] = filter[displayName]_example; # String | Search by name/identifier.
my $filter[filesRead] = true; # Boolean | 
my $filter[filesWrite] = true; # Boolean | 
my $filter[sharedByUserId] = filter[sharedByUserId]_example; # String | 
my $filter[sharedWithUserId] = filter[sharedWithUserId]_example; # String | 

eval { 
    my $result = $api_instance->sharedByMe(accept => $accept, authorization => $authorization, filter[calendarRead] => $filter[calendarRead], filter[calendarWrite] => $filter[calendarWrite], filter[clientRead] => $filter[clientRead], filter[clientWrite] => $filter[clientWrite], filter[displayName] => $filter[displayName], filter[filesRead] => $filter[filesRead], filter[filesWrite] => $filter[filesWrite], filter[sharedByUserId] => $filter[sharedByUserId], filter[sharedWithUserId] => $filter[sharedWithUserId]);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CategorySharingsApi->sharedByMe: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.CategorySharingsApi()
accept = accept_example # String | 
authorization = authorization_example # String | 
filter[calendarRead] = true # Boolean |  (optional)
filter[calendarWrite] = true # Boolean |  (optional)
filter[clientRead] = true # Boolean |  (optional)
filter[clientWrite] = true # Boolean |  (optional)
filter[displayName] = filter[displayName]_example # String | Search by name/identifier. (optional)
filter[filesRead] = true # Boolean |  (optional)
filter[filesWrite] = true # Boolean |  (optional)
filter[sharedByUserId] = filter[sharedByUserId]_example # String |  (optional)
filter[sharedWithUserId] = filter[sharedWithUserId]_example # String |  (optional)

try: 
    api_response = api_instance.shared_by_me(accept, authorization, filter[calendarRead]=filter[calendarRead], filter[calendarWrite]=filter[calendarWrite], filter[clientRead]=filter[clientRead], filter[clientWrite]=filter[clientWrite], filter[displayName]=filter[displayName], filter[filesRead]=filter[filesRead], filter[filesWrite]=filter[filesWrite], filter[sharedByUserId]=filter[sharedByUserId], filter[sharedWithUserId]=filter[sharedWithUserId])
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CategorySharingsApi->sharedByMe: %s\n" % e)

Parameters

Header parameters
Name Description
Accept*
String
Required
Authorization*
String
Required
Query parameters
Name Description
filter[calendar_read]
Boolean
filter[calendar_write]
Boolean
filter[client_read]
Boolean
filter[client_write]
Boolean
filter[display_name]
String
Search by name/identifier.
filter[files_read]
Boolean
filter[files_write]
Boolean
filter[shared_by_user_id]
String
filter[shared_with_user_id]
String

Responses

Status: 200 - category_sharings response

Status: 401 - not authorized

Status: 403 - forbidden

Status: 500 - unexpected error


sharedWithMe

returns list of category_sharings shared with the current_user


category_sharings/shared_with_me

Usage and SDK Samples

curl -X GET\
-H "Accept: application/vnd.m76.v2+json"\
"https://api.m76.co/category_sharings/shared_with_me?filter[calendar_read]=&filter[calendar_write]=&filter[client_read]=&filter[client_write]=&filter[display_name]=&filter[files_read]=&filter[files_write]=&filter[shared_by_user_id]=&filter[shared_with_user_id]="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CategorySharingsApi;

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

public class CategorySharingsApiExample {

    public static void main(String[] args) {
        
        CategorySharingsApi apiInstance = new CategorySharingsApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        Boolean filter[calendarRead] = true; // Boolean | 
        Boolean filter[calendarWrite] = true; // Boolean | 
        Boolean filter[clientRead] = true; // Boolean | 
        Boolean filter[clientWrite] = true; // Boolean | 
        String filter[displayName] = filter[displayName]_example; // String | Search by name/identifier.
        Boolean filter[filesRead] = true; // Boolean | 
        Boolean filter[filesWrite] = true; // Boolean | 
        String filter[sharedByUserId] = filter[sharedByUserId]_example; // String | 
        String filter[sharedWithUserId] = filter[sharedWithUserId]_example; // String | 
        try {
            CategorySharings result = apiInstance.sharedWithMe(accept, authorization, filter[calendarRead], filter[calendarWrite], filter[clientRead], filter[clientWrite], filter[displayName], filter[filesRead], filter[filesWrite], filter[sharedByUserId], filter[sharedWithUserId]);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CategorySharingsApi#sharedWithMe");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CategorySharingsApi;

public class CategorySharingsApiExample {

    public static void main(String[] args) {
        CategorySharingsApi apiInstance = new CategorySharingsApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        Boolean filter[calendarRead] = true; // Boolean | 
        Boolean filter[calendarWrite] = true; // Boolean | 
        Boolean filter[clientRead] = true; // Boolean | 
        Boolean filter[clientWrite] = true; // Boolean | 
        String filter[displayName] = filter[displayName]_example; // String | Search by name/identifier.
        Boolean filter[filesRead] = true; // Boolean | 
        Boolean filter[filesWrite] = true; // Boolean | 
        String filter[sharedByUserId] = filter[sharedByUserId]_example; // String | 
        String filter[sharedWithUserId] = filter[sharedWithUserId]_example; // String | 
        try {
            CategorySharings result = apiInstance.sharedWithMe(accept, authorization, filter[calendarRead], filter[calendarWrite], filter[clientRead], filter[clientWrite], filter[displayName], filter[filesRead], filter[filesWrite], filter[sharedByUserId], filter[sharedWithUserId]);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CategorySharingsApi#sharedWithMe");
            e.printStackTrace();
        }
    }
}
String *accept = accept_example; // 
String *authorization = authorization_example; // 
Boolean *filter[calendarRead] = true; //  (optional)
Boolean *filter[calendarWrite] = true; //  (optional)
Boolean *filter[clientRead] = true; //  (optional)
Boolean *filter[clientWrite] = true; //  (optional)
String *filter[displayName] = filter[displayName]_example; // Search by name/identifier. (optional)
Boolean *filter[filesRead] = true; //  (optional)
Boolean *filter[filesWrite] = true; //  (optional)
String *filter[sharedByUserId] = filter[sharedByUserId]_example; //  (optional)
String *filter[sharedWithUserId] = filter[sharedWithUserId]_example; //  (optional)

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

[apiInstance sharedWithMeWith:accept
    authorization:authorization
    filter[calendarRead]:filter[calendarRead]
    filter[calendarWrite]:filter[calendarWrite]
    filter[clientRead]:filter[clientRead]
    filter[clientWrite]:filter[clientWrite]
    filter[displayName]:filter[displayName]
    filter[filesRead]:filter[filesRead]
    filter[filesWrite]:filter[filesWrite]
    filter[sharedByUserId]:filter[sharedByUserId]
    filter[sharedWithUserId]:filter[sharedWithUserId]
              completionHandler: ^(CategorySharings output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var M76Api = require('m76_api');

var api = new M76Api.CategorySharingsApi()
var accept = accept_example; // {{String}} 
var authorization = authorization_example; // {{String}} 
var opts = { 
  'filter[calendarRead]': true, // {{Boolean}} 
  'filter[calendarWrite]': true, // {{Boolean}} 
  'filter[clientRead]': true, // {{Boolean}} 
  'filter[clientWrite]': true, // {{Boolean}} 
  'filter[displayName]': filter[displayName]_example, // {{String}} Search by name/identifier.
  'filter[filesRead]': true, // {{Boolean}} 
  'filter[filesWrite]': true, // {{Boolean}} 
  'filter[sharedByUserId]': filter[sharedByUserId]_example, // {{String}} 
  'filter[sharedWithUserId]': filter[sharedWithUserId]_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.sharedWithMe(accept, authorization, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class sharedWithMeExample
    {
        public void main()
        {

            var apiInstance = new CategorySharingsApi();
            var accept = accept_example;  // String | 
            var authorization = authorization_example;  // String | 
            var filter[calendarRead] = true;  // Boolean |  (optional) 
            var filter[calendarWrite] = true;  // Boolean |  (optional) 
            var filter[clientRead] = true;  // Boolean |  (optional) 
            var filter[clientWrite] = true;  // Boolean |  (optional) 
            var filter[displayName] = filter[displayName]_example;  // String | Search by name/identifier. (optional) 
            var filter[filesRead] = true;  // Boolean |  (optional) 
            var filter[filesWrite] = true;  // Boolean |  (optional) 
            var filter[sharedByUserId] = filter[sharedByUserId]_example;  // String |  (optional) 
            var filter[sharedWithUserId] = filter[sharedWithUserId]_example;  // String |  (optional) 

            try
            {
                CategorySharings result = apiInstance.sharedWithMe(accept, authorization, filter[calendarRead], filter[calendarWrite], filter[clientRead], filter[clientWrite], filter[displayName], filter[filesRead], filter[filesWrite], filter[sharedByUserId], filter[sharedWithUserId]);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CategorySharingsApi.sharedWithMe: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiCategorySharingsApi();
$accept = accept_example; // String | 
$authorization = authorization_example; // String | 
$filter[calendarRead] = true; // Boolean | 
$filter[calendarWrite] = true; // Boolean | 
$filter[clientRead] = true; // Boolean | 
$filter[clientWrite] = true; // Boolean | 
$filter[displayName] = filter[displayName]_example; // String | Search by name/identifier.
$filter[filesRead] = true; // Boolean | 
$filter[filesWrite] = true; // Boolean | 
$filter[sharedByUserId] = filter[sharedByUserId]_example; // String | 
$filter[sharedWithUserId] = filter[sharedWithUserId]_example; // String | 

try {
    $result = $api_instance->sharedWithMe($accept, $authorization, $filter[calendarRead], $filter[calendarWrite], $filter[clientRead], $filter[clientWrite], $filter[displayName], $filter[filesRead], $filter[filesWrite], $filter[sharedByUserId], $filter[sharedWithUserId]);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CategorySharingsApi->sharedWithMe: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CategorySharingsApi;

my $api_instance = WWW::SwaggerClient::CategorySharingsApi->new();
my $accept = accept_example; # String | 
my $authorization = authorization_example; # String | 
my $filter[calendarRead] = true; # Boolean | 
my $filter[calendarWrite] = true; # Boolean | 
my $filter[clientRead] = true; # Boolean | 
my $filter[clientWrite] = true; # Boolean | 
my $filter[displayName] = filter[displayName]_example; # String | Search by name/identifier.
my $filter[filesRead] = true; # Boolean | 
my $filter[filesWrite] = true; # Boolean | 
my $filter[sharedByUserId] = filter[sharedByUserId]_example; # String | 
my $filter[sharedWithUserId] = filter[sharedWithUserId]_example; # String | 

eval { 
    my $result = $api_instance->sharedWithMe(accept => $accept, authorization => $authorization, filter[calendarRead] => $filter[calendarRead], filter[calendarWrite] => $filter[calendarWrite], filter[clientRead] => $filter[clientRead], filter[clientWrite] => $filter[clientWrite], filter[displayName] => $filter[displayName], filter[filesRead] => $filter[filesRead], filter[filesWrite] => $filter[filesWrite], filter[sharedByUserId] => $filter[sharedByUserId], filter[sharedWithUserId] => $filter[sharedWithUserId]);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CategorySharingsApi->sharedWithMe: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.CategorySharingsApi()
accept = accept_example # String | 
authorization = authorization_example # String | 
filter[calendarRead] = true # Boolean |  (optional)
filter[calendarWrite] = true # Boolean |  (optional)
filter[clientRead] = true # Boolean |  (optional)
filter[clientWrite] = true # Boolean |  (optional)
filter[displayName] = filter[displayName]_example # String | Search by name/identifier. (optional)
filter[filesRead] = true # Boolean |  (optional)
filter[filesWrite] = true # Boolean |  (optional)
filter[sharedByUserId] = filter[sharedByUserId]_example # String |  (optional)
filter[sharedWithUserId] = filter[sharedWithUserId]_example # String |  (optional)

try: 
    api_response = api_instance.shared_with_me(accept, authorization, filter[calendarRead]=filter[calendarRead], filter[calendarWrite]=filter[calendarWrite], filter[clientRead]=filter[clientRead], filter[clientWrite]=filter[clientWrite], filter[displayName]=filter[displayName], filter[filesRead]=filter[filesRead], filter[filesWrite]=filter[filesWrite], filter[sharedByUserId]=filter[sharedByUserId], filter[sharedWithUserId]=filter[sharedWithUserId])
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CategorySharingsApi->sharedWithMe: %s\n" % e)

Parameters

Header parameters
Name Description
Accept*
String
Required
Authorization*
String
Required
Query parameters
Name Description
filter[calendar_read]
Boolean
filter[calendar_write]
Boolean
filter[client_read]
Boolean
filter[client_write]
Boolean
filter[display_name]
String
Search by name/identifier.
filter[files_read]
Boolean
filter[files_write]
Boolean
filter[shared_by_user_id]
String
filter[shared_with_user_id]
String

Responses

Status: 200 - category_sharings response

Status: 401 - not authorized

Status: 403 - forbidden

Status: 500 - unexpected error


Contact

deleteContact

Deletes a contact


contacts/{id}

Usage and SDK Samples

curl -X DELETE\
-H "Accept: application/vnd.m76.v2+json"\
"https://api.m76.co/contacts/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ContactApi;

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

public class ContactApiExample {

    public static void main(String[] args) {
        
        ContactApi apiInstance = new ContactApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        String id = id_example; // String | 
        try {
            apiInstance.deleteContact(accept, authorization, id);
        } catch (ApiException e) {
            System.err.println("Exception when calling ContactApi#deleteContact");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ContactApi;

public class ContactApiExample {

    public static void main(String[] args) {
        ContactApi apiInstance = new ContactApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        String id = id_example; // String | 
        try {
            apiInstance.deleteContact(accept, authorization, id);
        } catch (ApiException e) {
            System.err.println("Exception when calling ContactApi#deleteContact");
            e.printStackTrace();
        }
    }
}
String *accept = accept_example; // 
String *authorization = authorization_example; // 
String *id = id_example; // 

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

[apiInstance deleteContactWith:accept
    authorization:authorization
    id:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var M76Api = require('m76_api');

var api = new M76Api.ContactApi()
var accept = accept_example; // {{String}} 
var authorization = authorization_example; // {{String}} 
var id = id_example; // {{String}} 

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

namespace Example
{
    public class deleteContactExample
    {
        public void main()
        {

            var apiInstance = new ContactApi();
            var accept = accept_example;  // String | 
            var authorization = authorization_example;  // String | 
            var id = id_example;  // String | 

            try
            {
                apiInstance.deleteContact(accept, authorization, id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ContactApi.deleteContact: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiContactApi();
$accept = accept_example; // String | 
$authorization = authorization_example; // String | 
$id = id_example; // String | 

try {
    $api_instance->deleteContact($accept, $authorization, $id);
} catch (Exception $e) {
    echo 'Exception when calling ContactApi->deleteContact: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ContactApi;

my $api_instance = WWW::SwaggerClient::ContactApi->new();
my $accept = accept_example; # String | 
my $authorization = authorization_example; # String | 
my $id = id_example; # String | 

eval { 
    $api_instance->deleteContact(accept => $accept, authorization => $authorization, id => $id);
};
if ($@) {
    warn "Exception when calling ContactApi->deleteContact: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ContactApi()
accept = accept_example # String | 
authorization = authorization_example # String | 
id = id_example # String | 

try: 
    api_instance.delete_contact(accept, authorization, id)
except ApiException as e:
    print("Exception when calling ContactApi->deleteContact: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Header parameters
Name Description
Accept*
String
Required
Authorization*
String
Required

Responses

Status: 401 - not authorized

Status: 403 - forbidden

Status: 500 - unexpected error


getContact

Returns a single contact if the user has access


contacts/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/vnd.m76.v2+json"\
"https://api.m76.co/contacts/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ContactApi;

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

public class ContactApiExample {

    public static void main(String[] args) {
        
        ContactApi apiInstance = new ContactApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        String id = id_example; // String | 
        try {
            Contact result = apiInstance.getContact(accept, authorization, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ContactApi#getContact");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ContactApi;

public class ContactApiExample {

    public static void main(String[] args) {
        ContactApi apiInstance = new ContactApi();
        String accept = accept_example; // String | 
        String authorization = authorization_example; // String | 
        String id = id_example; // String | 
        try {
            Contact result = apiInstance.getContact(accept, authorization, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ContactApi#getContact");
            e.printStackTrace();
        }
    }
}
String *accept = accept_example; // 
String *authorization = authorization_example; // 
String *id = id_example; // 

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

[apiInstance getContactWith:accept
    authorization:authorization
    id:id
              completionHandler: ^(Contact output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var M76Api = require('m76_api');

var api = new M76Api.ContactApi()
var accept = accept_example; // {{String}} 
var authorization = authorization_example; // {{String}} 
var id = id_example; // {{String}} 

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

namespace Example
{
    public class getContactExample
    {
        public void main()
        {

            var apiInstance = new ContactApi();
            var accept = accept_example;  // String | 
            var authorization = authorization_example;  // String | 
            var id = id_example;  // String | 

            try
            {
                Contact result = apiInstance.getContact(accept, authorization, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ContactApi.getContact: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiContactApi();
$accept = accept_example; // String | 
$authorization = authorization_example; // String | 
$id = id_example; // String | 

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

my $api_instance = WWW::SwaggerClient::ContactApi->new();
my $accept = accept_example; # String | 
my $authorization = authorization_example; # String | 
my $id = id_example; # String | 

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

# create an instance of the API class
api_instance = swagger_client.ContactApi()
accept = accept_example # String | 
authorization = authorization_example # String | 
id = id_example # String | 

try: 
    api_response = api_instance.get_contact(accept, authorization, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ContactApi->getContact: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Header parameters
Name Description
Accept*
String
Required
Authorization*
String
Required

Responses

Status: 200 - contact response

Status: 401 - not authorized

Status: 403 - forbidden

Status: 500 - unexpected error


getContactAccounts

Returns a paginated response of all available Accounts connected to the given contact


/contacts/{id}/accounts

Usage and SDK Samples