fmewebservices.FMETokenService
Removes the associated keys and definition lines for this Web Service. |
|
Retrieves the associated access token request format for this Web Service. |
|
Retrieves the associated access token response format for this Web Service. |
|
Retrieves the associated access token URL for this Web Service. |
|
Retrieves the associated token item name for this Web Service. |
|
Retrieves the associated authorization header format for this Web Service. |
|
Retrieves the associated definition lines for this Web Service. |
|
Retrieves the optional description of this Web Service. |
|
Retrieves the associated expiry time format for this Web Service. |
|
Retrieves the associated expiry time response format for this Web Service. |
|
Retrieves the optional help url of this Web Service. |
|
Retrieves the associated keys and definition lines for this Web Service. |
|
Retrieves the associated keys for this Web Service. |
|
Retrieves the unique name of this Web Service. |
|
Gets the source name for the original Web Service for the derived Web Services. |
|
Returns |
|
Returns |
|
Sets the associated access token request format for this web service. |
|
Sets the associated access token response format for this web service. |
|
|
Sets the associated access token url for this Web Service. |
Sets the associated token item name for this Web Service. |
|
Sets the associated authorization header format for this web service. |
|
|
Sets the optional description of this Web Service. |
|
Sets the associated expiry time format for this Web Service. |
Sets the associated expiry time response format for this web service. |
|
Sets the optional help url of this Web Service. |
|
|
Sets the associated field pair for this Web Service. |
|
Sets the unique name of this Web Service. |
Sets the source name for the original Web Service for the derived Web Services. |
|
Sets whether the service supports bearer tokens in the HTTP header. |
|
Sets whether the service supports access token strings in the URL. |
|
Returns true if the service supports bearer tokens in the HTTP header. |
|
Returns true if the service supports access token strings in the URL. |
- class FMETokenService
FME Token Service class.
init()
Create an instance of a token service object.
- __init__(*args, **kwargs)
- clearKeyDefinitions()
Removes the associated keys and definition lines for this Web Service.
- Return type:
- getAccessTokenRequestFormat()
Retrieves the associated access token request format for this Web Service.
- Return type:
- Returns:
The access token request format.
- getAccessTokenResponseFormat()
Retrieves the associated access token response format for this Web Service.
- Return type:
- Returns:
The access token response format.
- getAccessTokenURL()
Retrieves the associated access token URL for this Web Service.
- Return type:
- Returns:
The access token URL.
- getApiTokenItemName()
Retrieves the associated token item name for this Web Service.
- Return type:
- Returns:
The token item name.
- getAuthorizationHeaderFormat()
Retrieves the associated authorization header format for this Web Service.
- Return type:
- Returns:
The access token response format.
- getDefinitions()
Retrieves the associated definition lines for this Web Service.
- getDescription()
Retrieves the optional description of this Web Service.
- Return type:
- Returns:
The description of the Web Service.
- getExpiryTimeFormat()
Retrieves the associated expiry time format for this Web Service.
- Return type:
- Returns:
A tuple in the form (type, format), where type is one of
FME_TIMEDURATION
,FME_TIMEDATE
orFME_TIMESTAMP
.
- getExpiryTimeResponseFormat()
Retrieves the associated expiry time response format for this Web Service.
- Return type:
- Returns:
The access token response format.
- getHelpURL()
Retrieves the optional help url of this Web Service.
- Return type:
- Returns:
The url of the Web Service.
- getKeyDefinitions()
Retrieves the associated keys and definition lines for this Web Service. The keys are the keys and the definition lines are the values in the returned
dict
.- Return type:
- Returns:
The keys and definition lines.
- getKeys()
Retrieves the associated keys for this Web Service.
- getName()
Retrieves the unique name of this Web Service.
- Return type:
- Returns:
The name of the Web Service.
- getSourceWebServiceName()
Gets the source name for the original Web Service for the derived Web Services.
- Return type:
- Returns:
The source web service name.
- isDerivedWebService()
Returns
True
if the Web Service is derived from another source.- Return type:
- Returns:
Whether or not the Web Service is derived from another source.
- isInstalledWebService()
Returns
True
if the Web Service is an installed Web Service.- Return type:
- Returns:
Whether or not the Web Service is an installed Web Service.
- setAccessTokenRequestFormat(accessTokenRequestFormat)
Sets the associated access token request format for this web service.
- setAccessTokenResponseFormat(accessTokenResponseFormat)
Sets the associated access token response format for this web service.
- setAccessTokenURL(accessTokenURL)
Sets the associated access token url for this Web Service.
- setApiTokenItemName(apiTokenItemName)
Sets the associated token item name for this Web Service.
- setAuthorizationHeaderFormat(authorizationHeaderFormat)
Sets the associated authorization header format for this web service.
- setDescription(description)
Sets the optional description of this Web Service.
- setExpiryTimeFormat(type, format)
Sets the associated expiry time format for this Web Service.
- Parameters:
type (
int
) – The type of time format. Possible values areFME_TIMEDURATION
,FME_TIMEDATE
orFME_TIMESTAMP
.format (str) – The expiry time format.
- Return type:
- setExpiryTimeResponseFormat(expiryTimeResponseFormat)
Sets the associated expiry time response format for this web service.
- setHelpURL(url)
Sets the optional help url of this Web Service.
- setKeyDefinition(key, guiLine)
Sets the associated field pair for this Web Service.
- setName(name)
Sets the unique name of this Web Service.
- setSourceWebServiceName(name)
Sets the source name for the original Web Service for the derived Web Services.
- setSupportHeaderAuthorization(supported)
Sets whether the service supports bearer tokens in the HTTP header.
- setSupportQueryStringAuthorization(supported)
Sets whether the service supports access token strings in the URL.
- supportHeaderAuthorization()
Returns true if the service supports bearer tokens in the HTTP header.
- Return type:
- Returns:
Whether the service supports bearer tokens.