Vorheriges Thema: Get the Demographic Score

Nächstes Thema: Weight Sets

Provide Information for Demographic Score Calculation

This web service can be used to provide an XML body that contains demographic information on a service. This demographic information will be passed through a calculation engine and produce a demographic score. A request ID is returned back that can later be used to get the demographic score of a service using the get_demographic_score web service.

HTTP Type

POST

Restriction

Open to all public users on the global Cloud Commons DB.

This web service is restricted to the global Cloud Commons DB only. This web service is restricted from being used on a local integrated DB.

URI

{type}/SMI/{version}/calculate_demographicscore

Parameter

Description

&key

The API Key that is provided when your application has been registered.

&secret

The Shared Secret that is provided when your application has been registered.

&xmlData

Provides the demographic information required for calculating a comparison score in XML format.

Example:

In this example, demographic information is provided to the Gmail service.

https://smi.cloudcommons.com:8443/Insight_API/xml/SMI/0.5/calculate_demographicscore?xmlData=
<Demographic>
	<Version>8.0</Version>
	<Criteria>
		<Category>Compute</Category>
		<Company_Size>600-10000 employees</Company_Size>
		<Company_Revenue>abcde</Company_Revenue>
		<Company_Zipcode>11747</Company_Zipcode>
		<Company_Industry>Aerospace</Company_Industry>
		<Company_Country>United_States</Company_Country>
	</Criteria>
	<Services>Gmail</Services>
</Demographic>&key=f2f55b1243b3a317a698b2aff26e4685&secret=f6a321d2237d7e61599d56f6538280c7

Sample output of successful execution:

<?xml version='1.0' encoding='utf-8'?>
<result>
	<returnCode>0</returnCode>
	<errorMessage>Operation Successful.</errorMessage>
	<resultCount>1</resultCount>
	<Bean-List>
		<ResourceDemographicScoreCalculate-Bean>
			<requestId>1300895623230</requestId>
			<category>Compute</category>
			<services>Gmail</services>
		</ResourceDemographicScoreCalculate-Bean>
	</Bean-List>
</result>