GetCompanyDetails
 

GetCompanyDetails

Definition

CompaniesHouseResult[] GetCompanyDetails ( string username, string password, string companynumber, Option[] options )

Description:

Returns the full information from the Companies House database regarding the company number requested.

The return value is a CompaniesHouseResult structure.

View all Companies House Methods

Code Samples

Language:

<!-- Import the Integr8 Ajax API -->
<!-- NOTE: Get your own API key to use in the following script tag from: -->
<!-- http://www.data-8.co.uk/integr8/Admin/Ajax.aspx -->
<script src="http://webservices.data-8.co.uk/Javascript/Loader.ashx?key=your-api-key" type="text/javascript">
</script>

<script type="text/javascript">

function loadIntegr8() {
  // Load the CompaniesHouse Integr8 service
  data8.load('CompaniesHouse');
}

function GetCompanyDetails(companynumber) {
  /// <param name="companynumber">string</param>
  var companieshouse = new data8.companieshouse();
  
  companieshouse.getcompanydetails(
    companynumber,
    null,
    showGetCompanyDetailsResult
  );
}

function showGetCompanyDetailsResult(result) {
  // Check that the call succeeded, and show the error message if there was a problem.
  if (!result.Status.Success) {
    alert('Error: ' + result.Status.ErrorMessage);
  }
  else {
    // TODO: Process method results here.
    // Results can be extracted from the following fields:
    // result.Result
    //   Contains the details found for the requested company on the companies house database.
  }
}

loadIntegr8();

</script>
Skip Navigation Links
Request handled by server S1 for client 38.107.179.217 at 23/05/2012 00:46:21