The following SOAP methods are provided specifically for interacting with Pool Data Miner objects.
copy
Creates a copy of the resource specified by resource_id
EvalancheResourceInformation copy (int resource_id, int category_id)Parameter
- int resource_id: ID of the resource to be copied
- int category_id: ID of folder
Return value
-
object: EvalancheResourceInformation:
- string: url
- int: type_id
- int: category_id
- int: customer_id
- int: last_modified
- int: resource_id
- string: name
Required rights
Use
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:lead="https://scnem.com/soap.php/soap/pooldataminer">
<soapenv:Header />
<soapenv:Body>
<lead:copy>
<resource_id>RESOURCE_ID</resource_id>
<category_id>CATEGORY_ID</category_id>
</lead:copy>
</soapenv:Body>
</soapenv:Envelope>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://scnem.com/soap.php/soap/pooldataminer">
<SOAP-ENV:Body>
<ns1:copyResponse>
<copyResultv
<url>URL</url>
<type_id>TYPE_ID</type_id>
<category_id>CATEGORY_ID</category_id>
<customer_id>CUSTUMER_ID</customer_id>
<last_modified>LAST_MODIFIED</last_modified>
<id>RESOURCE_ID</id>
<name>NAME</name>
</copyResult>
</ns1:copyResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
delete
Deletes the resource.
bool delete (int resource_id)Parameter
- int resource_id: ID of the resource to be deleted
Return value
- bool: true if deletion was successful
Required rights
Use
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:lead="https://scnem.com/soap.php/soap/pooldataminer">
<soapenv:Header />
<soapenv:Body>
<lead:delete>
<resource_id>RESOURCE_ID</resource_id>
</lead:delete>
</soapenv:Body>
</soapenv:Envelope>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://scnem.com/soap.php/soap/pooldataminer">
<SOAP-ENV:Body>
<ns1:deleteResponse>
<deleteResult>true</deleteResult>
</ns1:deleteResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
getAll
Lists all Pool Data Miner object resources within a client.
ArrayOfEvalancheResourceInformation getAll (int mandator_id)Parameter
- int mandator_id: ID of client
Return value
- ArrayOfEvalancheResourceInformation Object array analogous to the method getById (For more information about an object, see Object ID)
Required rights
Use
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:lead="https://scnem.com/soap.php/soap/pooldataminer">
<soapenv:Header />
<soapenv:Body>
<lead:getAll>
<mandator_id>MANDATOR_ID</mandator_id>
</lead:getAll>
</soapenv:Body>
</soapenv:Envelope>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://scnem.com/soap.php/soap/pooldataminer">
<SOAP-ENV:Body>
<ns1:getAllResponse>
<getAllResult>
<item>
<url>https://scnem.com/a.php?sid=h5ent.2kd5bgg,f=7</url>
<type_id>TYPE_ID</type_id>
<category_id>CATEGORY_ID</category_id>
<customer_id>CUSTUMER_ID</customer_id>
<last_modified>LAST_MODIFIED</last_modified>
<id>RESOURCE_ID</id>
<name>NAME</name>
</item>
<item>
... </item>
</getAllResult>
</ns1:getAllResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
getByCategory
Lists all Pool Data Miner resources within a folder.
ArrayOfEvalancheResourceInformation getByCategory (int mandator_id)Parameter
- int category_id: ID of folder
Return value
- ArrayOfEvalancheResourceInformation Object array analogous to the getById method (more information about an object under Object ID)
Required rights
Use
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:lead="https://scnem.com/soap.php/soap/pooldataminer">
<soapenv:Header />
<soapenv:Body>
<lead:getByCategory>
<category_id>CATEGORY_ID</category_id>
</lead:getByCategory>
</soapenv:Body>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://scnem.com/soap.php/soap/pooldataminer">
<SOAP-ENV:Body>
<ns1:getAllResponse>
<getAllResult>
<item>
<url>https://scnem.com/a.php?sid=h5ent.2kd5bgg,f=7</url>
<type_id>TYPE_ID</type_id>
<category_id>CATEGORY_ID</category_id>
<customer_id>CUSTUMER_ID</customer_id>
<last_modified>LAST_MODIFIED</last_modified>
<id>RESOURCE_ID</id>
<name>NAME</name>
</item>
<item>
... </item>
</getAllResult>
</ns1:getAllResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
getByExternalId
Outputs all documents with a given EXTERNAL_ID.
ArrayOfEvalancheResourceInformation[] getByExternalId ( string external_id )Details: getByExternalId
getById
Retrieve Pool Data Miner information via ID
EvalancheResourceInformation getById (int resource_id)Parameter
- int resource_id: ID of Pool Data Miner object
Return value
-
object: EvalancheResourceInformation:
- string: url
- int: type_id
- int: category_id
- int: last_modified
- int: resource_id
- string: name
Required rights
Use
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:lead="https://scnem.com/soap.php/soap/pooldataminer">
<soapenv:Header />
<soapenv:Body>
<lead:getById>
<resource_id>RESOURCE_ID</resource_id>
</lead:getById>
</soapenv:Body>
</soapenv:Envelope>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://scnem.com/soap.php/soap/pooldataminer">
<SOAP-ENV:Body>
<ns1:getByIdResponse>
<getByIdResult>
<url>URL</url>
<type_id>TYPE_ID</type_id>
<category_id>CATEGORY_ID</category_id>
<customer_id>CUSTUMER_ID</customer_id>
<last_modified>LAST_MODIFIED</last_modified>
<id>RESOURCE_ID</id>
<name>NAME</name>
</getByIdResult>
</ns1:getByIdResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
getByModificationDate
Requesting an object via modification date
EvalancheResourceInformation getByModificationDate (int start_date, int end_date, int mandator_id)Details: getByModificationDate
getByTypeId
Retrieve all resources within this namespace with the specified resource type ID (see the getTypeIds method).
ArrayOfEvalancheResourceInformation getByTypeId (int type_id, int mandator_id)Parameter
- int type_id: Type ID
- int mandator_id: ID of client
Return value
- ArrayOfEvalancheResourceInformation Object array analogous to the getById method (more information about an object under Object ID )
Required rights
Use
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:lead="https://scnem.com/soap.php/soap/pooldataminer">
<soapenv:Header />
<soapenv:Body>
<lead:getByCategory>
<category_id>CATEGORY_ID</category_id>
</lead:getByCategory>
</soapenv:Body>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://scnem.com/soap.php/soap/pooldataminer">
<SOAP-ENV:Body>
<ns1:getAllResponse>
<getAllResult>
<item>
<url>https://scnem.com/a.php?sid=h5ent.2kd5bgg,f=7</url>
<type_id>TYPE_ID</type_id>
<category_id>CATEGORY_ID</category_id>
<customer_id>CUSTUMER_ID</customer_id>
<last_modified>LAST_MODIFIED</last_modified>
<id>RESOURCE_ID</id>
<name>NAME</name>
</item>
<item>
... </item>
</getAllResult>
</ns1:getAllResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
getResourceDefaultCategory
Provides information about the default folder of Pool Data Miner objects
getResourceDefaultCategoryResponse getResourceDefaultCategory (int customer_id)Parameter
- int customer_id: Customer ID
Return value
-
EvalancheCategoryInformation
- int: ID
- string: NAME
- int: PARENT_ID
Required rights
Use
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:lead="https://scnem.com/soap.php/soap/pooldataminer">
<soapenv:Header />
<soapenv:Body>
<lead:getResourceDefaultCategory>
<customer_id>CUSTUMER_ID</customer_id>
</lead:getResourceDefaultCategory>
</soapenv:Body>
</soapenv:Envelope><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://scnem.com/soap.php/soap/pooldataminer">
<SOAP-ENV:Body>
<ns1:getResourceDefaultCategoryResponse>
<getResourceDefaultCategoryResult>
<id>ID</id>
<name>NAME</name>
<parent_id>PARENT_ID</parent_id>
</getResourceDefaultCategoryResult>
</ns1:getResourceDefaultCategoryResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
getTypeIds
Lists information about the type IDs of Pool Data Miner objects
ArrayOfEvalancheResourceInformation getTypeIds ()Parameter
- -
Return value
-
ArrayOfEvalancheResourceTypeInformation
- EvalancheResourceTypeInformation: ITEM
- int: ID
- string: DESCRIPTION
- EvalancheResourceTypeInformation: ITEM
Required rights
Use
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:lead="https://scnem.com/soap.php/soap/pooldataminer">
<soapenv:Header />
<soapenv:Body>
<lead:getTypeIds />
</soapenv:Body>
</soapenv:Envelope><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://scnem.com/soap.php/soap/pooldataminer">
<SOAP-ENV:Body>
<ns1:getTypeIdsResponse>
<getTypeIdsResult>
<item>
<id>ID</id>
<description>DESCRIPTION</description>
</item>
</getTypeIdsResult>
</ns1:getTypeIdsResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
isAlive
Tests whether the API is available and the credentials used are valid. The `random_message` property of the result is completely irrelevant, since the values are randomly taken from http://whatthecommit.com.
isAliveResponse isAlive ()Parameter
- -
Return value
-
isAliveResponse
- IsAliveResult: IsAliveResult
- string: STATUS
- string: RANDOM_MESSAGE
- IsAliveResult: IsAliveResult
Required rights
Use
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:lead="https://scnem.com/soap.php/soap/pooldataminer">
<soapenv:Header />
<soapenv:Body>
<lead:isAlive />
</soapenv:Body>
</soapenv:Envelope><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://scnem.com/soap.php/soap/pooldataminer">
<SOAP-ENV:Body>
<ns1:isAliveResponse>
<isAliveResult>
<status>STATUS</status>
<random_message>RANDOM_MESSAGE</random_message>
</isAliveResult>
</ns1:isAliveResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
move
Moves the Pool Data Miner to another folder
EvalancheResourceInformation move (int resource_id, int category_id)Parameter
- int resource_id: ID of the Pool Data Miner to be moved
- int category_id: ID of the target folder
Return value
-
EvalancheResourceInformation:
- string: URL
- int: TYPE_ID
- int: CATEGORY_ID
- int: CUSTUMER_ID
- int: LAST_MODIFIED
- int: OBJECT_ID
- string: NAME
Required rights
Use
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:file="https://scnem.com/soap.php/soap/pooldataminer">
<soapenv:Header />
<soapenv:Body>
<pooldataminer:move>
<resource_id>RESOURCE_ID</resource_id>
<category_id>CATEGORY_ID</category_id>
</pooldataminer:move>
</soapenv:Body>
</soapenv:Envelope><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://scnem.com/soap.php/soap/pooldataminer">
<SOAP-ENV:Body>
<ns1:moveResponse>
<moveResult>
<url>URL</url>
<type_id>9</type_id>
<category_id>CATEGORY_ID</category_id>
<customer_id>CUSTUMER_ID</customer_id>
<last_modified>LAST_MODIFIED</last_modified>
<id>ID</id>
<name>NAME</name>
</moveResult>
</ns1:moveResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
rename
Gives the Pool Data Miner object a different name
EvalancheResourceInformation rename (int resource_id, string name)Parameter
- int resource_id: ID of the Pool Data Miner object to be renamed
- string name: new name of the Pool Data Miner object
Return value
-
EvalancheResourceInformation:
- string: URL
- int: TYPE_ID
- int: CATEGORY_ID
- int: CUSTUMER_ID
- int: LAST_MODIFIED
- int: OBJECT_ID
- string: NAME
Required rights
Use
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:file="https://scnem.com/soap.php/soap/pooldataminer">
<soapenv:Header />
<soapenv:Body>
<pooldataminer:rename>
<resource_id>RESOURCE_ID</resource_id>
<name>NAME</name>
</pooldataminer:rename>
</soapenv:Body>
</soapenv:Envelope><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://scnem.com/soap.php/soap/pooldataminer">
<SOAP-ENV:Body>
<ns1:renameResponse>
<renameResult>
<url>URL</url>
<type_id>9</type_id>
<category_id>CATEGORY_ID</category_id>
<customer_id>CUSTUMER_ID</customer_id>
<last_modified>LAST_MODIFIED</last_modified>
<id>ID</id>
<name>NAME</name>
</renameResult>
</ns1:renameResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>