update php wordnik sample app

This commit is contained in:
Russell Horton 2013-02-10 13:24:39 -08:00
parent 00ac23c462
commit 434102550f
6 changed files with 124 additions and 102 deletions

View File

@ -43,7 +43,7 @@ class AccountApi {
$headerParams = array(); $headerParams = array();
if($password != null) { if($password != null) {
$queryParams['password'] = $this->apiClient->toPathValue($password); $queryParams['password'] = $this->apiClient->toQueryValue($password);
} }
if($username != null) { if($username != null) {
$resourcePath = str_replace("{" . "username" . "}", $resourcePath = str_replace("{" . "username" . "}",
@ -125,13 +125,13 @@ class AccountApi {
$headerParams = array(); $headerParams = array();
if($skip != null) { if($skip != null) {
$queryParams['skip'] = $this->apiClient->toPathValue($skip); $queryParams['skip'] = $this->apiClient->toQueryValue($skip);
} }
if($limit != null) { if($limit != null) {
$queryParams['limit'] = $this->apiClient->toPathValue($limit); $queryParams['limit'] = $this->apiClient->toQueryValue($limit);
} }
if($auth_token != null) { if($auth_token != null) {
$headerParams['auth_token'] = $this->apiClient->toPathValue($auth_token); $headerParams['auth_token'] = $this->apiClient->toHeaderValue($auth_token);
} }
//make the API Call //make the API Call
if (! isset($body)) { if (! isset($body)) {
@ -168,7 +168,7 @@ class AccountApi {
$headerParams = array(); $headerParams = array();
if($api_key != null) { if($api_key != null) {
$headerParams['api_key'] = $this->apiClient->toPathValue($api_key); $headerParams['api_key'] = $this->apiClient->toHeaderValue($api_key);
} }
//make the API Call //make the API Call
if (! isset($body)) { if (! isset($body)) {
@ -205,7 +205,7 @@ class AccountApi {
$headerParams = array(); $headerParams = array();
if($auth_token != null) { if($auth_token != null) {
$headerParams['auth_token'] = $this->apiClient->toPathValue($auth_token); $headerParams['auth_token'] = $this->apiClient->toHeaderValue($auth_token);
} }
//make the API Call //make the API Call
if (! isset($body)) { if (! isset($body)) {

View File

@ -137,18 +137,39 @@ class APIClient {
/** /**
* Take value and turn it into a string suitable for inclusion in * 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 * @param object $object an object to be serialized to a string
* @return string the serialized object * @return string the serialized object
*/ */
public static function toPathValue($object) { public static function toQueryValue($object) {
if (is_array($object)) { if (is_array($object)) {
return rawurlencode(implode(',', $object)); return implode(',', $object);
} else { } 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 * Deserialize a JSON string into an object
@ -219,3 +240,4 @@ class APIClient {
?> ?>

View File

@ -46,16 +46,16 @@ class WordApi {
$headerParams = array(); $headerParams = array();
if($includeDuplicates != null) { if($includeDuplicates != null) {
$queryParams['includeDuplicates'] = $this->apiClient->toPathValue($includeDuplicates); $queryParams['includeDuplicates'] = $this->apiClient->toQueryValue($includeDuplicates);
} }
if($useCanonical != null) { if($useCanonical != null) {
$queryParams['useCanonical'] = $this->apiClient->toPathValue($useCanonical); $queryParams['useCanonical'] = $this->apiClient->toQueryValue($useCanonical);
} }
if($skip != null) { if($skip != null) {
$queryParams['skip'] = $this->apiClient->toPathValue($skip); $queryParams['skip'] = $this->apiClient->toQueryValue($skip);
} }
if($limit != null) { if($limit != null) {
$queryParams['limit'] = $this->apiClient->toPathValue($limit); $queryParams['limit'] = $this->apiClient->toQueryValue($limit);
} }
if($word != null) { if($word != null) {
$resourcePath = str_replace("{" . "word" . "}", $resourcePath = str_replace("{" . "word" . "}",
@ -98,10 +98,10 @@ class WordApi {
$headerParams = array(); $headerParams = array();
if($useCanonical != null) { if($useCanonical != null) {
$queryParams['useCanonical'] = $this->apiClient->toPathValue($useCanonical); $queryParams['useCanonical'] = $this->apiClient->toQueryValue($useCanonical);
} }
if($includeSuggestions != null) { if($includeSuggestions != null) {
$queryParams['includeSuggestions'] = $this->apiClient->toPathValue($includeSuggestions); $queryParams['includeSuggestions'] = $this->apiClient->toQueryValue($includeSuggestions);
} }
if($word != null) { if($word != null) {
$resourcePath = str_replace("{" . "word" . "}", $resourcePath = str_replace("{" . "word" . "}",
@ -148,22 +148,22 @@ class WordApi {
$headerParams = array(); $headerParams = array();
if($limit != null) { if($limit != null) {
$queryParams['limit'] = $this->apiClient->toPathValue($limit); $queryParams['limit'] = $this->apiClient->toQueryValue($limit);
} }
if($partOfSpeech != null) { if($partOfSpeech != null) {
$queryParams['partOfSpeech'] = $this->apiClient->toPathValue($partOfSpeech); $queryParams['partOfSpeech'] = $this->apiClient->toQueryValue($partOfSpeech);
} }
if($includeRelated != null) { if($includeRelated != null) {
$queryParams['includeRelated'] = $this->apiClient->toPathValue($includeRelated); $queryParams['includeRelated'] = $this->apiClient->toQueryValue($includeRelated);
} }
if($sourceDictionaries != null) { if($sourceDictionaries != null) {
$queryParams['sourceDictionaries'] = $this->apiClient->toPathValue($sourceDictionaries); $queryParams['sourceDictionaries'] = $this->apiClient->toQueryValue($sourceDictionaries);
} }
if($useCanonical != null) { if($useCanonical != null) {
$queryParams['useCanonical'] = $this->apiClient->toPathValue($useCanonical); $queryParams['useCanonical'] = $this->apiClient->toQueryValue($useCanonical);
} }
if($includeTags != null) { if($includeTags != null) {
$queryParams['includeTags'] = $this->apiClient->toPathValue($includeTags); $queryParams['includeTags'] = $this->apiClient->toQueryValue($includeTags);
} }
if($word != null) { if($word != null) {
$resourcePath = str_replace("{" . "word" . "}", $resourcePath = str_replace("{" . "word" . "}",
@ -205,7 +205,7 @@ class WordApi {
$headerParams = array(); $headerParams = array();
if($useCanonical != null) { if($useCanonical != null) {
$queryParams['useCanonical'] = $this->apiClient->toPathValue($useCanonical); $queryParams['useCanonical'] = $this->apiClient->toQueryValue($useCanonical);
} }
if($word != null) { if($word != null) {
$resourcePath = str_replace("{" . "word" . "}", $resourcePath = str_replace("{" . "word" . "}",
@ -249,13 +249,13 @@ class WordApi {
$headerParams = array(); $headerParams = array();
if($useCanonical != null) { if($useCanonical != null) {
$queryParams['useCanonical'] = $this->apiClient->toPathValue($useCanonical); $queryParams['useCanonical'] = $this->apiClient->toQueryValue($useCanonical);
} }
if($relationshipTypes != null) { if($relationshipTypes != null) {
$queryParams['relationshipTypes'] = $this->apiClient->toPathValue($relationshipTypes); $queryParams['relationshipTypes'] = $this->apiClient->toQueryValue($relationshipTypes);
} }
if($limitPerRelationshipType != null) { if($limitPerRelationshipType != null) {
$queryParams['limitPerRelationshipType'] = $this->apiClient->toPathValue($limitPerRelationshipType); $queryParams['limitPerRelationshipType'] = $this->apiClient->toQueryValue($limitPerRelationshipType);
} }
if($word != null) { if($word != null) {
$resourcePath = str_replace("{" . "word" . "}", $resourcePath = str_replace("{" . "word" . "}",
@ -300,16 +300,16 @@ class WordApi {
$headerParams = array(); $headerParams = array();
if($useCanonical != null) { if($useCanonical != null) {
$queryParams['useCanonical'] = $this->apiClient->toPathValue($useCanonical); $queryParams['useCanonical'] = $this->apiClient->toQueryValue($useCanonical);
} }
if($sourceDictionary != null) { if($sourceDictionary != null) {
$queryParams['sourceDictionary'] = $this->apiClient->toPathValue($sourceDictionary); $queryParams['sourceDictionary'] = $this->apiClient->toQueryValue($sourceDictionary);
} }
if($typeFormat != null) { if($typeFormat != null) {
$queryParams['typeFormat'] = $this->apiClient->toPathValue($typeFormat); $queryParams['typeFormat'] = $this->apiClient->toQueryValue($typeFormat);
} }
if($limit != null) { if($limit != null) {
$queryParams['limit'] = $this->apiClient->toPathValue($limit); $queryParams['limit'] = $this->apiClient->toQueryValue($limit);
} }
if($word != null) { if($word != null) {
$resourcePath = str_replace("{" . "word" . "}", $resourcePath = str_replace("{" . "word" . "}",
@ -353,13 +353,13 @@ class WordApi {
$headerParams = array(); $headerParams = array();
if($useCanonical != null) { if($useCanonical != null) {
$queryParams['useCanonical'] = $this->apiClient->toPathValue($useCanonical); $queryParams['useCanonical'] = $this->apiClient->toQueryValue($useCanonical);
} }
if($sourceDictionary != null) { if($sourceDictionary != null) {
$queryParams['sourceDictionary'] = $this->apiClient->toPathValue($sourceDictionary); $queryParams['sourceDictionary'] = $this->apiClient->toQueryValue($sourceDictionary);
} }
if($limit != null) { if($limit != null) {
$queryParams['limit'] = $this->apiClient->toPathValue($limit); $queryParams['limit'] = $this->apiClient->toQueryValue($limit);
} }
if($word != null) { if($word != null) {
$resourcePath = str_replace("{" . "word" . "}", $resourcePath = str_replace("{" . "word" . "}",
@ -403,13 +403,13 @@ class WordApi {
$headerParams = array(); $headerParams = array();
if($useCanonical != null) { if($useCanonical != null) {
$queryParams['useCanonical'] = $this->apiClient->toPathValue($useCanonical); $queryParams['useCanonical'] = $this->apiClient->toQueryValue($useCanonical);
} }
if($startYear != null) { if($startYear != null) {
$queryParams['startYear'] = $this->apiClient->toPathValue($startYear); $queryParams['startYear'] = $this->apiClient->toQueryValue($startYear);
} }
if($endYear != null) { if($endYear != null) {
$queryParams['endYear'] = $this->apiClient->toPathValue($endYear); $queryParams['endYear'] = $this->apiClient->toQueryValue($endYear);
} }
if($word != null) { if($word != null) {
$resourcePath = str_replace("{" . "word" . "}", $resourcePath = str_replace("{" . "word" . "}",
@ -453,13 +453,13 @@ class WordApi {
$headerParams = array(); $headerParams = array();
if($limit != null) { if($limit != null) {
$queryParams['limit'] = $this->apiClient->toPathValue($limit); $queryParams['limit'] = $this->apiClient->toQueryValue($limit);
} }
if($wlmi != null) { if($wlmi != null) {
$queryParams['wlmi'] = $this->apiClient->toPathValue($wlmi); $queryParams['wlmi'] = $this->apiClient->toQueryValue($wlmi);
} }
if($useCanonical != null) { if($useCanonical != null) {
$queryParams['useCanonical'] = $this->apiClient->toPathValue($useCanonical); $queryParams['useCanonical'] = $this->apiClient->toQueryValue($useCanonical);
} }
if($word != null) { if($word != null) {
$resourcePath = str_replace("{" . "word" . "}", $resourcePath = str_replace("{" . "word" . "}",
@ -501,7 +501,7 @@ class WordApi {
$headerParams = array(); $headerParams = array();
if($useCanonical != null) { if($useCanonical != null) {
$queryParams['useCanonical'] = $this->apiClient->toPathValue($useCanonical); $queryParams['useCanonical'] = $this->apiClient->toQueryValue($useCanonical);
} }
if($word != null) { if($word != null) {
$resourcePath = str_replace("{" . "word" . "}", $resourcePath = str_replace("{" . "word" . "}",
@ -544,10 +544,10 @@ class WordApi {
$headerParams = array(); $headerParams = array();
if($useCanonical != null) { if($useCanonical != null) {
$queryParams['useCanonical'] = $this->apiClient->toPathValue($useCanonical); $queryParams['useCanonical'] = $this->apiClient->toQueryValue($useCanonical);
} }
if($limit != null) { if($limit != null) {
$queryParams['limit'] = $this->apiClient->toPathValue($limit); $queryParams['limit'] = $this->apiClient->toQueryValue($limit);
} }
if($word != null) { if($word != null) {
$resourcePath = str_replace("{" . "word" . "}", $resourcePath = str_replace("{" . "word" . "}",

View File

@ -44,7 +44,7 @@ class WordListApi {
$headerParams = array(); $headerParams = array();
if($auth_token != null) { if($auth_token != null) {
$headerParams['auth_token'] = $this->apiClient->toPathValue($auth_token); $headerParams['auth_token'] = $this->apiClient->toHeaderValue($auth_token);
} }
if($permalink != null) { if($permalink != null) {
$resourcePath = str_replace("{" . "permalink" . "}", $resourcePath = str_replace("{" . "permalink" . "}",
@ -78,7 +78,7 @@ class WordListApi {
$headerParams = array(); $headerParams = array();
if($auth_token != null) { if($auth_token != null) {
$headerParams['auth_token'] = $this->apiClient->toPathValue($auth_token); $headerParams['auth_token'] = $this->apiClient->toHeaderValue($auth_token);
} }
if($permalink != null) { if($permalink != null) {
$resourcePath = str_replace("{" . "permalink" . "}", $resourcePath = str_replace("{" . "permalink" . "}",
@ -112,7 +112,7 @@ class WordListApi {
$headerParams = array(); $headerParams = array();
if($auth_token != null) { if($auth_token != null) {
$headerParams['auth_token'] = $this->apiClient->toPathValue($auth_token); $headerParams['auth_token'] = $this->apiClient->toHeaderValue($auth_token);
} }
if($permalink != null) { if($permalink != null) {
$resourcePath = str_replace("{" . "permalink" . "}", $resourcePath = str_replace("{" . "permalink" . "}",
@ -155,7 +155,7 @@ class WordListApi {
$headerParams = array(); $headerParams = array();
if($auth_token != null) { if($auth_token != null) {
$headerParams['auth_token'] = $this->apiClient->toPathValue($auth_token); $headerParams['auth_token'] = $this->apiClient->toHeaderValue($auth_token);
} }
if($permalink != null) { if($permalink != null) {
$resourcePath = str_replace("{" . "permalink" . "}", $resourcePath = str_replace("{" . "permalink" . "}",
@ -193,19 +193,19 @@ class WordListApi {
$headerParams = array(); $headerParams = array();
if($sortBy != null) { if($sortBy != null) {
$queryParams['sortBy'] = $this->apiClient->toPathValue($sortBy); $queryParams['sortBy'] = $this->apiClient->toQueryValue($sortBy);
} }
if($sortOrder != null) { if($sortOrder != null) {
$queryParams['sortOrder'] = $this->apiClient->toPathValue($sortOrder); $queryParams['sortOrder'] = $this->apiClient->toQueryValue($sortOrder);
} }
if($skip != null) { if($skip != null) {
$queryParams['skip'] = $this->apiClient->toPathValue($skip); $queryParams['skip'] = $this->apiClient->toQueryValue($skip);
} }
if($limit != null) { if($limit != null) {
$queryParams['limit'] = $this->apiClient->toPathValue($limit); $queryParams['limit'] = $this->apiClient->toQueryValue($limit);
} }
if($auth_token != null) { if($auth_token != null) {
$headerParams['auth_token'] = $this->apiClient->toPathValue($auth_token); $headerParams['auth_token'] = $this->apiClient->toHeaderValue($auth_token);
} }
if($permalink != null) { if($permalink != null) {
$resourcePath = str_replace("{" . "permalink" . "}", $resourcePath = str_replace("{" . "permalink" . "}",
@ -248,7 +248,7 @@ class WordListApi {
$headerParams = array(); $headerParams = array();
if($auth_token != null) { if($auth_token != null) {
$headerParams['auth_token'] = $this->apiClient->toPathValue($auth_token); $headerParams['auth_token'] = $this->apiClient->toHeaderValue($auth_token);
} }
if($permalink != null) { if($permalink != null) {
$resourcePath = str_replace("{" . "permalink" . "}", $resourcePath = str_replace("{" . "permalink" . "}",

View File

@ -43,7 +43,7 @@ class WordListsApi {
$headerParams = array(); $headerParams = array();
if($auth_token != null) { if($auth_token != null) {
$headerParams['auth_token'] = $this->apiClient->toPathValue($auth_token); $headerParams['auth_token'] = $this->apiClient->toHeaderValue($auth_token);
} }
//make the API Call //make the API Call
if (! isset($body)) { if (! isset($body)) {

View File

@ -53,37 +53,37 @@ class WordsApi {
$headerParams = array(); $headerParams = array();
if($caseSensitive != null) { if($caseSensitive != null) {
$queryParams['caseSensitive'] = $this->apiClient->toPathValue($caseSensitive); $queryParams['caseSensitive'] = $this->apiClient->toQueryValue($caseSensitive);
} }
if($includePartOfSpeech != null) { if($includePartOfSpeech != null) {
$queryParams['includePartOfSpeech'] = $this->apiClient->toPathValue($includePartOfSpeech); $queryParams['includePartOfSpeech'] = $this->apiClient->toQueryValue($includePartOfSpeech);
} }
if($excludePartOfSpeech != null) { if($excludePartOfSpeech != null) {
$queryParams['excludePartOfSpeech'] = $this->apiClient->toPathValue($excludePartOfSpeech); $queryParams['excludePartOfSpeech'] = $this->apiClient->toQueryValue($excludePartOfSpeech);
} }
if($minCorpusCount != null) { if($minCorpusCount != null) {
$queryParams['minCorpusCount'] = $this->apiClient->toPathValue($minCorpusCount); $queryParams['minCorpusCount'] = $this->apiClient->toQueryValue($minCorpusCount);
} }
if($maxCorpusCount != null) { if($maxCorpusCount != null) {
$queryParams['maxCorpusCount'] = $this->apiClient->toPathValue($maxCorpusCount); $queryParams['maxCorpusCount'] = $this->apiClient->toQueryValue($maxCorpusCount);
} }
if($minDictionaryCount != null) { if($minDictionaryCount != null) {
$queryParams['minDictionaryCount'] = $this->apiClient->toPathValue($minDictionaryCount); $queryParams['minDictionaryCount'] = $this->apiClient->toQueryValue($minDictionaryCount);
} }
if($maxDictionaryCount != null) { if($maxDictionaryCount != null) {
$queryParams['maxDictionaryCount'] = $this->apiClient->toPathValue($maxDictionaryCount); $queryParams['maxDictionaryCount'] = $this->apiClient->toQueryValue($maxDictionaryCount);
} }
if($minLength != null) { if($minLength != null) {
$queryParams['minLength'] = $this->apiClient->toPathValue($minLength); $queryParams['minLength'] = $this->apiClient->toQueryValue($minLength);
} }
if($maxLength != null) { if($maxLength != null) {
$queryParams['maxLength'] = $this->apiClient->toPathValue($maxLength); $queryParams['maxLength'] = $this->apiClient->toQueryValue($maxLength);
} }
if($skip != null) { if($skip != null) {
$queryParams['skip'] = $this->apiClient->toPathValue($skip); $queryParams['skip'] = $this->apiClient->toQueryValue($skip);
} }
if($limit != null) { if($limit != null) {
$queryParams['limit'] = $this->apiClient->toPathValue($limit); $queryParams['limit'] = $this->apiClient->toQueryValue($limit);
} }
if($query != null) { if($query != null) {
$resourcePath = str_replace("{" . "query" . "}", $resourcePath = str_replace("{" . "query" . "}",
@ -124,7 +124,7 @@ class WordsApi {
$headerParams = array(); $headerParams = array();
if($date != null) { if($date != null) {
$queryParams['date'] = $this->apiClient->toPathValue($date); $queryParams['date'] = $this->apiClient->toQueryValue($date);
} }
//make the API Call //make the API Call
if (! isset($body)) { if (! isset($body)) {
@ -176,52 +176,52 @@ class WordsApi {
$headerParams = array(); $headerParams = array();
if($query != null) { if($query != null) {
$queryParams['query'] = $this->apiClient->toPathValue($query); $queryParams['query'] = $this->apiClient->toQueryValue($query);
} }
if($findSenseForWord != null) { if($findSenseForWord != null) {
$queryParams['findSenseForWord'] = $this->apiClient->toPathValue($findSenseForWord); $queryParams['findSenseForWord'] = $this->apiClient->toQueryValue($findSenseForWord);
} }
if($includeSourceDictionaries != null) { if($includeSourceDictionaries != null) {
$queryParams['includeSourceDictionaries'] = $this->apiClient->toPathValue($includeSourceDictionaries); $queryParams['includeSourceDictionaries'] = $this->apiClient->toQueryValue($includeSourceDictionaries);
} }
if($excludeSourceDictionaries != null) { if($excludeSourceDictionaries != null) {
$queryParams['excludeSourceDictionaries'] = $this->apiClient->toPathValue($excludeSourceDictionaries); $queryParams['excludeSourceDictionaries'] = $this->apiClient->toQueryValue($excludeSourceDictionaries);
} }
if($includePartOfSpeech != null) { if($includePartOfSpeech != null) {
$queryParams['includePartOfSpeech'] = $this->apiClient->toPathValue($includePartOfSpeech); $queryParams['includePartOfSpeech'] = $this->apiClient->toQueryValue($includePartOfSpeech);
} }
if($excludePartOfSpeech != null) { if($excludePartOfSpeech != null) {
$queryParams['excludePartOfSpeech'] = $this->apiClient->toPathValue($excludePartOfSpeech); $queryParams['excludePartOfSpeech'] = $this->apiClient->toQueryValue($excludePartOfSpeech);
} }
if($minCorpusCount != null) { if($minCorpusCount != null) {
$queryParams['minCorpusCount'] = $this->apiClient->toPathValue($minCorpusCount); $queryParams['minCorpusCount'] = $this->apiClient->toQueryValue($minCorpusCount);
} }
if($maxCorpusCount != null) { if($maxCorpusCount != null) {
$queryParams['maxCorpusCount'] = $this->apiClient->toPathValue($maxCorpusCount); $queryParams['maxCorpusCount'] = $this->apiClient->toQueryValue($maxCorpusCount);
} }
if($minLength != null) { if($minLength != null) {
$queryParams['minLength'] = $this->apiClient->toPathValue($minLength); $queryParams['minLength'] = $this->apiClient->toQueryValue($minLength);
} }
if($maxLength != null) { if($maxLength != null) {
$queryParams['maxLength'] = $this->apiClient->toPathValue($maxLength); $queryParams['maxLength'] = $this->apiClient->toQueryValue($maxLength);
} }
if($expandTerms != null) { if($expandTerms != null) {
$queryParams['expandTerms'] = $this->apiClient->toPathValue($expandTerms); $queryParams['expandTerms'] = $this->apiClient->toQueryValue($expandTerms);
} }
if($includeTags != null) { if($includeTags != null) {
$queryParams['includeTags'] = $this->apiClient->toPathValue($includeTags); $queryParams['includeTags'] = $this->apiClient->toQueryValue($includeTags);
} }
if($sortBy != null) { if($sortBy != null) {
$queryParams['sortBy'] = $this->apiClient->toPathValue($sortBy); $queryParams['sortBy'] = $this->apiClient->toQueryValue($sortBy);
} }
if($sortOrder != null) { if($sortOrder != null) {
$queryParams['sortOrder'] = $this->apiClient->toPathValue($sortOrder); $queryParams['sortOrder'] = $this->apiClient->toQueryValue($sortOrder);
} }
if($skip != null) { if($skip != null) {
$queryParams['skip'] = $this->apiClient->toPathValue($skip); $queryParams['skip'] = $this->apiClient->toQueryValue($skip);
} }
if($limit != null) { if($limit != null) {
$queryParams['limit'] = $this->apiClient->toPathValue($limit); $queryParams['limit'] = $this->apiClient->toQueryValue($limit);
} }
//make the API Call //make the API Call
if (! isset($body)) { if (! isset($body)) {
@ -269,40 +269,40 @@ class WordsApi {
$headerParams = array(); $headerParams = array();
if($hasDictionaryDef != null) { if($hasDictionaryDef != null) {
$queryParams['hasDictionaryDef'] = $this->apiClient->toPathValue($hasDictionaryDef); $queryParams['hasDictionaryDef'] = $this->apiClient->toQueryValue($hasDictionaryDef);
} }
if($includePartOfSpeech != null) { if($includePartOfSpeech != null) {
$queryParams['includePartOfSpeech'] = $this->apiClient->toPathValue($includePartOfSpeech); $queryParams['includePartOfSpeech'] = $this->apiClient->toQueryValue($includePartOfSpeech);
} }
if($excludePartOfSpeech != null) { if($excludePartOfSpeech != null) {
$queryParams['excludePartOfSpeech'] = $this->apiClient->toPathValue($excludePartOfSpeech); $queryParams['excludePartOfSpeech'] = $this->apiClient->toQueryValue($excludePartOfSpeech);
} }
if($minCorpusCount != null) { if($minCorpusCount != null) {
$queryParams['minCorpusCount'] = $this->apiClient->toPathValue($minCorpusCount); $queryParams['minCorpusCount'] = $this->apiClient->toQueryValue($minCorpusCount);
} }
if($maxCorpusCount != null) { if($maxCorpusCount != null) {
$queryParams['maxCorpusCount'] = $this->apiClient->toPathValue($maxCorpusCount); $queryParams['maxCorpusCount'] = $this->apiClient->toQueryValue($maxCorpusCount);
} }
if($minDictionaryCount != null) { if($minDictionaryCount != null) {
$queryParams['minDictionaryCount'] = $this->apiClient->toPathValue($minDictionaryCount); $queryParams['minDictionaryCount'] = $this->apiClient->toQueryValue($minDictionaryCount);
} }
if($maxDictionaryCount != null) { if($maxDictionaryCount != null) {
$queryParams['maxDictionaryCount'] = $this->apiClient->toPathValue($maxDictionaryCount); $queryParams['maxDictionaryCount'] = $this->apiClient->toQueryValue($maxDictionaryCount);
} }
if($minLength != null) { if($minLength != null) {
$queryParams['minLength'] = $this->apiClient->toPathValue($minLength); $queryParams['minLength'] = $this->apiClient->toQueryValue($minLength);
} }
if($maxLength != null) { if($maxLength != null) {
$queryParams['maxLength'] = $this->apiClient->toPathValue($maxLength); $queryParams['maxLength'] = $this->apiClient->toQueryValue($maxLength);
} }
if($sortBy != null) { if($sortBy != null) {
$queryParams['sortBy'] = $this->apiClient->toPathValue($sortBy); $queryParams['sortBy'] = $this->apiClient->toQueryValue($sortBy);
} }
if($sortOrder != null) { if($sortOrder != null) {
$queryParams['sortOrder'] = $this->apiClient->toPathValue($sortOrder); $queryParams['sortOrder'] = $this->apiClient->toQueryValue($sortOrder);
} }
if($limit != null) { if($limit != null) {
$queryParams['limit'] = $this->apiClient->toPathValue($limit); $queryParams['limit'] = $this->apiClient->toQueryValue($limit);
} }
//make the API Call //make the API Call
if (! isset($body)) { if (! isset($body)) {
@ -347,31 +347,31 @@ class WordsApi {
$headerParams = array(); $headerParams = array();
if($hasDictionaryDef != null) { if($hasDictionaryDef != null) {
$queryParams['hasDictionaryDef'] = $this->apiClient->toPathValue($hasDictionaryDef); $queryParams['hasDictionaryDef'] = $this->apiClient->toQueryValue($hasDictionaryDef);
} }
if($includePartOfSpeech != null) { if($includePartOfSpeech != null) {
$queryParams['includePartOfSpeech'] = $this->apiClient->toPathValue($includePartOfSpeech); $queryParams['includePartOfSpeech'] = $this->apiClient->toQueryValue($includePartOfSpeech);
} }
if($excludePartOfSpeech != null) { if($excludePartOfSpeech != null) {
$queryParams['excludePartOfSpeech'] = $this->apiClient->toPathValue($excludePartOfSpeech); $queryParams['excludePartOfSpeech'] = $this->apiClient->toQueryValue($excludePartOfSpeech);
} }
if($minCorpusCount != null) { if($minCorpusCount != null) {
$queryParams['minCorpusCount'] = $this->apiClient->toPathValue($minCorpusCount); $queryParams['minCorpusCount'] = $this->apiClient->toQueryValue($minCorpusCount);
} }
if($maxCorpusCount != null) { if($maxCorpusCount != null) {
$queryParams['maxCorpusCount'] = $this->apiClient->toPathValue($maxCorpusCount); $queryParams['maxCorpusCount'] = $this->apiClient->toQueryValue($maxCorpusCount);
} }
if($minDictionaryCount != null) { if($minDictionaryCount != null) {
$queryParams['minDictionaryCount'] = $this->apiClient->toPathValue($minDictionaryCount); $queryParams['minDictionaryCount'] = $this->apiClient->toQueryValue($minDictionaryCount);
} }
if($maxDictionaryCount != null) { if($maxDictionaryCount != null) {
$queryParams['maxDictionaryCount'] = $this->apiClient->toPathValue($maxDictionaryCount); $queryParams['maxDictionaryCount'] = $this->apiClient->toQueryValue($maxDictionaryCount);
} }
if($minLength != null) { if($minLength != null) {
$queryParams['minLength'] = $this->apiClient->toPathValue($minLength); $queryParams['minLength'] = $this->apiClient->toQueryValue($minLength);
} }
if($maxLength != null) { if($maxLength != null) {
$queryParams['maxLength'] = $this->apiClient->toPathValue($maxLength); $queryParams['maxLength'] = $this->apiClient->toQueryValue($maxLength);
} }
//make the API Call //make the API Call
if (! isset($body)) { if (! isset($body)) {