Openhealth Technologies - API

InDevelopment

apiV1PartnerIdReportListPost

Retrieve a list of ready reports for a given external ID


/api/v1/[partnerId]/report/list

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://openhealthtechnologies.com/api/v1/[partnerId]/report/list?page=&limit="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InDevelopmentApi;

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

public class InDevelopmentApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        InDevelopmentApi apiInstance = new InDevelopmentApi();
        Report_list_body body = ; // Report_list_body | 
        Integer page = 56; // Integer | Page number of the results (starts from 1)
        Integer limit = 56; // Integer | Number of results per page (up to 100)
        try {
            PaginatedList result = apiInstance.apiV1PartnerIdReportListPost(body, page, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InDevelopmentApi#apiV1PartnerIdReportListPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InDevelopmentApi;

public class InDevelopmentApiExample {

    public static void main(String[] args) {
        InDevelopmentApi apiInstance = new InDevelopmentApi();
        Report_list_body body = ; // Report_list_body | 
        Integer page = 56; // Integer | Page number of the results (starts from 1)
        Integer limit = 56; // Integer | Number of results per page (up to 100)
        try {
            PaginatedList result = apiInstance.apiV1PartnerIdReportListPost(body, page, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InDevelopmentApi#apiV1PartnerIdReportListPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Report_list_body *body = ; // 
Integer *page = 56; // Page number of the results (starts from 1) (optional) (default to 1)
Integer *limit = 56; // Number of results per page (up to 100) (optional) (default to 10)

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

// Retrieve a list of ready reports for a given external ID
[apiInstance apiV1PartnerIdReportListPostWith:body
    page:page
    limit:limit
              completionHandler: ^(PaginatedList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenhealthTechnologiesApi = require('openhealth_technologies___api');
var defaultClient = OpenhealthTechnologiesApi.ApiClient.instance;


var api = new OpenhealthTechnologiesApi.InDevelopmentApi()
var body = ; // {{Report_list_body}} 
var opts = { 
  'page': 56 // {{Integer}} Page number of the results (starts from 1)
  'limit': 56 // {{Integer}} Number of results per page (up to 100)
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiV1PartnerIdReportListPost(body, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new InDevelopmentApi();
            var body = new Report_list_body(); // Report_list_body | 
            var page = 56;  // Integer | Page number of the results (starts from 1) (optional)  (default to 1)
            var limit = 56;  // Integer | Number of results per page (up to 100) (optional)  (default to 10)

            try
            {
                // Retrieve a list of ready reports for a given external ID
                PaginatedList result = apiInstance.apiV1PartnerIdReportListPost(body, page, limit);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InDevelopmentApi.apiV1PartnerIdReportListPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiInDevelopmentApi();
$body = ; // Report_list_body | 
$page = 56; // Integer | Page number of the results (starts from 1)
$limit = 56; // Integer | Number of results per page (up to 100)

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


my $api_instance = WWW::SwaggerClient::InDevelopmentApi->new();
my $body = WWW::SwaggerClient::Object::Report_list_body->new(); # Report_list_body | 
my $page = 56; # Integer | Page number of the results (starts from 1)
my $limit = 56; # Integer | Number of results per page (up to 100)

eval { 
    my $result = $api_instance->apiV1PartnerIdReportListPost(body => $body, page => $page, limit => $limit);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InDevelopmentApi->apiV1PartnerIdReportListPost: $@\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.InDevelopmentApi()
body =  # Report_list_body | 
page = 56 # Integer | Page number of the results (starts from 1) (optional) (default to 1)
limit = 56 # Integer | Number of results per page (up to 100) (optional) (default to 10)

try: 
    # Retrieve a list of ready reports for a given external ID
    api_response = api_instance.api_v1_partner_id_report_list_post(body, page=page, limit=limit)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InDevelopmentApi->apiV1PartnerIdReportListPost: %s\n" % e)

Parameters

Body parameters
Name Description
body *
Query parameters
Name Description
page
Integer
Page number of the results (starts from 1)
limit
Integer
Number of results per page (up to 100)

Responses

Status: 200 - List of reports for the specified external ID


apiV1PartnerIdReportReportIdGet

Retrieve a specific report by ID


/api/v1/[partnerId]/report/{reportId}

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://openhealthtechnologies.com/api/v1/[partnerId]/report/{reportId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InDevelopmentApi;

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

public class InDevelopmentApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        InDevelopmentApi apiInstance = new InDevelopmentApi();
        String reportId = reportId_example; // String | 
        try {
            Upload result = apiInstance.apiV1PartnerIdReportReportIdGet(reportId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InDevelopmentApi#apiV1PartnerIdReportReportIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InDevelopmentApi;

public class InDevelopmentApiExample {

    public static void main(String[] args) {
        InDevelopmentApi apiInstance = new InDevelopmentApi();
        String reportId = reportId_example; // String | 
        try {
            Upload result = apiInstance.apiV1PartnerIdReportReportIdGet(reportId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InDevelopmentApi#apiV1PartnerIdReportReportIdGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *reportId = reportId_example; // 

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

// Retrieve a specific report by ID
[apiInstance apiV1PartnerIdReportReportIdGetWith:reportId
              completionHandler: ^(Upload output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenhealthTechnologiesApi = require('openhealth_technologies___api');
var defaultClient = OpenhealthTechnologiesApi.ApiClient.instance;


var api = new OpenhealthTechnologiesApi.InDevelopmentApi()
var reportId = reportId_example; // {{String}} 

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

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


            var apiInstance = new InDevelopmentApi();
            var reportId = reportId_example;  // String | 

            try
            {
                // Retrieve a specific report by ID
                Upload result = apiInstance.apiV1PartnerIdReportReportIdGet(reportId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InDevelopmentApi.apiV1PartnerIdReportReportIdGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiInDevelopmentApi();
$reportId = reportId_example; // String | 

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


my $api_instance = WWW::SwaggerClient::InDevelopmentApi->new();
my $reportId = reportId_example; # String | 

eval { 
    my $result = $api_instance->apiV1PartnerIdReportReportIdGet(reportId => $reportId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InDevelopmentApi->apiV1PartnerIdReportReportIdGet: $@\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.InDevelopmentApi()
reportId = reportId_example # String | 

try: 
    # Retrieve a specific report by ID
    api_response = api_instance.api_v1_partner_id_report_report_id_get(reportId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InDevelopmentApi->apiV1PartnerIdReportReportIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
reportId*
String
Required

Responses

Status: 200 - Detailed report information


ReadyForUse

apiV1AuthPost

Authenticate user and return a JWT bearer token

Authentication method to retrieve a `JWT` token.


/api/v1/auth

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://openhealthtechnologies.com/api/v1/auth"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReadyForUseApi;

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

public class ReadyForUseApiExample {

    public static void main(String[] args) {
        
        ReadyForUseApi apiInstance = new ReadyForUseApi();
        V1_auth_body body = ; // V1_auth_body | 
        try {
            inline_response_200 result = apiInstance.apiV1AuthPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReadyForUseApi#apiV1AuthPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReadyForUseApi;

public class ReadyForUseApiExample {

    public static void main(String[] args) {
        ReadyForUseApi apiInstance = new ReadyForUseApi();
        V1_auth_body body = ; // V1_auth_body | 
        try {
            inline_response_200 result = apiInstance.apiV1AuthPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReadyForUseApi#apiV1AuthPost");
            e.printStackTrace();
        }
    }
}
V1_auth_body *body = ; // 

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

// Authenticate user and return a JWT bearer token
[apiInstance apiV1AuthPostWith:body
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenhealthTechnologiesApi = require('openhealth_technologies___api');

var api = new OpenhealthTechnologiesApi.ReadyForUseApi()
var body = ; // {{V1_auth_body}} 

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

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

            var apiInstance = new ReadyForUseApi();
            var body = new V1_auth_body(); // V1_auth_body | 

            try
            {
                // Authenticate user and return a JWT bearer token
                inline_response_200 result = apiInstance.apiV1AuthPost(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReadyForUseApi.apiV1AuthPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiReadyForUseApi();
$body = ; // V1_auth_body | 

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

my $api_instance = WWW::SwaggerClient::ReadyForUseApi->new();
my $body = WWW::SwaggerClient::Object::V1_auth_body->new(); # V1_auth_body | 

eval { 
    my $result = $api_instance->apiV1AuthPost(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReadyForUseApi->apiV1AuthPost: $@\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.ReadyForUseApi()
body =  # V1_auth_body | 

try: 
    # Authenticate user and return a JWT bearer token
    api_response = api_instance.api_v1_auth_post(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReadyForUseApi->apiV1AuthPost: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - Bearer token for the authenticated user and url for a parterId


apiV1PartnerIdTokenExternalIdGet

Retrieve a temporary token for accessing specific reports


/api/v1/[partnerId]/token/{externalId}

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://openhealthtechnologies.com/api/v1/[partnerId]/token/{externalId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReadyForUseApi;

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

public class ReadyForUseApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ReadyForUseApi apiInstance = new ReadyForUseApi();
        String externalId = externalId_example; // String | 
        try {
            inline_response_200_3 result = apiInstance.apiV1PartnerIdTokenExternalIdGet(externalId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReadyForUseApi#apiV1PartnerIdTokenExternalIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReadyForUseApi;

public class ReadyForUseApiExample {

    public static void main(String[] args) {
        ReadyForUseApi apiInstance = new ReadyForUseApi();
        String externalId = externalId_example; // String | 
        try {
            inline_response_200_3 result = apiInstance.apiV1PartnerIdTokenExternalIdGet(externalId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReadyForUseApi#apiV1PartnerIdTokenExternalIdGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *externalId = externalId_example; // 

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

// Retrieve a temporary token for accessing specific reports
[apiInstance apiV1PartnerIdTokenExternalIdGetWith:externalId
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenhealthTechnologiesApi = require('openhealth_technologies___api');
var defaultClient = OpenhealthTechnologiesApi.ApiClient.instance;


var api = new OpenhealthTechnologiesApi.ReadyForUseApi()
var externalId = externalId_example; // {{String}} 

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

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


            var apiInstance = new ReadyForUseApi();
            var externalId = externalId_example;  // String | 

            try
            {
                // Retrieve a temporary token for accessing specific reports
                inline_response_200_3 result = apiInstance.apiV1PartnerIdTokenExternalIdGet(externalId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReadyForUseApi.apiV1PartnerIdTokenExternalIdGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiReadyForUseApi();
$externalId = externalId_example; // String | 

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


my $api_instance = WWW::SwaggerClient::ReadyForUseApi->new();
my $externalId = externalId_example; # String | 

eval { 
    my $result = $api_instance->apiV1PartnerIdTokenExternalIdGet(externalId => $externalId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReadyForUseApi->apiV1PartnerIdTokenExternalIdGet: $@\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.ReadyForUseApi()
externalId = externalId_example # String | 

try: 
    # Retrieve a temporary token for accessing specific reports
    api_response = api_instance.api_v1_partner_id_token_external_id_get(externalId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReadyForUseApi->apiV1PartnerIdTokenExternalIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
externalId*
String
Required

Responses

Status: 200 - Temporary token for accessing reports


apiV1PartnerIdUploadAllExternalIdDelete

Delete all upload of a specific externalId


/api/v1/[partnerId]/upload/all/{externalId}

Usage and SDK Samples

curl -X DELETE\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://openhealthtechnologies.com/api/v1/[partnerId]/upload/all/{externalId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReadyForUseApi;

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

public class ReadyForUseApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ReadyForUseApi apiInstance = new ReadyForUseApi();
        String externalId = externalId_example; // String | 
        try {
            inline_response_200_1 result = apiInstance.apiV1PartnerIdUploadAllExternalIdDelete(externalId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReadyForUseApi#apiV1PartnerIdUploadAllExternalIdDelete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReadyForUseApi;

public class ReadyForUseApiExample {

    public static void main(String[] args) {
        ReadyForUseApi apiInstance = new ReadyForUseApi();
        String externalId = externalId_example; // String | 
        try {
            inline_response_200_1 result = apiInstance.apiV1PartnerIdUploadAllExternalIdDelete(externalId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReadyForUseApi#apiV1PartnerIdUploadAllExternalIdDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *externalId = externalId_example; // 

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

// Delete all upload of a specific externalId
[apiInstance apiV1PartnerIdUploadAllExternalIdDeleteWith:externalId
              completionHandler: ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenhealthTechnologiesApi = require('openhealth_technologies___api');
var defaultClient = OpenhealthTechnologiesApi.ApiClient.instance;


var api = new OpenhealthTechnologiesApi.ReadyForUseApi()
var externalId = externalId_example; // {{String}} 

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

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


            var apiInstance = new ReadyForUseApi();
            var externalId = externalId_example;  // String | 

            try
            {
                // Delete all upload of a specific externalId
                inline_response_200_1 result = apiInstance.apiV1PartnerIdUploadAllExternalIdDelete(externalId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReadyForUseApi.apiV1PartnerIdUploadAllExternalIdDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiReadyForUseApi();
$externalId = externalId_example; // String | 

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


my $api_instance = WWW::SwaggerClient::ReadyForUseApi->new();
my $externalId = externalId_example; # String | 

eval { 
    my $result = $api_instance->apiV1PartnerIdUploadAllExternalIdDelete(externalId => $externalId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReadyForUseApi->apiV1PartnerIdUploadAllExternalIdDelete: $@\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.ReadyForUseApi()
externalId = externalId_example # String | 

try: 
    # Delete all upload of a specific externalId
    api_response = api_instance.api_v1_partner_id_upload_all_external_id_delete(externalId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReadyForUseApi->apiV1PartnerIdUploadAllExternalIdDelete: %s\n" % e)

Parameters

Path parameters
Name Description
externalId*
String
Required

Responses

Status: 200 - All Upload deleted successfully


apiV1PartnerIdUploadAllExternalIdGet

Get all uploads of a specific externalId


/api/v1/[partnerId]/upload/all/{externalId}

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://openhealthtechnologies.com/api/v1/[partnerId]/upload/all/{externalId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReadyForUseApi;

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

public class ReadyForUseApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ReadyForUseApi apiInstance = new ReadyForUseApi();
        String externalId = externalId_example; // String | 
        try {
            PaginatedList result = apiInstance.apiV1PartnerIdUploadAllExternalIdGet(externalId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReadyForUseApi#apiV1PartnerIdUploadAllExternalIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReadyForUseApi;

public class ReadyForUseApiExample {

    public static void main(String[] args) {
        ReadyForUseApi apiInstance = new ReadyForUseApi();
        String externalId = externalId_example; // String | 
        try {
            PaginatedList result = apiInstance.apiV1PartnerIdUploadAllExternalIdGet(externalId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReadyForUseApi#apiV1PartnerIdUploadAllExternalIdGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *externalId = externalId_example; // 

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

// Get all uploads of a specific externalId
[apiInstance apiV1PartnerIdUploadAllExternalIdGetWith:externalId
              completionHandler: ^(PaginatedList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenhealthTechnologiesApi = require('openhealth_technologies___api');
var defaultClient = OpenhealthTechnologiesApi.ApiClient.instance;


var api = new OpenhealthTechnologiesApi.ReadyForUseApi()
var externalId = externalId_example; // {{String}} 

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

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


            var apiInstance = new ReadyForUseApi();
            var externalId = externalId_example;  // String | 

            try
            {
                // Get all uploads of a specific externalId
                PaginatedList result = apiInstance.apiV1PartnerIdUploadAllExternalIdGet(externalId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReadyForUseApi.apiV1PartnerIdUploadAllExternalIdGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiReadyForUseApi();
$externalId = externalId_example; // String | 

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


my $api_instance = WWW::SwaggerClient::ReadyForUseApi->new();
my $externalId = externalId_example; # String | 

eval { 
    my $result = $api_instance->apiV1PartnerIdUploadAllExternalIdGet(externalId => $externalId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReadyForUseApi->apiV1PartnerIdUploadAllExternalIdGet: $@\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.ReadyForUseApi()
externalId = externalId_example # String | 

try: 
    # Get all uploads of a specific externalId
    api_response = api_instance.api_v1_partner_id_upload_all_external_id_get(externalId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReadyForUseApi->apiV1PartnerIdUploadAllExternalIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
externalId*
String
Required

Responses

Status: 200 - Status of All Upload by externalId


apiV1PartnerIdUploadGet

Get a list of files uploaded


/api/v1/[partnerId]/upload/

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://openhealthtechnologies.com/api/v1/[partnerId]/upload/?page=&limit=&externalId=&status=&createdAt="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReadyForUseApi;

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

public class ReadyForUseApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ReadyForUseApi apiInstance = new ReadyForUseApi();
        Integer page = 56; // Integer | Page number of the results (starts from 1)
        Integer limit = 56; // Integer | Number of results per page (up to 100)
        String externalId = externalId_example; // String | External patient ID
        String status = status_example; // String | Current Report status
        date createdAt = 2013-10-20; // date | Date of the report creation
        try {
            PaginatedList result = apiInstance.apiV1PartnerIdUploadGet(page, limit, externalId, status, createdAt);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReadyForUseApi#apiV1PartnerIdUploadGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReadyForUseApi;

public class ReadyForUseApiExample {

    public static void main(String[] args) {
        ReadyForUseApi apiInstance = new ReadyForUseApi();
        Integer page = 56; // Integer | Page number of the results (starts from 1)
        Integer limit = 56; // Integer | Number of results per page (up to 100)
        String externalId = externalId_example; // String | External patient ID
        String status = status_example; // String | Current Report status
        date createdAt = 2013-10-20; // date | Date of the report creation
        try {
            PaginatedList result = apiInstance.apiV1PartnerIdUploadGet(page, limit, externalId, status, createdAt);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReadyForUseApi#apiV1PartnerIdUploadGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Integer *page = 56; // Page number of the results (starts from 1) (optional) (default to 1)
Integer *limit = 56; // Number of results per page (up to 100) (optional) (default to 10)
String *externalId = externalId_example; // External patient ID (optional)
String *status = status_example; // Current Report status (optional) (default to READY)
date *createdAt = 2013-10-20; // Date of the report creation (optional)

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

// Get a list of files uploaded
[apiInstance apiV1PartnerIdUploadGetWith:page
    limit:limit
    externalId:externalId
    status:status
    createdAt:createdAt
              completionHandler: ^(PaginatedList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenhealthTechnologiesApi = require('openhealth_technologies___api');
var defaultClient = OpenhealthTechnologiesApi.ApiClient.instance;


var api = new OpenhealthTechnologiesApi.ReadyForUseApi()
var opts = { 
  'page': 56, // {{Integer}} Page number of the results (starts from 1)
  'limit': 56, // {{Integer}} Number of results per page (up to 100)
  'externalId': externalId_example, // {{String}} External patient ID
  'status': status_example, // {{String}} Current Report status
  'createdAt': 2013-10-20 // {{date}} Date of the report creation
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiV1PartnerIdUploadGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new ReadyForUseApi();
            var page = 56;  // Integer | Page number of the results (starts from 1) (optional)  (default to 1)
            var limit = 56;  // Integer | Number of results per page (up to 100) (optional)  (default to 10)
            var externalId = externalId_example;  // String | External patient ID (optional) 
            var status = status_example;  // String | Current Report status (optional)  (default to READY)
            var createdAt = 2013-10-20;  // date | Date of the report creation (optional) 

            try
            {
                // Get a list of files uploaded
                PaginatedList result = apiInstance.apiV1PartnerIdUploadGet(page, limit, externalId, status, createdAt);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReadyForUseApi.apiV1PartnerIdUploadGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiReadyForUseApi();
$page = 56; // Integer | Page number of the results (starts from 1)
$limit = 56; // Integer | Number of results per page (up to 100)
$externalId = externalId_example; // String | External patient ID
$status = status_example; // String | Current Report status
$createdAt = 2013-10-20; // date | Date of the report creation

try {
    $result = $api_instance->apiV1PartnerIdUploadGet($page, $limit, $externalId, $status, $createdAt);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ReadyForUseApi->apiV1PartnerIdUploadGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReadyForUseApi;


my $api_instance = WWW::SwaggerClient::ReadyForUseApi->new();
my $page = 56; # Integer | Page number of the results (starts from 1)
my $limit = 56; # Integer | Number of results per page (up to 100)
my $externalId = externalId_example; # String | External patient ID
my $status = status_example; # String | Current Report status
my $createdAt = 2013-10-20; # date | Date of the report creation

eval { 
    my $result = $api_instance->apiV1PartnerIdUploadGet(page => $page, limit => $limit, externalId => $externalId, status => $status, createdAt => $createdAt);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReadyForUseApi->apiV1PartnerIdUploadGet: $@\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.ReadyForUseApi()
page = 56 # Integer | Page number of the results (starts from 1) (optional) (default to 1)
limit = 56 # Integer | Number of results per page (up to 100) (optional) (default to 10)
externalId = externalId_example # String | External patient ID (optional)
status = status_example # String | Current Report status (optional) (default to READY)
createdAt = 2013-10-20 # date | Date of the report creation (optional)

try: 
    # Get a list of files uploaded
    api_response = api_instance.api_v1_partner_id_upload_get(page=page, limit=limit, externalId=externalId, status=status, createdAt=createdAt)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReadyForUseApi->apiV1PartnerIdUploadGet: %s\n" % e)

Parameters

Query parameters
Name Description
page
Integer
Page number of the results (starts from 1)
limit
Integer
Number of results per page (up to 100)
externalId
String
External patient ID
status
String
Current Report status
createdAt
date (date)
Date of the report creation

Responses

Status: 200 - A paginated list of uploads along with pagination details


apiV1PartnerIdUploadPost

Upload a lab report file with metadata


/api/v1/[partnerId]/upload/

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: multipart/form-data"\
"https://openhealthtechnologies.com/api/v1/[partnerId]/upload/"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReadyForUseApi;

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

public class ReadyForUseApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ReadyForUseApi apiInstance = new ReadyForUseApi();
        byte[] file = file_example; // byte[] | 
        String externalId = externalId_example; // String | 
        date birthdate = 2013-10-20; // date | 
        String sex = sex_example; // String | 
        String description = description_example; // String | 
        String firstName = firstName_example; // String | 
        String lastName = lastName_example; // String | 
        String address = address_example; // String | 
        Integer height = 56; // Integer | 
        Integer weight = 56; // Integer | 
        try {
            Upload result = apiInstance.apiV1PartnerIdUploadPost(file, externalId, birthdate, sex, description, firstName, lastName, address, height, weight);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReadyForUseApi#apiV1PartnerIdUploadPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReadyForUseApi;

public class ReadyForUseApiExample {

    public static void main(String[] args) {
        ReadyForUseApi apiInstance = new ReadyForUseApi();
        byte[] file = file_example; // byte[] | 
        String externalId = externalId_example; // String | 
        date birthdate = 2013-10-20; // date | 
        String sex = sex_example; // String | 
        String description = description_example; // String | 
        String firstName = firstName_example; // String | 
        String lastName = lastName_example; // String | 
        String address = address_example; // String | 
        Integer height = 56; // Integer | 
        Integer weight = 56; // Integer | 
        try {
            Upload result = apiInstance.apiV1PartnerIdUploadPost(file, externalId, birthdate, sex, description, firstName, lastName, address, height, weight);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReadyForUseApi#apiV1PartnerIdUploadPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
byte[] *file = file_example; //  (optional)
String *externalId = externalId_example; //  (optional)
date *birthdate = 2013-10-20; //  (optional)
String *sex = sex_example; //  (optional)
String *description = description_example; //  (optional)
String *firstName = firstName_example; //  (optional)
String *lastName = lastName_example; //  (optional)
String *address = address_example; //  (optional)
Integer *height = 56; //  (optional)
Integer *weight = 56; //  (optional)

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

// Upload a lab report file with metadata
[apiInstance apiV1PartnerIdUploadPostWith:file
    externalId:externalId
    birthdate:birthdate
    sex:sex
    description:description
    firstName:firstName
    lastName:lastName
    address:address
    height:height
    weight:weight
              completionHandler: ^(Upload output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenhealthTechnologiesApi = require('openhealth_technologies___api');
var defaultClient = OpenhealthTechnologiesApi.ApiClient.instance;


var api = new OpenhealthTechnologiesApi.ReadyForUseApi()
var opts = { 
  'file': file_example // {{byte[]}} 
  'externalId': externalId_example // {{String}} 
  'birthdate': 2013-10-20 // {{date}} 
  'sex': sex_example // {{String}} 
  'description': description_example // {{String}} 
  'firstName': firstName_example // {{String}} 
  'lastName': lastName_example // {{String}} 
  'address': address_example // {{String}} 
  'height': 56 // {{Integer}} 
  'weight': 56 // {{Integer}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiV1PartnerIdUploadPost(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new ReadyForUseApi();
            var file = file_example;  // byte[] |  (optional) 
            var externalId = externalId_example;  // String |  (optional) 
            var birthdate = 2013-10-20;  // date |  (optional) 
            var sex = sex_example;  // String |  (optional) 
            var description = description_example;  // String |  (optional) 
            var firstName = firstName_example;  // String |  (optional) 
            var lastName = lastName_example;  // String |  (optional) 
            var address = address_example;  // String |  (optional) 
            var height = 56;  // Integer |  (optional) 
            var weight = 56;  // Integer |  (optional) 

            try
            {
                // Upload a lab report file with metadata
                Upload result = apiInstance.apiV1PartnerIdUploadPost(file, externalId, birthdate, sex, description, firstName, lastName, address, height, weight);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReadyForUseApi.apiV1PartnerIdUploadPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiReadyForUseApi();
$file = file_example; // byte[] | 
$externalId = externalId_example; // String | 
$birthdate = 2013-10-20; // date | 
$sex = sex_example; // String | 
$description = description_example; // String | 
$firstName = firstName_example; // String | 
$lastName = lastName_example; // String | 
$address = address_example; // String | 
$height = 56; // Integer | 
$weight = 56; // Integer | 

try {
    $result = $api_instance->apiV1PartnerIdUploadPost($file, $externalId, $birthdate, $sex, $description, $firstName, $lastName, $address, $height, $weight);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ReadyForUseApi->apiV1PartnerIdUploadPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReadyForUseApi;


my $api_instance = WWW::SwaggerClient::ReadyForUseApi->new();
my $file = file_example; # byte[] | 
my $externalId = externalId_example; # String | 
my $birthdate = 2013-10-20; # date | 
my $sex = sex_example; # String | 
my $description = description_example; # String | 
my $firstName = firstName_example; # String | 
my $lastName = lastName_example; # String | 
my $address = address_example; # String | 
my $height = 56; # Integer | 
my $weight = 56; # Integer | 

eval { 
    my $result = $api_instance->apiV1PartnerIdUploadPost(file => $file, externalId => $externalId, birthdate => $birthdate, sex => $sex, description => $description, firstName => $firstName, lastName => $lastName, address => $address, height => $height, weight => $weight);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReadyForUseApi->apiV1PartnerIdUploadPost: $@\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.ReadyForUseApi()
file = file_example # byte[] |  (optional)
externalId = externalId_example # String |  (optional)
birthdate = 2013-10-20 # date |  (optional)
sex = sex_example # String |  (optional)
description = description_example # String |  (optional)
firstName = firstName_example # String |  (optional)
lastName = lastName_example # String |  (optional)
address = address_example # String |  (optional)
height = 56 # Integer |  (optional)
weight = 56 # Integer |  (optional)

try: 
    # Upload a lab report file with metadata
    api_response = api_instance.api_v1_partner_id_upload_post(file=file, externalId=externalId, birthdate=birthdate, sex=sex, description=description, firstName=firstName, lastName=lastName, address=address, height=height, weight=weight)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReadyForUseApi->apiV1PartnerIdUploadPost: %s\n" % e)

Parameters

Form parameters
Name Description
file
byte[] (binary)
externalId
String
birthdate
date (date)
sex
String
Enum: MALE, FEMALE, OTHER
description
String
firstName
String
lastName
String
address
String
height
Integer
weight
Integer

Responses

Status: 200 - ID of the uploaded file


apiV1PartnerIdUploadUploadIdDelete

Delete a specific upload


/api/v1/[partnerId]/upload/{uploadId}

Usage and SDK Samples

curl -X DELETE\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://openhealthtechnologies.com/api/v1/[partnerId]/upload/{uploadId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReadyForUseApi;

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

public class ReadyForUseApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ReadyForUseApi apiInstance = new ReadyForUseApi();
        String uploadId = uploadId_example; // String | 
        try {
            inline_response_200_1 result = apiInstance.apiV1PartnerIdUploadUploadIdDelete(uploadId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReadyForUseApi#apiV1PartnerIdUploadUploadIdDelete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReadyForUseApi;

public class ReadyForUseApiExample {

    public static void main(String[] args) {
        ReadyForUseApi apiInstance = new ReadyForUseApi();
        String uploadId = uploadId_example; // String | 
        try {
            inline_response_200_1 result = apiInstance.apiV1PartnerIdUploadUploadIdDelete(uploadId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReadyForUseApi#apiV1PartnerIdUploadUploadIdDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *uploadId = uploadId_example; // 

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

// Delete a specific upload
[apiInstance apiV1PartnerIdUploadUploadIdDeleteWith:uploadId
              completionHandler: ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenhealthTechnologiesApi = require('openhealth_technologies___api');
var defaultClient = OpenhealthTechnologiesApi.ApiClient.instance;


var api = new OpenhealthTechnologiesApi.ReadyForUseApi()
var uploadId = uploadId_example; // {{String}} 

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

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


            var apiInstance = new ReadyForUseApi();
            var uploadId = uploadId_example;  // String | 

            try
            {
                // Delete a specific upload
                inline_response_200_1 result = apiInstance.apiV1PartnerIdUploadUploadIdDelete(uploadId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReadyForUseApi.apiV1PartnerIdUploadUploadIdDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiReadyForUseApi();
$uploadId = uploadId_example; // String | 

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


my $api_instance = WWW::SwaggerClient::ReadyForUseApi->new();
my $uploadId = uploadId_example; # String | 

eval { 
    my $result = $api_instance->apiV1PartnerIdUploadUploadIdDelete(uploadId => $uploadId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReadyForUseApi->apiV1PartnerIdUploadUploadIdDelete: $@\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.ReadyForUseApi()
uploadId = uploadId_example # String | 

try: 
    # Delete a specific upload
    api_response = api_instance.api_v1_partner_id_upload_upload_id_delete(uploadId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReadyForUseApi->apiV1PartnerIdUploadUploadIdDelete: %s\n" % e)

Parameters

Path parameters
Name Description
uploadId*
String
Required

Responses

Status: 200 - Upload deleted successfully


apiV1PartnerIdUploadUploadIdGet

Get the status of a specific upload


/api/v1/[partnerId]/upload/{uploadId}

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://openhealthtechnologies.com/api/v1/[partnerId]/upload/{uploadId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReadyForUseApi;

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

public class ReadyForUseApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ReadyForUseApi apiInstance = new ReadyForUseApi();
        String uploadId = uploadId_example; // String | 
        try {
            Upload result = apiInstance.apiV1PartnerIdUploadUploadIdGet(uploadId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReadyForUseApi#apiV1PartnerIdUploadUploadIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReadyForUseApi;

public class ReadyForUseApiExample {

    public static void main(String[] args) {
        ReadyForUseApi apiInstance = new ReadyForUseApi();
        String uploadId = uploadId_example; // String | 
        try {
            Upload result = apiInstance.apiV1PartnerIdUploadUploadIdGet(uploadId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReadyForUseApi#apiV1PartnerIdUploadUploadIdGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *uploadId = uploadId_example; // 

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

// Get the status of a specific upload
[apiInstance apiV1PartnerIdUploadUploadIdGetWith:uploadId
              completionHandler: ^(Upload output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenhealthTechnologiesApi = require('openhealth_technologies___api');
var defaultClient = OpenhealthTechnologiesApi.ApiClient.instance;


var api = new OpenhealthTechnologiesApi.ReadyForUseApi()
var uploadId = uploadId_example; // {{String}} 

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

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


            var apiInstance = new ReadyForUseApi();
            var uploadId = uploadId_example;  // String | 

            try
            {
                // Get the status of a specific upload
                Upload result = apiInstance.apiV1PartnerIdUploadUploadIdGet(uploadId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReadyForUseApi.apiV1PartnerIdUploadUploadIdGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiReadyForUseApi();
$uploadId = uploadId_example; // String | 

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


my $api_instance = WWW::SwaggerClient::ReadyForUseApi->new();
my $uploadId = uploadId_example; # String | 

eval { 
    my $result = $api_instance->apiV1PartnerIdUploadUploadIdGet(uploadId => $uploadId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReadyForUseApi->apiV1PartnerIdUploadUploadIdGet: $@\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.ReadyForUseApi()
uploadId = uploadId_example # String | 

try: 
    # Get the status of a specific upload
    api_response = api_instance.api_v1_partner_id_upload_upload_id_get(uploadId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReadyForUseApi->apiV1PartnerIdUploadUploadIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
uploadId*
String
Required

Responses

Status: 200 - Status of the upload


apiV1PartnerIdWebhookGet

Get a list of registered webhooks


/api/v1/[partnerId]/webhook

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://openhealthtechnologies.com/api/v1/[partnerId]/webhook"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReadyForUseApi;

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

public class ReadyForUseApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


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

public class ReadyForUseApiExample {

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

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

// Get a list of registered webhooks
[apiInstance apiV1PartnerIdWebhookGetWithCompletionHandler: 
              ^(inline_response_200_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenhealthTechnologiesApi = require('openhealth_technologies___api');
var defaultClient = OpenhealthTechnologiesApi.ApiClient.instance;


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

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


            var apiInstance = new ReadyForUseApi();

            try
            {
                // Get a list of registered webhooks
                inline_response_200_2 result = apiInstance.apiV1PartnerIdWebhookGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReadyForUseApi.apiV1PartnerIdWebhookGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiReadyForUseApi();

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


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

eval { 
    my $result = $api_instance->apiV1PartnerIdWebhookGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReadyForUseApi->apiV1PartnerIdWebhookGet: $@\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.ReadyForUseApi()

try: 
    # Get a list of registered webhooks
    api_response = api_instance.api_v1_partner_id_webhook_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReadyForUseApi->apiV1PartnerIdWebhookGet: %s\n" % e)

Parameters

Responses

Status: 200 - List of registered webhooks


apiV1PartnerIdWebhookPost

Register a webhook to receive updates

Registers a new webhook. When events of type `topic` occur, a POST request with the following payload will be sent to the provided URL.


/api/v1/[partnerId]/webhook

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://openhealthtechnologies.com/api/v1/[partnerId]/webhook"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReadyForUseApi;

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

public class ReadyForUseApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ReadyForUseApi apiInstance = new ReadyForUseApi();
        PartnerId_webhook_body body = ; // PartnerId_webhook_body | 
        try {
            partnerId_webhook_body result = apiInstance.apiV1PartnerIdWebhookPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReadyForUseApi#apiV1PartnerIdWebhookPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReadyForUseApi;

public class ReadyForUseApiExample {

    public static void main(String[] args) {
        ReadyForUseApi apiInstance = new ReadyForUseApi();
        PartnerId_webhook_body body = ; // PartnerId_webhook_body | 
        try {
            partnerId_webhook_body result = apiInstance.apiV1PartnerIdWebhookPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReadyForUseApi#apiV1PartnerIdWebhookPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
PartnerId_webhook_body *body = ; // 

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

// Register a webhook to receive updates
[apiInstance apiV1PartnerIdWebhookPostWith:body
              completionHandler: ^(partnerId_webhook_body output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenhealthTechnologiesApi = require('openhealth_technologies___api');
var defaultClient = OpenhealthTechnologiesApi.ApiClient.instance;


var api = new OpenhealthTechnologiesApi.ReadyForUseApi()
var body = ; // {{PartnerId_webhook_body}} 

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

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


            var apiInstance = new ReadyForUseApi();
            var body = new PartnerId_webhook_body(); // PartnerId_webhook_body | 

            try
            {
                // Register a webhook to receive updates
                partnerId_webhook_body result = apiInstance.apiV1PartnerIdWebhookPost(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReadyForUseApi.apiV1PartnerIdWebhookPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiReadyForUseApi();
$body = ; // PartnerId_webhook_body | 

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


my $api_instance = WWW::SwaggerClient::ReadyForUseApi->new();
my $body = WWW::SwaggerClient::Object::PartnerId_webhook_body->new(); # PartnerId_webhook_body | 

eval { 
    my $result = $api_instance->apiV1PartnerIdWebhookPost(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReadyForUseApi->apiV1PartnerIdWebhookPost: $@\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.ReadyForUseApi()
body =  # PartnerId_webhook_body | 

try: 
    # Register a webhook to receive updates
    api_response = api_instance.api_v1_partner_id_webhook_post(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReadyForUseApi->apiV1PartnerIdWebhookPost: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - Webhook registration successful

Status: default - The payload when your registered webhook is triggered in our system


apiV1PartnerIdWebhookWebhookIdDelete

Delete a specific webhook


/api/v1/[partnerId]/webhook/{webhookId}

Usage and SDK Samples

curl -X DELETE\
 -H "Authorization: Bearer [[accessToken]]"\
"https://openhealthtechnologies.com/api/v1/[partnerId]/webhook/{webhookId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReadyForUseApi;

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

public class ReadyForUseApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ReadyForUseApi apiInstance = new ReadyForUseApi();
        String webhookId = webhookId_example; // String | 
        try {
            apiInstance.apiV1PartnerIdWebhookWebhookIdDelete(webhookId);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReadyForUseApi#apiV1PartnerIdWebhookWebhookIdDelete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReadyForUseApi;

public class ReadyForUseApiExample {

    public static void main(String[] args) {
        ReadyForUseApi apiInstance = new ReadyForUseApi();
        String webhookId = webhookId_example; // String | 
        try {
            apiInstance.apiV1PartnerIdWebhookWebhookIdDelete(webhookId);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReadyForUseApi#apiV1PartnerIdWebhookWebhookIdDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *webhookId = webhookId_example; // 

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

// Delete a specific webhook
[apiInstance apiV1PartnerIdWebhookWebhookIdDeleteWith:webhookId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenhealthTechnologiesApi = require('openhealth_technologies___api');
var defaultClient = OpenhealthTechnologiesApi.ApiClient.instance;


var api = new OpenhealthTechnologiesApi.ReadyForUseApi()
var webhookId = webhookId_example; // {{String}} 

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

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


            var apiInstance = new ReadyForUseApi();
            var webhookId = webhookId_example;  // String | 

            try
            {
                // Delete a specific webhook
                apiInstance.apiV1PartnerIdWebhookWebhookIdDelete(webhookId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReadyForUseApi.apiV1PartnerIdWebhookWebhookIdDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiReadyForUseApi();
$webhookId = webhookId_example; // String | 

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


my $api_instance = WWW::SwaggerClient::ReadyForUseApi->new();
my $webhookId = webhookId_example; # String | 

eval { 
    $api_instance->apiV1PartnerIdWebhookWebhookIdDelete(webhookId => $webhookId);
};
if ($@) {
    warn "Exception when calling ReadyForUseApi->apiV1PartnerIdWebhookWebhookIdDelete: $@\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.ReadyForUseApi()
webhookId = webhookId_example # String | 

try: 
    # Delete a specific webhook
    api_instance.api_v1_partner_id_webhook_webhook_id_delete(webhookId)
except ApiException as e:
    print("Exception when calling ReadyForUseApi->apiV1PartnerIdWebhookWebhookIdDelete: %s\n" % e)

Parameters

Path parameters
Name Description
webhookId*
String
Required

Responses

Status: 200 - Webhook deleted successfully