add oauth support for php

This commit is contained in:
wing328
2015-10-27 19:22:25 +08:00
parent 2e6199ac3b
commit 67815ed5f2
4 changed files with 42 additions and 9 deletions

View File

@@ -136,7 +136,7 @@ class PetApi
}
//TODO support oauth
$headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAuthToken();
// make the API Call
try
@@ -201,7 +201,7 @@ class PetApi
}
//TODO support oauth
$headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAuthToken();
// make the API Call
try
@@ -265,7 +265,7 @@ class PetApi
}
//TODO support oauth
$headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAuthToken();
// make the API Call
try
@@ -341,7 +341,7 @@ class PetApi
}
//TODO support oauth
$headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAuthToken();
// make the API Call
try
@@ -527,7 +527,7 @@ class PetApi
}
//TODO support oauth
$headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAuthToken();
// make the API Call
try
@@ -603,7 +603,7 @@ class PetApi
}
//TODO support oauth
$headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAuthToken();
// make the API Call
try
@@ -695,7 +695,7 @@ class PetApi
}
//TODO support oauth
$headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAuthToken();
// make the API Call
try