getAppraisalReport
Get Appraisal Report
Retrieves the report of an appraisal by id
/org/{orgId}/appraisal/{appraisalId}
Usage and SDK Samples
curl -X GET\
-H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.invary.com/api/org/{orgId}/appraisal/{appraisalId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AppraisalApi;
import java.io.File;
import java.util.*;
public class AppraisalApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure Bearer (JWT) access token for authorization: bearer_token
HttpBearerAuth bearer_token = (HttpBearerAuth) defaultClient.getAuthentication("bearer_token");
bearer_token.setBearerToken("BEARER TOKEN");
// Create an instance of the API class
AppraisalApi apiInstance = new AppraisalApi();
String orgId = 6ph6yrsfsavua4wu57zff5hb3; // String | Id of the owning organization
String appraisalId = yfbq34r59aq1a83usemkvzmtk; // String | Id of the appraisal to retrieve
try {
AppraisalReport result = apiInstance.getAppraisalReport(orgId, appraisalId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AppraisalApi#getAppraisalReport");
e.printStackTrace();
}
}
}
import org.openapitools.client.api.AppraisalApi;
public class AppraisalApiExample {
public static void main(String[] args) {
AppraisalApi apiInstance = new AppraisalApi();
String orgId = 6ph6yrsfsavua4wu57zff5hb3; // String | Id of the owning organization
String appraisalId = yfbq34r59aq1a83usemkvzmtk; // String | Id of the appraisal to retrieve
try {
AppraisalReport result = apiInstance.getAppraisalReport(orgId, appraisalId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AppraisalApi#getAppraisalReport");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure Bearer (JWT) access token for authorization: bearer_token
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Create an instance of the API class
AppraisalApi *apiInstance = [[AppraisalApi alloc] init];
String *orgId = 6ph6yrsfsavua4wu57zff5hb3; // Id of the owning organization (default to null)
String *appraisalId = yfbq34r59aq1a83usemkvzmtk; // Id of the appraisal to retrieve (default to null)
// Get Appraisal Report
[apiInstance getAppraisalReportWith:orgId
appraisalId:appraisalId
completionHandler: ^(AppraisalReport output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var InvaryRuntimeIntegrity = require('invary_runtime_integrity');
var defaultClient = InvaryRuntimeIntegrity.ApiClient.instance;
// Configure Bearer (JWT) access token for authorization: bearer_token
var bearer_token = defaultClient.authentications['bearer_token'];
bearer_token.accessToken = "YOUR ACCESS TOKEN";
// Create an instance of the API class
var api = new InvaryRuntimeIntegrity.AppraisalApi()
var orgId = 6ph6yrsfsavua4wu57zff5hb3; // {String} Id of the owning organization
var appraisalId = yfbq34r59aq1a83usemkvzmtk; // {String} Id of the appraisal to retrieve
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getAppraisalReport(orgId, appraisalId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class getAppraisalReportExample
{
public void main()
{
// Configure Bearer (JWT) access token for authorization: bearer_token
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
// Create an instance of the API class
var apiInstance = new AppraisalApi();
var orgId = 6ph6yrsfsavua4wu57zff5hb3; // String | Id of the owning organization (default to null)
var appraisalId = yfbq34r59aq1a83usemkvzmtk; // String | Id of the appraisal to retrieve (default to null)
try {
// Get Appraisal Report
AppraisalReport result = apiInstance.getAppraisalReport(orgId, appraisalId);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling AppraisalApi.getAppraisalReport: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) access token for authorization: bearer_token
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('', 'YOUR_ACCESS_TOKEN');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AppraisalApi();
$orgId = 6ph6yrsfsavua4wu57zff5hb3; // String | Id of the owning organization
$appraisalId = yfbq34r59aq1a83usemkvzmtk; // String | Id of the appraisal to retrieve
try {
$result = $api_instance->getAppraisalReport($orgId, $appraisalId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AppraisalApi->getAppraisalReport: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AppraisalApi;
# Configure Bearer (JWT) access token for authorization: bearer_token
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AppraisalApi->new();
my $orgId = 6ph6yrsfsavua4wu57zff5hb3; # String | Id of the owning organization
my $appraisalId = yfbq34r59aq1a83usemkvzmtk; # String | Id of the appraisal to retrieve
eval {
my $result = $api_instance->getAppraisalReport(orgId => $orgId, appraisalId => $appraisalId);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AppraisalApi->getAppraisalReport: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure Bearer (JWT) access token for authorization: bearer_token
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Create an instance of the API class
api_instance = openapi_client.AppraisalApi()
orgId = 6ph6yrsfsavua4wu57zff5hb3 # String | Id of the owning organization (default to null)
appraisalId = yfbq34r59aq1a83usemkvzmtk # String | Id of the appraisal to retrieve (default to null)
try:
# Get Appraisal Report
api_response = api_instance.get_appraisal_report(orgId, appraisalId)
pprint(api_response)
except ApiException as e:
print("Exception when calling AppraisalApi->getAppraisalReport: %s\n" % e)
extern crate AppraisalApi;
pub fn main() {
let orgId = 6ph6yrsfsavua4wu57zff5hb3; // String
let appraisalId = yfbq34r59aq1a83usemkvzmtk; // String
let mut context = AppraisalApi::Context::default();
let result = client.getAppraisalReport(orgId, appraisalId, &context).wait();
println!("{:?}", result);
}
Scopes
Parameters
Name | Description |
---|---|
orgId* |
String
(invaryId)
Id of the owning organization
Required
|
appraisalId* |
String
(invaryId)
Id of the appraisal to retrieve
Required
|