Get a Quick Quote

GetAQuote

quickQuote

Get a quick Quote


/quickQuote

Usage and SDK Samples

curl -X POST -H "Accept: application/xml" -H "Content-Type: application/xml" -H "Authorization: Basic [[basicHash]]" "https://qa.api.aviva.ca/services/digitalbroker/service/policy/v1.0/rest/quickQuote"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.GetAQuoteApi;

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

public class GetAQuoteApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        GetAQuoteApi apiInstance = new GetAQuoteApi();
        Object body = ; // Object | Acord object that needs to be added to the store
        try {
            apiInstance.quickQuote(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling GetAQuoteApi#quickQuote");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.GetAQuoteApi;

public class GetAQuoteApiExample {

    public static void main(String[] args) {
        GetAQuoteApi apiInstance = new GetAQuoteApi();
        Object body = ; // Object | Acord object that needs to be added to the store
        try {
            apiInstance.quickQuote(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling GetAQuoteApi#quickQuote");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

Object *body = ; // Acord object that needs to be added to the store

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

// Get a quick Quote
[apiInstance quickQuoteWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GetAQuickQuote = require('get_a_quick_quote');
var defaultClient = GetAQuickQuote.ApiClient.instance;

// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new GetAQuickQuote.GetAQuoteApi()

var body = ; // {Object} Acord object that needs to be added to the store


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

namespace Example
{
    public class quickQuoteExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new GetAQuoteApi();
            var body = new Object(); // Object | Acord object that needs to be added to the store

            try
            {
                // Get a quick Quote
                apiInstance.quickQuote(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling GetAQuoteApi.quickQuote: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\Api\GetAQuoteApi();
$body = ; // Object | Acord object that needs to be added to the store

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

# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::GetAQuoteApi->new();
my $body = WWW::SwaggerClient::Object::Object->new(); # Object | Acord object that needs to be added to the store

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

# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.GetAQuoteApi()
body =  # Object | Acord object that needs to be added to the store

try: 
    # Get a quick Quote
    api_instance.quick_quote(body)
except ApiException as e:
    print("Exception when calling GetAQuoteApi->quickQuote: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - valid respose

Status: 401 - Authentication information is missing or invalid

Name Type Format Description
WWW_Authenticate String

Generated 2018-05-09T04:43:45.431Z