Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

This section describes how to search for concept and terms via TermWeb API.

Selecting dictionary, section and domain

Searching via the API is similar to searching in TermWeb directly. You need to select a dictionary, one or more sections, and optionally a set of domains. The selections are saved when the user's session is closed (i.e. by logging out), and applied again when the same user logs in.

Selecting dictionary

Selecting which dictionary to search in is done by the generic method setSelected

<?xml version="1.0"?>
<methodCall>
   <methodName>termwebapi2.setSelected</methodName>
   <params>
     <param><value><string>123456789abc</string></value></param>
	 <param><value><string>dictionary</string></value></param>
     <param><value><string>312</string></value></param>
   </params>
</methodCall>

Response:

<?xml version="1.0" encoding="UTF-8"?>
<methodResponse>
  <params>
    <param><value><i4>0</i4></value></param>
  </params>
</methodResponse>

The ID for the dictionary can be retrieved from the Dictionary data object retrieved from getAll or getSelected methods.

  • No labels