From 50f20ad8368bfc6068146864f6b7d74305bc6bcc Mon Sep 17 00:00:00 2001 From: Tony Tam Date: Tue, 10 Jun 2014 08:21:51 -0700 Subject: [PATCH] updated templates --- samples/client/wordnik-api/php/README.md | 2 +- .../wordnik-api/php/tests/BaseApiTest.php | 2 +- .../wordnik-api/php/wordnik/AccountApi.php | 20 ++++---- .../wordnik-api/php/wordnik/WordApi.php | 48 +++++++++---------- .../wordnik-api/php/wordnik/WordListApi.php | 24 +++++----- .../wordnik-api/php/wordnik/WordListsApi.php | 4 +- .../wordnik-api/php/wordnik/WordsApi.php | 20 ++++---- 7 files changed, 60 insertions(+), 60 deletions(-) diff --git a/samples/client/wordnik-api/php/README.md b/samples/client/wordnik-api/php/README.md index a254df9ab1e..9455aaf04da 100644 --- a/samples/client/wordnik-api/php/README.md +++ b/samples/client/wordnik-api/php/README.md @@ -24,7 +24,7 @@ php -d detect_unicode=0 go-pear.phar Then install PHPUnit: ```sh -pear config-set auto_discover +pear config-set auto_discover 1 pear install pear.phpunit.de/PHPUnit ``` diff --git a/samples/client/wordnik-api/php/tests/BaseApiTest.php b/samples/client/wordnik-api/php/tests/BaseApiTest.php index 6ba623cc86d..ac32b689778 100644 --- a/samples/client/wordnik-api/php/tests/BaseApiTest.php +++ b/samples/client/wordnik-api/php/tests/BaseApiTest.php @@ -34,7 +34,7 @@ require_once 'wordnik/Swagger.php'; class BaseApiTest extends PHPUnit_Framework_TestCase { public function setUp() { - $this->apiUrl = 'http://api.wordnik.com/v4'; + $this->apiUrl = 'https://api.wordnik.com/v4'; $this->apiKey = getenv('API_KEY'); $this->username = getenv('USER_NAME'); $this->password = getenv('PASSWORD'); diff --git a/samples/client/wordnik-api/php/wordnik/AccountApi.php b/samples/client/wordnik-api/php/wordnik/AccountApi.php index 13d22704500..77469b43fca 100644 --- a/samples/client/wordnik-api/php/wordnik/AccountApi.php +++ b/samples/client/wordnik-api/php/wordnik/AccountApi.php @@ -43,8 +43,8 @@ class AccountApi { $method = "GET"; $queryParams = array(); $headerParams = array(); - $headerParams['Accept'] = '(mediaType,application/json)'; - $headerParams['Content-Type'] = ''; + $headerParams['Accept'] = 'application/json'; + $headerParams['Content-Type'] = 'application/json'; if($password != null) { $queryParams['password'] = $this->apiClient->toQueryValue($password); @@ -89,8 +89,8 @@ class AccountApi { $method = "POST"; $queryParams = array(); $headerParams = array(); - $headerParams['Accept'] = '(mediaType,application/json)'; - $headerParams['Content-Type'] = ''; + $headerParams['Accept'] = 'application/json'; + $headerParams['Content-Type'] = 'application/json'; if($username != null) { $resourcePath = str_replace("{" . "username" . "}", @@ -134,8 +134,8 @@ class AccountApi { $method = "GET"; $queryParams = array(); $headerParams = array(); - $headerParams['Accept'] = '(mediaType,application/json)'; - $headerParams['Content-Type'] = ''; + $headerParams['Accept'] = 'application/json'; + $headerParams['Content-Type'] = 'application/json'; if($skip != null) { $queryParams['skip'] = $this->apiClient->toQueryValue($skip); @@ -180,8 +180,8 @@ class AccountApi { $method = "GET"; $queryParams = array(); $headerParams = array(); - $headerParams['Accept'] = '(mediaType,application/json)'; - $headerParams['Content-Type'] = ''; + $headerParams['Accept'] = 'application/json'; + $headerParams['Content-Type'] = 'application/json'; if($api_key != null) { $headerParams['api_key'] = $this->apiClient->toHeaderValue($api_key); @@ -220,8 +220,8 @@ class AccountApi { $method = "GET"; $queryParams = array(); $headerParams = array(); - $headerParams['Accept'] = '(mediaType,application/json)'; - $headerParams['Content-Type'] = ''; + $headerParams['Accept'] = 'application/json'; + $headerParams['Content-Type'] = 'application/json'; if($auth_token != null) { $headerParams['auth_token'] = $this->apiClient->toHeaderValue($auth_token); diff --git a/samples/client/wordnik-api/php/wordnik/WordApi.php b/samples/client/wordnik-api/php/wordnik/WordApi.php index c6956992f95..8cedbcec1be 100644 --- a/samples/client/wordnik-api/php/wordnik/WordApi.php +++ b/samples/client/wordnik-api/php/wordnik/WordApi.php @@ -49,8 +49,8 @@ class WordApi { $method = "GET"; $queryParams = array(); $headerParams = array(); - $headerParams['Accept'] = '(mediaType,application/json)'; - $headerParams['Content-Type'] = ''; + $headerParams['Accept'] = 'application/json'; + $headerParams['Content-Type'] = 'application/json'; if($includeDuplicates != null) { $queryParams['includeDuplicates'] = $this->apiClient->toQueryValue($includeDuplicates); @@ -106,8 +106,8 @@ class WordApi { $method = "GET"; $queryParams = array(); $headerParams = array(); - $headerParams['Accept'] = '(mediaType,application/json)'; - $headerParams['Content-Type'] = ''; + $headerParams['Accept'] = 'application/json'; + $headerParams['Content-Type'] = 'application/json'; if($useCanonical != null) { $queryParams['useCanonical'] = $this->apiClient->toQueryValue($useCanonical); @@ -165,8 +165,8 @@ class WordApi { $method = "GET"; $queryParams = array(); $headerParams = array(); - $headerParams['Accept'] = '(mediaType,application/json)'; - $headerParams['Content-Type'] = ''; + $headerParams['Accept'] = 'application/json'; + $headerParams['Content-Type'] = 'application/json'; if($limit != null) { $queryParams['limit'] = $this->apiClient->toQueryValue($limit); @@ -226,8 +226,8 @@ class WordApi { $method = "GET"; $queryParams = array(); $headerParams = array(); - $headerParams['Accept'] = '(mediaType,application/json)'; - $headerParams['Content-Type'] = ''; + $headerParams['Accept'] = 'application/json'; + $headerParams['Content-Type'] = 'application/json'; if($useCanonical != null) { $queryParams['useCanonical'] = $this->apiClient->toQueryValue($useCanonical); @@ -276,8 +276,8 @@ class WordApi { $method = "GET"; $queryParams = array(); $headerParams = array(); - $headerParams['Accept'] = '(mediaType,application/json)'; - $headerParams['Content-Type'] = ''; + $headerParams['Accept'] = 'application/json'; + $headerParams['Content-Type'] = 'application/json'; if($useCanonical != null) { $queryParams['useCanonical'] = $this->apiClient->toQueryValue($useCanonical); @@ -334,8 +334,8 @@ class WordApi { $method = "GET"; $queryParams = array(); $headerParams = array(); - $headerParams['Accept'] = '(mediaType,application/json)'; - $headerParams['Content-Type'] = ''; + $headerParams['Accept'] = 'application/json'; + $headerParams['Content-Type'] = 'application/json'; if($useCanonical != null) { $queryParams['useCanonical'] = $this->apiClient->toQueryValue($useCanonical); @@ -393,8 +393,8 @@ class WordApi { $method = "GET"; $queryParams = array(); $headerParams = array(); - $headerParams['Accept'] = '(mediaType,application/json)'; - $headerParams['Content-Type'] = ''; + $headerParams['Accept'] = 'application/json'; + $headerParams['Content-Type'] = 'application/json'; if($useCanonical != null) { $queryParams['useCanonical'] = $this->apiClient->toQueryValue($useCanonical); @@ -449,8 +449,8 @@ class WordApi { $method = "GET"; $queryParams = array(); $headerParams = array(); - $headerParams['Accept'] = '(mediaType,application/json)'; - $headerParams['Content-Type'] = ''; + $headerParams['Accept'] = 'application/json'; + $headerParams['Content-Type'] = 'application/json'; if($useCanonical != null) { $queryParams['useCanonical'] = $this->apiClient->toQueryValue($useCanonical); @@ -505,8 +505,8 @@ class WordApi { $method = "GET"; $queryParams = array(); $headerParams = array(); - $headerParams['Accept'] = '(mediaType,application/json)'; - $headerParams['Content-Type'] = ''; + $headerParams['Accept'] = 'application/json'; + $headerParams['Content-Type'] = 'application/json'; if($limit != null) { $queryParams['limit'] = $this->apiClient->toQueryValue($limit); @@ -557,8 +557,8 @@ class WordApi { $method = "GET"; $queryParams = array(); $headerParams = array(); - $headerParams['Accept'] = '(mediaType,application/json)'; - $headerParams['Content-Type'] = ''; + $headerParams['Accept'] = 'application/json'; + $headerParams['Content-Type'] = 'application/json'; if($useCanonical != null) { $queryParams['useCanonical'] = $this->apiClient->toQueryValue($useCanonical); @@ -605,8 +605,8 @@ class WordApi { $method = "GET"; $queryParams = array(); $headerParams = array(); - $headerParams['Accept'] = '(mediaType,application/json)'; - $headerParams['Content-Type'] = ''; + $headerParams['Accept'] = 'application/json'; + $headerParams['Content-Type'] = 'application/json'; if($useCanonical != null) { $queryParams['useCanonical'] = $this->apiClient->toQueryValue($useCanonical); @@ -652,8 +652,8 @@ class WordApi { $method = "GET"; $queryParams = array(); $headerParams = array(); - $headerParams['Accept'] = '(mediaType,application/json)'; - $headerParams['Content-Type'] = ''; + $headerParams['Accept'] = 'application/json'; + $headerParams['Content-Type'] = 'application/json'; if($word != null) { $resourcePath = str_replace("{" . "word" . "}", diff --git a/samples/client/wordnik-api/php/wordnik/WordListApi.php b/samples/client/wordnik-api/php/wordnik/WordListApi.php index a55bb608478..65e5ee3e5ce 100644 --- a/samples/client/wordnik-api/php/wordnik/WordListApi.php +++ b/samples/client/wordnik-api/php/wordnik/WordListApi.php @@ -45,8 +45,8 @@ class WordListApi { $method = "PUT"; $queryParams = array(); $headerParams = array(); - $headerParams['Accept'] = '(mediaType,application/json)'; - $headerParams['Content-Type'] = ''; + $headerParams['Accept'] = 'application/json'; + $headerParams['Content-Type'] = 'application/json'; if($auth_token != null) { $headerParams['auth_token'] = $this->apiClient->toHeaderValue($auth_token); @@ -83,8 +83,8 @@ class WordListApi { $method = "DELETE"; $queryParams = array(); $headerParams = array(); - $headerParams['Accept'] = '(mediaType,application/json)'; - $headerParams['Content-Type'] = ''; + $headerParams['Accept'] = 'application/json'; + $headerParams['Content-Type'] = 'application/json'; if($auth_token != null) { $headerParams['auth_token'] = $this->apiClient->toHeaderValue($auth_token); @@ -121,8 +121,8 @@ class WordListApi { $method = "GET"; $queryParams = array(); $headerParams = array(); - $headerParams['Accept'] = '(mediaType,application/json)'; - $headerParams['Content-Type'] = ''; + $headerParams['Accept'] = 'application/json'; + $headerParams['Content-Type'] = 'application/json'; if($auth_token != null) { $headerParams['auth_token'] = $this->apiClient->toHeaderValue($auth_token); @@ -169,8 +169,8 @@ class WordListApi { $method = "POST"; $queryParams = array(); $headerParams = array(); - $headerParams['Accept'] = '(mediaType,application/json)'; - $headerParams['Content-Type'] = ''; + $headerParams['Accept'] = 'application/json'; + $headerParams['Content-Type'] = 'application/json'; if($auth_token != null) { $headerParams['auth_token'] = $this->apiClient->toHeaderValue($auth_token); @@ -215,8 +215,8 @@ class WordListApi { $method = "GET"; $queryParams = array(); $headerParams = array(); - $headerParams['Accept'] = '(mediaType,application/json)'; - $headerParams['Content-Type'] = ''; + $headerParams['Accept'] = 'application/json'; + $headerParams['Content-Type'] = 'application/json'; if($sortBy != null) { $queryParams['sortBy'] = $this->apiClient->toQueryValue($sortBy); @@ -275,8 +275,8 @@ class WordListApi { $method = "POST"; $queryParams = array(); $headerParams = array(); - $headerParams['Accept'] = '(mediaType,application/json)'; - $headerParams['Content-Type'] = ''; + $headerParams['Accept'] = 'application/json'; + $headerParams['Content-Type'] = 'application/json'; if($auth_token != null) { $headerParams['auth_token'] = $this->apiClient->toHeaderValue($auth_token); diff --git a/samples/client/wordnik-api/php/wordnik/WordListsApi.php b/samples/client/wordnik-api/php/wordnik/WordListsApi.php index 04d3876a8e7..a2db4edce7d 100644 --- a/samples/client/wordnik-api/php/wordnik/WordListsApi.php +++ b/samples/client/wordnik-api/php/wordnik/WordListsApi.php @@ -43,8 +43,8 @@ class WordListsApi { $method = "POST"; $queryParams = array(); $headerParams = array(); - $headerParams['Accept'] = '(mediaType,application/json)'; - $headerParams['Content-Type'] = ''; + $headerParams['Accept'] = 'application/json'; + $headerParams['Content-Type'] = 'application/json'; if($auth_token != null) { $headerParams['auth_token'] = $this->apiClient->toHeaderValue($auth_token); diff --git a/samples/client/wordnik-api/php/wordnik/WordsApi.php b/samples/client/wordnik-api/php/wordnik/WordsApi.php index 1561c92f433..4d776848f2e 100644 --- a/samples/client/wordnik-api/php/wordnik/WordsApi.php +++ b/samples/client/wordnik-api/php/wordnik/WordsApi.php @@ -63,8 +63,8 @@ class WordsApi { $method = "GET"; $queryParams = array(); $headerParams = array(); - $headerParams['Accept'] = '(mediaType,application/json)'; - $headerParams['Content-Type'] = ''; + $headerParams['Accept'] = 'application/json'; + $headerParams['Content-Type'] = 'application/json'; if($caseSensitive != null) { $queryParams['caseSensitive'] = $this->apiClient->toQueryValue($caseSensitive); @@ -137,8 +137,8 @@ class WordsApi { $method = "GET"; $queryParams = array(); $headerParams = array(); - $headerParams['Accept'] = '(mediaType,application/json)'; - $headerParams['Content-Type'] = ''; + $headerParams['Accept'] = 'application/json'; + $headerParams['Content-Type'] = 'application/json'; if($date != null) { $queryParams['date'] = $this->apiClient->toQueryValue($date); @@ -207,8 +207,8 @@ class WordsApi { $method = "GET"; $queryParams = array(); $headerParams = array(); - $headerParams['Accept'] = '(mediaType,application/json)'; - $headerParams['Content-Type'] = ''; + $headerParams['Accept'] = 'application/json'; + $headerParams['Content-Type'] = 'application/json'; if($query != null) { $queryParams['query'] = $this->apiClient->toQueryValue($query); @@ -314,8 +314,8 @@ class WordsApi { $method = "GET"; $queryParams = array(); $headerParams = array(); - $headerParams['Accept'] = '(mediaType,application/json)'; - $headerParams['Content-Type'] = ''; + $headerParams['Accept'] = 'application/json'; + $headerParams['Content-Type'] = 'application/json'; if($hasDictionaryDef != null) { $queryParams['hasDictionaryDef'] = $this->apiClient->toQueryValue($hasDictionaryDef); @@ -403,8 +403,8 @@ class WordsApi { $method = "GET"; $queryParams = array(); $headerParams = array(); - $headerParams['Accept'] = '(mediaType,application/json)'; - $headerParams['Content-Type'] = ''; + $headerParams['Accept'] = 'application/json'; + $headerParams['Content-Type'] = 'application/json'; if($hasDictionaryDef != null) { $queryParams['hasDictionaryDef'] = $this->apiClient->toQueryValue($hasDictionaryDef);