mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-03 06:00:52 +00:00
update php wordnik sample app
This commit is contained in:
parent
00ac23c462
commit
434102550f
@ -43,7 +43,7 @@ class AccountApi {
|
||||
$headerParams = array();
|
||||
|
||||
if($password != null) {
|
||||
$queryParams['password'] = $this->apiClient->toPathValue($password);
|
||||
$queryParams['password'] = $this->apiClient->toQueryValue($password);
|
||||
}
|
||||
if($username != null) {
|
||||
$resourcePath = str_replace("{" . "username" . "}",
|
||||
@ -125,13 +125,13 @@ class AccountApi {
|
||||
$headerParams = array();
|
||||
|
||||
if($skip != null) {
|
||||
$queryParams['skip'] = $this->apiClient->toPathValue($skip);
|
||||
$queryParams['skip'] = $this->apiClient->toQueryValue($skip);
|
||||
}
|
||||
if($limit != null) {
|
||||
$queryParams['limit'] = $this->apiClient->toPathValue($limit);
|
||||
$queryParams['limit'] = $this->apiClient->toQueryValue($limit);
|
||||
}
|
||||
if($auth_token != null) {
|
||||
$headerParams['auth_token'] = $this->apiClient->toPathValue($auth_token);
|
||||
$headerParams['auth_token'] = $this->apiClient->toHeaderValue($auth_token);
|
||||
}
|
||||
//make the API Call
|
||||
if (! isset($body)) {
|
||||
@ -168,7 +168,7 @@ class AccountApi {
|
||||
$headerParams = array();
|
||||
|
||||
if($api_key != null) {
|
||||
$headerParams['api_key'] = $this->apiClient->toPathValue($api_key);
|
||||
$headerParams['api_key'] = $this->apiClient->toHeaderValue($api_key);
|
||||
}
|
||||
//make the API Call
|
||||
if (! isset($body)) {
|
||||
@ -205,7 +205,7 @@ class AccountApi {
|
||||
$headerParams = array();
|
||||
|
||||
if($auth_token != null) {
|
||||
$headerParams['auth_token'] = $this->apiClient->toPathValue($auth_token);
|
||||
$headerParams['auth_token'] = $this->apiClient->toHeaderValue($auth_token);
|
||||
}
|
||||
//make the API Call
|
||||
if (! isset($body)) {
|
||||
|
@ -137,18 +137,39 @@ class APIClient {
|
||||
|
||||
/**
|
||||
* Take value and turn it into a string suitable for inclusion in
|
||||
* the path or the header
|
||||
* the path, by url-encoding.
|
||||
* @param string $value a string which will be part of the path
|
||||
* @return string the serialized object
|
||||
*/
|
||||
public static function toPathValue($value) {
|
||||
return rawurlencode($value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Take value and turn it into a string suitable for inclusion in
|
||||
* the query, by imploding comma-separated if it's an object.
|
||||
* If it's a string, pass through unchanged. It will be url-encoded
|
||||
* later.
|
||||
* @param object $object an object to be serialized to a string
|
||||
* @return string the serialized object
|
||||
*/
|
||||
public static function toPathValue($object) {
|
||||
public static function toQueryValue($object) {
|
||||
if (is_array($object)) {
|
||||
return rawurlencode(implode(',', $object));
|
||||
return implode(',', $object);
|
||||
} else {
|
||||
return rawurlencode($object);
|
||||
return $object;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Just pass through the header value for now. Placeholder in case we
|
||||
* find out we need to do something with header values.
|
||||
* @param string $value a string which will be part of the header
|
||||
* @return string the header string
|
||||
*/
|
||||
public static function toHeaderValue($value) {
|
||||
return $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Deserialize a JSON string into an object
|
||||
@ -219,3 +240,4 @@ class APIClient {
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
@ -46,16 +46,16 @@ class WordApi {
|
||||
$headerParams = array();
|
||||
|
||||
if($includeDuplicates != null) {
|
||||
$queryParams['includeDuplicates'] = $this->apiClient->toPathValue($includeDuplicates);
|
||||
$queryParams['includeDuplicates'] = $this->apiClient->toQueryValue($includeDuplicates);
|
||||
}
|
||||
if($useCanonical != null) {
|
||||
$queryParams['useCanonical'] = $this->apiClient->toPathValue($useCanonical);
|
||||
$queryParams['useCanonical'] = $this->apiClient->toQueryValue($useCanonical);
|
||||
}
|
||||
if($skip != null) {
|
||||
$queryParams['skip'] = $this->apiClient->toPathValue($skip);
|
||||
$queryParams['skip'] = $this->apiClient->toQueryValue($skip);
|
||||
}
|
||||
if($limit != null) {
|
||||
$queryParams['limit'] = $this->apiClient->toPathValue($limit);
|
||||
$queryParams['limit'] = $this->apiClient->toQueryValue($limit);
|
||||
}
|
||||
if($word != null) {
|
||||
$resourcePath = str_replace("{" . "word" . "}",
|
||||
@ -98,10 +98,10 @@ class WordApi {
|
||||
$headerParams = array();
|
||||
|
||||
if($useCanonical != null) {
|
||||
$queryParams['useCanonical'] = $this->apiClient->toPathValue($useCanonical);
|
||||
$queryParams['useCanonical'] = $this->apiClient->toQueryValue($useCanonical);
|
||||
}
|
||||
if($includeSuggestions != null) {
|
||||
$queryParams['includeSuggestions'] = $this->apiClient->toPathValue($includeSuggestions);
|
||||
$queryParams['includeSuggestions'] = $this->apiClient->toQueryValue($includeSuggestions);
|
||||
}
|
||||
if($word != null) {
|
||||
$resourcePath = str_replace("{" . "word" . "}",
|
||||
@ -148,22 +148,22 @@ class WordApi {
|
||||
$headerParams = array();
|
||||
|
||||
if($limit != null) {
|
||||
$queryParams['limit'] = $this->apiClient->toPathValue($limit);
|
||||
$queryParams['limit'] = $this->apiClient->toQueryValue($limit);
|
||||
}
|
||||
if($partOfSpeech != null) {
|
||||
$queryParams['partOfSpeech'] = $this->apiClient->toPathValue($partOfSpeech);
|
||||
$queryParams['partOfSpeech'] = $this->apiClient->toQueryValue($partOfSpeech);
|
||||
}
|
||||
if($includeRelated != null) {
|
||||
$queryParams['includeRelated'] = $this->apiClient->toPathValue($includeRelated);
|
||||
$queryParams['includeRelated'] = $this->apiClient->toQueryValue($includeRelated);
|
||||
}
|
||||
if($sourceDictionaries != null) {
|
||||
$queryParams['sourceDictionaries'] = $this->apiClient->toPathValue($sourceDictionaries);
|
||||
$queryParams['sourceDictionaries'] = $this->apiClient->toQueryValue($sourceDictionaries);
|
||||
}
|
||||
if($useCanonical != null) {
|
||||
$queryParams['useCanonical'] = $this->apiClient->toPathValue($useCanonical);
|
||||
$queryParams['useCanonical'] = $this->apiClient->toQueryValue($useCanonical);
|
||||
}
|
||||
if($includeTags != null) {
|
||||
$queryParams['includeTags'] = $this->apiClient->toPathValue($includeTags);
|
||||
$queryParams['includeTags'] = $this->apiClient->toQueryValue($includeTags);
|
||||
}
|
||||
if($word != null) {
|
||||
$resourcePath = str_replace("{" . "word" . "}",
|
||||
@ -205,7 +205,7 @@ class WordApi {
|
||||
$headerParams = array();
|
||||
|
||||
if($useCanonical != null) {
|
||||
$queryParams['useCanonical'] = $this->apiClient->toPathValue($useCanonical);
|
||||
$queryParams['useCanonical'] = $this->apiClient->toQueryValue($useCanonical);
|
||||
}
|
||||
if($word != null) {
|
||||
$resourcePath = str_replace("{" . "word" . "}",
|
||||
@ -249,13 +249,13 @@ class WordApi {
|
||||
$headerParams = array();
|
||||
|
||||
if($useCanonical != null) {
|
||||
$queryParams['useCanonical'] = $this->apiClient->toPathValue($useCanonical);
|
||||
$queryParams['useCanonical'] = $this->apiClient->toQueryValue($useCanonical);
|
||||
}
|
||||
if($relationshipTypes != null) {
|
||||
$queryParams['relationshipTypes'] = $this->apiClient->toPathValue($relationshipTypes);
|
||||
$queryParams['relationshipTypes'] = $this->apiClient->toQueryValue($relationshipTypes);
|
||||
}
|
||||
if($limitPerRelationshipType != null) {
|
||||
$queryParams['limitPerRelationshipType'] = $this->apiClient->toPathValue($limitPerRelationshipType);
|
||||
$queryParams['limitPerRelationshipType'] = $this->apiClient->toQueryValue($limitPerRelationshipType);
|
||||
}
|
||||
if($word != null) {
|
||||
$resourcePath = str_replace("{" . "word" . "}",
|
||||
@ -300,16 +300,16 @@ class WordApi {
|
||||
$headerParams = array();
|
||||
|
||||
if($useCanonical != null) {
|
||||
$queryParams['useCanonical'] = $this->apiClient->toPathValue($useCanonical);
|
||||
$queryParams['useCanonical'] = $this->apiClient->toQueryValue($useCanonical);
|
||||
}
|
||||
if($sourceDictionary != null) {
|
||||
$queryParams['sourceDictionary'] = $this->apiClient->toPathValue($sourceDictionary);
|
||||
$queryParams['sourceDictionary'] = $this->apiClient->toQueryValue($sourceDictionary);
|
||||
}
|
||||
if($typeFormat != null) {
|
||||
$queryParams['typeFormat'] = $this->apiClient->toPathValue($typeFormat);
|
||||
$queryParams['typeFormat'] = $this->apiClient->toQueryValue($typeFormat);
|
||||
}
|
||||
if($limit != null) {
|
||||
$queryParams['limit'] = $this->apiClient->toPathValue($limit);
|
||||
$queryParams['limit'] = $this->apiClient->toQueryValue($limit);
|
||||
}
|
||||
if($word != null) {
|
||||
$resourcePath = str_replace("{" . "word" . "}",
|
||||
@ -353,13 +353,13 @@ class WordApi {
|
||||
$headerParams = array();
|
||||
|
||||
if($useCanonical != null) {
|
||||
$queryParams['useCanonical'] = $this->apiClient->toPathValue($useCanonical);
|
||||
$queryParams['useCanonical'] = $this->apiClient->toQueryValue($useCanonical);
|
||||
}
|
||||
if($sourceDictionary != null) {
|
||||
$queryParams['sourceDictionary'] = $this->apiClient->toPathValue($sourceDictionary);
|
||||
$queryParams['sourceDictionary'] = $this->apiClient->toQueryValue($sourceDictionary);
|
||||
}
|
||||
if($limit != null) {
|
||||
$queryParams['limit'] = $this->apiClient->toPathValue($limit);
|
||||
$queryParams['limit'] = $this->apiClient->toQueryValue($limit);
|
||||
}
|
||||
if($word != null) {
|
||||
$resourcePath = str_replace("{" . "word" . "}",
|
||||
@ -403,13 +403,13 @@ class WordApi {
|
||||
$headerParams = array();
|
||||
|
||||
if($useCanonical != null) {
|
||||
$queryParams['useCanonical'] = $this->apiClient->toPathValue($useCanonical);
|
||||
$queryParams['useCanonical'] = $this->apiClient->toQueryValue($useCanonical);
|
||||
}
|
||||
if($startYear != null) {
|
||||
$queryParams['startYear'] = $this->apiClient->toPathValue($startYear);
|
||||
$queryParams['startYear'] = $this->apiClient->toQueryValue($startYear);
|
||||
}
|
||||
if($endYear != null) {
|
||||
$queryParams['endYear'] = $this->apiClient->toPathValue($endYear);
|
||||
$queryParams['endYear'] = $this->apiClient->toQueryValue($endYear);
|
||||
}
|
||||
if($word != null) {
|
||||
$resourcePath = str_replace("{" . "word" . "}",
|
||||
@ -453,13 +453,13 @@ class WordApi {
|
||||
$headerParams = array();
|
||||
|
||||
if($limit != null) {
|
||||
$queryParams['limit'] = $this->apiClient->toPathValue($limit);
|
||||
$queryParams['limit'] = $this->apiClient->toQueryValue($limit);
|
||||
}
|
||||
if($wlmi != null) {
|
||||
$queryParams['wlmi'] = $this->apiClient->toPathValue($wlmi);
|
||||
$queryParams['wlmi'] = $this->apiClient->toQueryValue($wlmi);
|
||||
}
|
||||
if($useCanonical != null) {
|
||||
$queryParams['useCanonical'] = $this->apiClient->toPathValue($useCanonical);
|
||||
$queryParams['useCanonical'] = $this->apiClient->toQueryValue($useCanonical);
|
||||
}
|
||||
if($word != null) {
|
||||
$resourcePath = str_replace("{" . "word" . "}",
|
||||
@ -501,7 +501,7 @@ class WordApi {
|
||||
$headerParams = array();
|
||||
|
||||
if($useCanonical != null) {
|
||||
$queryParams['useCanonical'] = $this->apiClient->toPathValue($useCanonical);
|
||||
$queryParams['useCanonical'] = $this->apiClient->toQueryValue($useCanonical);
|
||||
}
|
||||
if($word != null) {
|
||||
$resourcePath = str_replace("{" . "word" . "}",
|
||||
@ -544,10 +544,10 @@ class WordApi {
|
||||
$headerParams = array();
|
||||
|
||||
if($useCanonical != null) {
|
||||
$queryParams['useCanonical'] = $this->apiClient->toPathValue($useCanonical);
|
||||
$queryParams['useCanonical'] = $this->apiClient->toQueryValue($useCanonical);
|
||||
}
|
||||
if($limit != null) {
|
||||
$queryParams['limit'] = $this->apiClient->toPathValue($limit);
|
||||
$queryParams['limit'] = $this->apiClient->toQueryValue($limit);
|
||||
}
|
||||
if($word != null) {
|
||||
$resourcePath = str_replace("{" . "word" . "}",
|
||||
|
@ -44,7 +44,7 @@ class WordListApi {
|
||||
$headerParams = array();
|
||||
|
||||
if($auth_token != null) {
|
||||
$headerParams['auth_token'] = $this->apiClient->toPathValue($auth_token);
|
||||
$headerParams['auth_token'] = $this->apiClient->toHeaderValue($auth_token);
|
||||
}
|
||||
if($permalink != null) {
|
||||
$resourcePath = str_replace("{" . "permalink" . "}",
|
||||
@ -78,7 +78,7 @@ class WordListApi {
|
||||
$headerParams = array();
|
||||
|
||||
if($auth_token != null) {
|
||||
$headerParams['auth_token'] = $this->apiClient->toPathValue($auth_token);
|
||||
$headerParams['auth_token'] = $this->apiClient->toHeaderValue($auth_token);
|
||||
}
|
||||
if($permalink != null) {
|
||||
$resourcePath = str_replace("{" . "permalink" . "}",
|
||||
@ -112,7 +112,7 @@ class WordListApi {
|
||||
$headerParams = array();
|
||||
|
||||
if($auth_token != null) {
|
||||
$headerParams['auth_token'] = $this->apiClient->toPathValue($auth_token);
|
||||
$headerParams['auth_token'] = $this->apiClient->toHeaderValue($auth_token);
|
||||
}
|
||||
if($permalink != null) {
|
||||
$resourcePath = str_replace("{" . "permalink" . "}",
|
||||
@ -155,7 +155,7 @@ class WordListApi {
|
||||
$headerParams = array();
|
||||
|
||||
if($auth_token != null) {
|
||||
$headerParams['auth_token'] = $this->apiClient->toPathValue($auth_token);
|
||||
$headerParams['auth_token'] = $this->apiClient->toHeaderValue($auth_token);
|
||||
}
|
||||
if($permalink != null) {
|
||||
$resourcePath = str_replace("{" . "permalink" . "}",
|
||||
@ -193,19 +193,19 @@ class WordListApi {
|
||||
$headerParams = array();
|
||||
|
||||
if($sortBy != null) {
|
||||
$queryParams['sortBy'] = $this->apiClient->toPathValue($sortBy);
|
||||
$queryParams['sortBy'] = $this->apiClient->toQueryValue($sortBy);
|
||||
}
|
||||
if($sortOrder != null) {
|
||||
$queryParams['sortOrder'] = $this->apiClient->toPathValue($sortOrder);
|
||||
$queryParams['sortOrder'] = $this->apiClient->toQueryValue($sortOrder);
|
||||
}
|
||||
if($skip != null) {
|
||||
$queryParams['skip'] = $this->apiClient->toPathValue($skip);
|
||||
$queryParams['skip'] = $this->apiClient->toQueryValue($skip);
|
||||
}
|
||||
if($limit != null) {
|
||||
$queryParams['limit'] = $this->apiClient->toPathValue($limit);
|
||||
$queryParams['limit'] = $this->apiClient->toQueryValue($limit);
|
||||
}
|
||||
if($auth_token != null) {
|
||||
$headerParams['auth_token'] = $this->apiClient->toPathValue($auth_token);
|
||||
$headerParams['auth_token'] = $this->apiClient->toHeaderValue($auth_token);
|
||||
}
|
||||
if($permalink != null) {
|
||||
$resourcePath = str_replace("{" . "permalink" . "}",
|
||||
@ -248,7 +248,7 @@ class WordListApi {
|
||||
$headerParams = array();
|
||||
|
||||
if($auth_token != null) {
|
||||
$headerParams['auth_token'] = $this->apiClient->toPathValue($auth_token);
|
||||
$headerParams['auth_token'] = $this->apiClient->toHeaderValue($auth_token);
|
||||
}
|
||||
if($permalink != null) {
|
||||
$resourcePath = str_replace("{" . "permalink" . "}",
|
||||
|
@ -43,7 +43,7 @@ class WordListsApi {
|
||||
$headerParams = array();
|
||||
|
||||
if($auth_token != null) {
|
||||
$headerParams['auth_token'] = $this->apiClient->toPathValue($auth_token);
|
||||
$headerParams['auth_token'] = $this->apiClient->toHeaderValue($auth_token);
|
||||
}
|
||||
//make the API Call
|
||||
if (! isset($body)) {
|
||||
|
@ -53,37 +53,37 @@ class WordsApi {
|
||||
$headerParams = array();
|
||||
|
||||
if($caseSensitive != null) {
|
||||
$queryParams['caseSensitive'] = $this->apiClient->toPathValue($caseSensitive);
|
||||
$queryParams['caseSensitive'] = $this->apiClient->toQueryValue($caseSensitive);
|
||||
}
|
||||
if($includePartOfSpeech != null) {
|
||||
$queryParams['includePartOfSpeech'] = $this->apiClient->toPathValue($includePartOfSpeech);
|
||||
$queryParams['includePartOfSpeech'] = $this->apiClient->toQueryValue($includePartOfSpeech);
|
||||
}
|
||||
if($excludePartOfSpeech != null) {
|
||||
$queryParams['excludePartOfSpeech'] = $this->apiClient->toPathValue($excludePartOfSpeech);
|
||||
$queryParams['excludePartOfSpeech'] = $this->apiClient->toQueryValue($excludePartOfSpeech);
|
||||
}
|
||||
if($minCorpusCount != null) {
|
||||
$queryParams['minCorpusCount'] = $this->apiClient->toPathValue($minCorpusCount);
|
||||
$queryParams['minCorpusCount'] = $this->apiClient->toQueryValue($minCorpusCount);
|
||||
}
|
||||
if($maxCorpusCount != null) {
|
||||
$queryParams['maxCorpusCount'] = $this->apiClient->toPathValue($maxCorpusCount);
|
||||
$queryParams['maxCorpusCount'] = $this->apiClient->toQueryValue($maxCorpusCount);
|
||||
}
|
||||
if($minDictionaryCount != null) {
|
||||
$queryParams['minDictionaryCount'] = $this->apiClient->toPathValue($minDictionaryCount);
|
||||
$queryParams['minDictionaryCount'] = $this->apiClient->toQueryValue($minDictionaryCount);
|
||||
}
|
||||
if($maxDictionaryCount != null) {
|
||||
$queryParams['maxDictionaryCount'] = $this->apiClient->toPathValue($maxDictionaryCount);
|
||||
$queryParams['maxDictionaryCount'] = $this->apiClient->toQueryValue($maxDictionaryCount);
|
||||
}
|
||||
if($minLength != null) {
|
||||
$queryParams['minLength'] = $this->apiClient->toPathValue($minLength);
|
||||
$queryParams['minLength'] = $this->apiClient->toQueryValue($minLength);
|
||||
}
|
||||
if($maxLength != null) {
|
||||
$queryParams['maxLength'] = $this->apiClient->toPathValue($maxLength);
|
||||
$queryParams['maxLength'] = $this->apiClient->toQueryValue($maxLength);
|
||||
}
|
||||
if($skip != null) {
|
||||
$queryParams['skip'] = $this->apiClient->toPathValue($skip);
|
||||
$queryParams['skip'] = $this->apiClient->toQueryValue($skip);
|
||||
}
|
||||
if($limit != null) {
|
||||
$queryParams['limit'] = $this->apiClient->toPathValue($limit);
|
||||
$queryParams['limit'] = $this->apiClient->toQueryValue($limit);
|
||||
}
|
||||
if($query != null) {
|
||||
$resourcePath = str_replace("{" . "query" . "}",
|
||||
@ -124,7 +124,7 @@ class WordsApi {
|
||||
$headerParams = array();
|
||||
|
||||
if($date != null) {
|
||||
$queryParams['date'] = $this->apiClient->toPathValue($date);
|
||||
$queryParams['date'] = $this->apiClient->toQueryValue($date);
|
||||
}
|
||||
//make the API Call
|
||||
if (! isset($body)) {
|
||||
@ -176,52 +176,52 @@ class WordsApi {
|
||||
$headerParams = array();
|
||||
|
||||
if($query != null) {
|
||||
$queryParams['query'] = $this->apiClient->toPathValue($query);
|
||||
$queryParams['query'] = $this->apiClient->toQueryValue($query);
|
||||
}
|
||||
if($findSenseForWord != null) {
|
||||
$queryParams['findSenseForWord'] = $this->apiClient->toPathValue($findSenseForWord);
|
||||
$queryParams['findSenseForWord'] = $this->apiClient->toQueryValue($findSenseForWord);
|
||||
}
|
||||
if($includeSourceDictionaries != null) {
|
||||
$queryParams['includeSourceDictionaries'] = $this->apiClient->toPathValue($includeSourceDictionaries);
|
||||
$queryParams['includeSourceDictionaries'] = $this->apiClient->toQueryValue($includeSourceDictionaries);
|
||||
}
|
||||
if($excludeSourceDictionaries != null) {
|
||||
$queryParams['excludeSourceDictionaries'] = $this->apiClient->toPathValue($excludeSourceDictionaries);
|
||||
$queryParams['excludeSourceDictionaries'] = $this->apiClient->toQueryValue($excludeSourceDictionaries);
|
||||
}
|
||||
if($includePartOfSpeech != null) {
|
||||
$queryParams['includePartOfSpeech'] = $this->apiClient->toPathValue($includePartOfSpeech);
|
||||
$queryParams['includePartOfSpeech'] = $this->apiClient->toQueryValue($includePartOfSpeech);
|
||||
}
|
||||
if($excludePartOfSpeech != null) {
|
||||
$queryParams['excludePartOfSpeech'] = $this->apiClient->toPathValue($excludePartOfSpeech);
|
||||
$queryParams['excludePartOfSpeech'] = $this->apiClient->toQueryValue($excludePartOfSpeech);
|
||||
}
|
||||
if($minCorpusCount != null) {
|
||||
$queryParams['minCorpusCount'] = $this->apiClient->toPathValue($minCorpusCount);
|
||||
$queryParams['minCorpusCount'] = $this->apiClient->toQueryValue($minCorpusCount);
|
||||
}
|
||||
if($maxCorpusCount != null) {
|
||||
$queryParams['maxCorpusCount'] = $this->apiClient->toPathValue($maxCorpusCount);
|
||||
$queryParams['maxCorpusCount'] = $this->apiClient->toQueryValue($maxCorpusCount);
|
||||
}
|
||||
if($minLength != null) {
|
||||
$queryParams['minLength'] = $this->apiClient->toPathValue($minLength);
|
||||
$queryParams['minLength'] = $this->apiClient->toQueryValue($minLength);
|
||||
}
|
||||
if($maxLength != null) {
|
||||
$queryParams['maxLength'] = $this->apiClient->toPathValue($maxLength);
|
||||
$queryParams['maxLength'] = $this->apiClient->toQueryValue($maxLength);
|
||||
}
|
||||
if($expandTerms != null) {
|
||||
$queryParams['expandTerms'] = $this->apiClient->toPathValue($expandTerms);
|
||||
$queryParams['expandTerms'] = $this->apiClient->toQueryValue($expandTerms);
|
||||
}
|
||||
if($includeTags != null) {
|
||||
$queryParams['includeTags'] = $this->apiClient->toPathValue($includeTags);
|
||||
$queryParams['includeTags'] = $this->apiClient->toQueryValue($includeTags);
|
||||
}
|
||||
if($sortBy != null) {
|
||||
$queryParams['sortBy'] = $this->apiClient->toPathValue($sortBy);
|
||||
$queryParams['sortBy'] = $this->apiClient->toQueryValue($sortBy);
|
||||
}
|
||||
if($sortOrder != null) {
|
||||
$queryParams['sortOrder'] = $this->apiClient->toPathValue($sortOrder);
|
||||
$queryParams['sortOrder'] = $this->apiClient->toQueryValue($sortOrder);
|
||||
}
|
||||
if($skip != null) {
|
||||
$queryParams['skip'] = $this->apiClient->toPathValue($skip);
|
||||
$queryParams['skip'] = $this->apiClient->toQueryValue($skip);
|
||||
}
|
||||
if($limit != null) {
|
||||
$queryParams['limit'] = $this->apiClient->toPathValue($limit);
|
||||
$queryParams['limit'] = $this->apiClient->toQueryValue($limit);
|
||||
}
|
||||
//make the API Call
|
||||
if (! isset($body)) {
|
||||
@ -269,40 +269,40 @@ class WordsApi {
|
||||
$headerParams = array();
|
||||
|
||||
if($hasDictionaryDef != null) {
|
||||
$queryParams['hasDictionaryDef'] = $this->apiClient->toPathValue($hasDictionaryDef);
|
||||
$queryParams['hasDictionaryDef'] = $this->apiClient->toQueryValue($hasDictionaryDef);
|
||||
}
|
||||
if($includePartOfSpeech != null) {
|
||||
$queryParams['includePartOfSpeech'] = $this->apiClient->toPathValue($includePartOfSpeech);
|
||||
$queryParams['includePartOfSpeech'] = $this->apiClient->toQueryValue($includePartOfSpeech);
|
||||
}
|
||||
if($excludePartOfSpeech != null) {
|
||||
$queryParams['excludePartOfSpeech'] = $this->apiClient->toPathValue($excludePartOfSpeech);
|
||||
$queryParams['excludePartOfSpeech'] = $this->apiClient->toQueryValue($excludePartOfSpeech);
|
||||
}
|
||||
if($minCorpusCount != null) {
|
||||
$queryParams['minCorpusCount'] = $this->apiClient->toPathValue($minCorpusCount);
|
||||
$queryParams['minCorpusCount'] = $this->apiClient->toQueryValue($minCorpusCount);
|
||||
}
|
||||
if($maxCorpusCount != null) {
|
||||
$queryParams['maxCorpusCount'] = $this->apiClient->toPathValue($maxCorpusCount);
|
||||
$queryParams['maxCorpusCount'] = $this->apiClient->toQueryValue($maxCorpusCount);
|
||||
}
|
||||
if($minDictionaryCount != null) {
|
||||
$queryParams['minDictionaryCount'] = $this->apiClient->toPathValue($minDictionaryCount);
|
||||
$queryParams['minDictionaryCount'] = $this->apiClient->toQueryValue($minDictionaryCount);
|
||||
}
|
||||
if($maxDictionaryCount != null) {
|
||||
$queryParams['maxDictionaryCount'] = $this->apiClient->toPathValue($maxDictionaryCount);
|
||||
$queryParams['maxDictionaryCount'] = $this->apiClient->toQueryValue($maxDictionaryCount);
|
||||
}
|
||||
if($minLength != null) {
|
||||
$queryParams['minLength'] = $this->apiClient->toPathValue($minLength);
|
||||
$queryParams['minLength'] = $this->apiClient->toQueryValue($minLength);
|
||||
}
|
||||
if($maxLength != null) {
|
||||
$queryParams['maxLength'] = $this->apiClient->toPathValue($maxLength);
|
||||
$queryParams['maxLength'] = $this->apiClient->toQueryValue($maxLength);
|
||||
}
|
||||
if($sortBy != null) {
|
||||
$queryParams['sortBy'] = $this->apiClient->toPathValue($sortBy);
|
||||
$queryParams['sortBy'] = $this->apiClient->toQueryValue($sortBy);
|
||||
}
|
||||
if($sortOrder != null) {
|
||||
$queryParams['sortOrder'] = $this->apiClient->toPathValue($sortOrder);
|
||||
$queryParams['sortOrder'] = $this->apiClient->toQueryValue($sortOrder);
|
||||
}
|
||||
if($limit != null) {
|
||||
$queryParams['limit'] = $this->apiClient->toPathValue($limit);
|
||||
$queryParams['limit'] = $this->apiClient->toQueryValue($limit);
|
||||
}
|
||||
//make the API Call
|
||||
if (! isset($body)) {
|
||||
@ -347,31 +347,31 @@ class WordsApi {
|
||||
$headerParams = array();
|
||||
|
||||
if($hasDictionaryDef != null) {
|
||||
$queryParams['hasDictionaryDef'] = $this->apiClient->toPathValue($hasDictionaryDef);
|
||||
$queryParams['hasDictionaryDef'] = $this->apiClient->toQueryValue($hasDictionaryDef);
|
||||
}
|
||||
if($includePartOfSpeech != null) {
|
||||
$queryParams['includePartOfSpeech'] = $this->apiClient->toPathValue($includePartOfSpeech);
|
||||
$queryParams['includePartOfSpeech'] = $this->apiClient->toQueryValue($includePartOfSpeech);
|
||||
}
|
||||
if($excludePartOfSpeech != null) {
|
||||
$queryParams['excludePartOfSpeech'] = $this->apiClient->toPathValue($excludePartOfSpeech);
|
||||
$queryParams['excludePartOfSpeech'] = $this->apiClient->toQueryValue($excludePartOfSpeech);
|
||||
}
|
||||
if($minCorpusCount != null) {
|
||||
$queryParams['minCorpusCount'] = $this->apiClient->toPathValue($minCorpusCount);
|
||||
$queryParams['minCorpusCount'] = $this->apiClient->toQueryValue($minCorpusCount);
|
||||
}
|
||||
if($maxCorpusCount != null) {
|
||||
$queryParams['maxCorpusCount'] = $this->apiClient->toPathValue($maxCorpusCount);
|
||||
$queryParams['maxCorpusCount'] = $this->apiClient->toQueryValue($maxCorpusCount);
|
||||
}
|
||||
if($minDictionaryCount != null) {
|
||||
$queryParams['minDictionaryCount'] = $this->apiClient->toPathValue($minDictionaryCount);
|
||||
$queryParams['minDictionaryCount'] = $this->apiClient->toQueryValue($minDictionaryCount);
|
||||
}
|
||||
if($maxDictionaryCount != null) {
|
||||
$queryParams['maxDictionaryCount'] = $this->apiClient->toPathValue($maxDictionaryCount);
|
||||
$queryParams['maxDictionaryCount'] = $this->apiClient->toQueryValue($maxDictionaryCount);
|
||||
}
|
||||
if($minLength != null) {
|
||||
$queryParams['minLength'] = $this->apiClient->toPathValue($minLength);
|
||||
$queryParams['minLength'] = $this->apiClient->toQueryValue($minLength);
|
||||
}
|
||||
if($maxLength != null) {
|
||||
$queryParams['maxLength'] = $this->apiClient->toPathValue($maxLength);
|
||||
$queryParams['maxLength'] = $this->apiClient->toQueryValue($maxLength);
|
||||
}
|
||||
//make the API Call
|
||||
if (! isset($body)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user