Systran.NlpClientLib.Client.ApiClient.GetApiKeyWithPrefix C# (CSharp) Method

GetApiKeyWithPrefix() public method

Get the API key with prefix
public GetApiKeyWithPrefix ( string apiKey ) : string
apiKey string
return string
    public string GetApiKeyWithPrefix (string apiKey)
    {
      var apiKeyValue = "";
      Configuration.apiKey.TryGetValue (apiKey, out apiKeyValue);
      var apiKeyPrefix = "";
      if (Configuration.apiKeyPrefix.TryGetValue (apiKey, out apiKeyPrefix)) {
        return apiKeyPrefix + " " + apiKeyValue;
      } else {
        return apiKeyValue;
      }
    }