URL path: | REST Request | SOAP Request | Base |
http://api.bciaustralia.com/rest/companies.json | http://api.bciaustralia.com/companies.cfc?wsdl | http://api.bciaustralia.com/companies.cfc | |
Serializable: | Yes | ||
Methods: | getByPK, getByQuery, getContactByPK, getContactsByPK |
getByPK | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
remote
struct
getByPK
(
required numeric
companyid,
string
fields="",
required string
token
)
Function to retrieve company details based on company ID Methods of access are: SOAP: http://api.bciaustralia.com/companies.cfc?wsdl&method=getByPK&companyid={companyid}(&returnFormat=wddx / &returnFormat=json) REST: http://api.bciaustralia.com/rest/companies/{companyid}(.json / .xml) Output: Structure Parameters:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
getByQuery | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
remote
Array
getByQuery
(
string
companyid,
string
company_name,
string
company_country,
string
company_state,
string
company_council,
string
company_town,
string
company_postcode,
string
company_address,
string
company_role,
string
company_rolegroup,
numeric
project_value_min,
numeric
project_value_max,
string
project_name,
string
project_type,
numeric
projectid,
numeric
projectrefid,
string
project_keyword,
string
project_country,
string
project_state,
string
project_region,
string
project_council,
string
project_town,
string
project_category,
string
project_subcategory,
string
project_status,
string
project_stage,
string
project_date_stamp_min,
string
project_date_stamp_max,
numeric
company_tender_status,
string
project_postcode,
string
fields="",
required string
token,
string
sortby,
string
sortbyorder,
numeric
NumberOfRows="1000",
numeric
StartRow="1",
string
company_timestamp_from,
string
company_timestamp_to,
numeric
company_timestamp
)
Function to retrieve contacts and companies based on search parameters Methods of access are: SOAP: http://api.bciaustralia.com/companies.cfc?wsdl&method=getByQuery&search-parameters(&returnFormat=wddx / &returnFormat=json) REST: http://api.bciaustralia.com/rest/companies(.json / .xml)&search-parameters Search-parameters: For example company_name, company_town, role_name, contact_name, etc would be URL Parameters Pass URL parameters 'SortBy' and 'SortByOrder' to sort results. Pass URL Parameters 'NumberOfRows' and 'StartRow' to get sections of results. Output: Array Parameters:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
getContactByPK | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
remote
Array
getContactByPK
(
required numeric
contactid,
required numeric
companyid="",
string
fields="",
required string
token
)
Function to request contact details of a specific contact in a company by passing the IDs of company and contact Methods of access are: SOAP: http://api.bciaustralia.com/companies.cfc?wsdl&method=getContactByPK&companyid={companyid}&contactid={contactid}(&returnFormat=wddx / &returnFormat=json) REST: NA Output: Array Parameters: contactid: numeric, required - ID of the contact companyid: numeric, required - ID of the company fields: string, optional - Fields that should be included in the response, null uses default fields. For full list refer to getByQuery() above token: string, required - allocated token for current login session | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
getContactsByPK | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
remote
Array
getContactsByPK
(
required numeric
companyid,
numeric
contactid,
string
fields="",
required string
token,
string
sortby,
string
sortbyorder
)
Function to request contact details of all contacts for a company by passing the companyid Methods of access are: SOAP: http://api.bciaustralia.com/companies.cfc?wsdl&method=getContactsByPK&companyid={companyid}(&returnFormat=wddx / &returnFormat=json) REST: NA Output: Array Parameters: companyid: numeric, required - ID of the company contactid: numeric, optional - ID of the contact fields: string, optional - Fields that should be included in the response, null uses default fields. For full list refer to getByQuery() above token: string, required - allocated token for current login session sortby: string, optional - Field Name for sorting results sortbyorder: string, optional - Order (Ascending / Descending) for the sort |
Fields | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Selectable fields for company information | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Sample Output - getByPK() - XML |
---|
|
Sample Output - getByQuery() / getContactsByPK() / getContactByPK() - XML |
---|
|