forked from loafle/openapi-generator-original
add authentication
This commit is contained in:
@@ -73,10 +73,13 @@ class UserApi {
|
||||
$httpBody = $formParams;
|
||||
}
|
||||
|
||||
// authentication setting, if any
|
||||
$authSettings = array();
|
||||
|
||||
// make the API Call
|
||||
$response = $this->apiClient->callAPI($resourcePath, $method,
|
||||
$queryParams, $httpBody,
|
||||
$headerParams);
|
||||
$headerParams, $authSettings);
|
||||
|
||||
|
||||
}
|
||||
@@ -125,10 +128,13 @@ class UserApi {
|
||||
$httpBody = $formParams;
|
||||
}
|
||||
|
||||
// authentication setting, if any
|
||||
$authSettings = array();
|
||||
|
||||
// make the API Call
|
||||
$response = $this->apiClient->callAPI($resourcePath, $method,
|
||||
$queryParams, $httpBody,
|
||||
$headerParams);
|
||||
$headerParams, $authSettings);
|
||||
|
||||
|
||||
}
|
||||
@@ -177,10 +183,13 @@ class UserApi {
|
||||
$httpBody = $formParams;
|
||||
}
|
||||
|
||||
// authentication setting, if any
|
||||
$authSettings = array();
|
||||
|
||||
// make the API Call
|
||||
$response = $this->apiClient->callAPI($resourcePath, $method,
|
||||
$queryParams, $httpBody,
|
||||
$headerParams);
|
||||
$headerParams, $authSettings);
|
||||
|
||||
|
||||
}
|
||||
@@ -232,18 +241,20 @@ class UserApi {
|
||||
$httpBody = $formParams;
|
||||
}
|
||||
|
||||
// authentication setting, if any
|
||||
$authSettings = array();
|
||||
|
||||
// make the API Call
|
||||
$response = $this->apiClient->callAPI($resourcePath, $method,
|
||||
$queryParams, $httpBody,
|
||||
$headerParams);
|
||||
$headerParams, $authSettings);
|
||||
|
||||
if(! $response) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$responseObject = $this->apiClient->deserialize($response,
|
||||
'string');
|
||||
return $responseObject;
|
||||
$responseObject = $this->apiClient->deserialize($response,'string');
|
||||
return $responseObject;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -285,10 +296,13 @@ class UserApi {
|
||||
$httpBody = $formParams;
|
||||
}
|
||||
|
||||
// authentication setting, if any
|
||||
$authSettings = array();
|
||||
|
||||
// make the API Call
|
||||
$response = $this->apiClient->callAPI($resourcePath, $method,
|
||||
$queryParams, $httpBody,
|
||||
$headerParams);
|
||||
$headerParams, $authSettings);
|
||||
|
||||
|
||||
}
|
||||
@@ -342,18 +356,20 @@ class UserApi {
|
||||
$httpBody = $formParams;
|
||||
}
|
||||
|
||||
// authentication setting, if any
|
||||
$authSettings = array();
|
||||
|
||||
// make the API Call
|
||||
$response = $this->apiClient->callAPI($resourcePath, $method,
|
||||
$queryParams, $httpBody,
|
||||
$headerParams);
|
||||
$headerParams, $authSettings);
|
||||
|
||||
if(! $response) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$responseObject = $this->apiClient->deserialize($response,
|
||||
'User');
|
||||
return $responseObject;
|
||||
$responseObject = $this->apiClient->deserialize($response,'User');
|
||||
return $responseObject;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -410,10 +426,13 @@ class UserApi {
|
||||
$httpBody = $formParams;
|
||||
}
|
||||
|
||||
// authentication setting, if any
|
||||
$authSettings = array();
|
||||
|
||||
// make the API Call
|
||||
$response = $this->apiClient->callAPI($resourcePath, $method,
|
||||
$queryParams, $httpBody,
|
||||
$headerParams);
|
||||
$headerParams, $authSettings);
|
||||
|
||||
|
||||
}
|
||||
@@ -467,10 +486,13 @@ class UserApi {
|
||||
$httpBody = $formParams;
|
||||
}
|
||||
|
||||
// authentication setting, if any
|
||||
$authSettings = array();
|
||||
|
||||
// make the API Call
|
||||
$response = $this->apiClient->callAPI($resourcePath, $method,
|
||||
$queryParams, $httpBody,
|
||||
$headerParams);
|
||||
$headerParams, $authSettings);
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user