groupdocs-python
Advanced tools
| #!/usr/bin/env python | ||
| """ | ||
| Copyright 2012 GroupDocs. | ||
| Licensed under the Apache License, Version 2.0 (the "License"); | ||
| you may not use this file except in compliance with the License. | ||
| You may obtain a copy of the License at | ||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
| Unless required by applicable law or agreed to in writing, software | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| """ | ||
| class CreditCardInfo: | ||
| """ | ||
| NOTE: This class is auto generated by the swagger code generator program. | ||
| Do not edit the class manually.""" | ||
| def __init__(self): | ||
| self.swaggerTypes = { | ||
| 'firstNameOnCard': 'str', | ||
| 'lastNameOnCard': 'str', | ||
| 'number': 'str', | ||
| 'expirationMonth': 'int', | ||
| 'expirationYear': 'int', | ||
| 'cvv': 'str' | ||
| } | ||
| self.firstNameOnCard = None # str | ||
| self.lastNameOnCard = None # str | ||
| self.number = None # str | ||
| self.expirationMonth = None # int | ||
| self.expirationYear = None # int | ||
| self.cvv = None # str | ||
| #!/usr/bin/env python | ||
| """ | ||
| Copyright 2012 GroupDocs. | ||
| Licensed under the Apache License, Version 2.0 (the "License"); | ||
| you may not use this file except in compliance with the License. | ||
| You may obtain a copy of the License at | ||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
| Unless required by applicable law or agreed to in writing, software | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| """ | ||
| class GetCreditCardResponse: | ||
| """ | ||
| NOTE: This class is auto generated by the swagger code generator program. | ||
| Do not edit the class manually.""" | ||
| def __init__(self): | ||
| self.swaggerTypes = { | ||
| 'result': 'GetCreditCardResult', | ||
| 'status': 'str', | ||
| 'error_message': 'str', | ||
| 'composedOn': 'long' | ||
| } | ||
| self.result = None # GetCreditCardResult | ||
| self.status = None # str | ||
| self.error_message = None # str | ||
| self.composedOn = None # long | ||
| #!/usr/bin/env python | ||
| """ | ||
| Copyright 2012 GroupDocs. | ||
| Licensed under the Apache License, Version 2.0 (the "License"); | ||
| you may not use this file except in compliance with the License. | ||
| You may obtain a copy of the License at | ||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
| Unless required by applicable law or agreed to in writing, software | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| """ | ||
| class GetCreditCardResult: | ||
| """ | ||
| NOTE: This class is auto generated by the swagger code generator program. | ||
| Do not edit the class manually.""" | ||
| def __init__(self): | ||
| self.swaggerTypes = { | ||
| 'credit_card': 'CreditCardInfo' | ||
| } | ||
| self.credit_card = None # CreditCardInfo | ||
@@ -0,0 +0,0 @@ #!/usr/bin/env python |
@@ -32,2 +32,3 @@ #!/usr/bin/env python | ||
| 'avail_documents': 'long', | ||
| 'used_documents': 'int', | ||
| 'maxViewingFileSize': 'long' | ||
@@ -44,3 +45,4 @@ | ||
| self.avail_documents = None # long | ||
| self.used_documents = None # int | ||
| self.maxViewingFileSize = None # long | ||
+13
-12
@@ -443,3 +443,3 @@ #!/usr/bin/env python | ||
| def UploadGoogle(self, userId, path, **kwargs): | ||
| def UploadGoogle(self, userId, url, description, accessToken, **kwargs): | ||
| """Upload Google | ||
@@ -449,10 +449,11 @@ | ||
| userId, str: User GUID (required) | ||
| path, str: File path (required) | ||
| fileId, str: File unique identifier (optional) | ||
| url, str: Url (required) | ||
| description, str: Description (required) | ||
| accessToken, str: AccessToken (required) | ||
| Returns: UploadResponse | ||
| """ | ||
| if( userId == None or path == None ): | ||
| if( userId == None or url == None or description == None or accessToken == None ): | ||
| raise ApiException(400, "missing required parameters") | ||
| allParams = ['userId', 'path', 'fileId'] | ||
| allParams = ['userId', 'url', 'description', 'accessToken'] | ||
@@ -466,3 +467,3 @@ params = locals() | ||
| resourcePath = '/storage/{userId}/google/files/{*path}?file_id={fileId}'.replace('*', '') | ||
| resourcePath = '/storage/{userId}/google/files/?url={url}&description={description}&accessToken={accessToken}'.replace('*', '') | ||
| pos = resourcePath.find("?") | ||
@@ -477,4 +478,8 @@ if pos != -1: | ||
| if ('fileId' in params): | ||
| queryParams['file_id'] = self.apiClient.toPathValue(params['fileId']) | ||
| if ('url' in params): | ||
| queryParams['url'] = self.apiClient.toPathValue(params['url']) | ||
| if ('description' in params): | ||
| queryParams['description'] = self.apiClient.toPathValue(params['description']) | ||
| if ('accessToken' in params): | ||
| queryParams['accessToken'] = self.apiClient.toPathValue(params['accessToken']) | ||
| if ('userId' in params): | ||
@@ -484,6 +489,2 @@ replacement = str(self.apiClient.toPathValue(params['userId'])) | ||
| replacement) | ||
| if ('path' in params): | ||
| replacement = str(self.apiClient.toPathValue(params['path'])) | ||
| resourcePath = resourcePath.replace('{' + 'path' + '}', | ||
| replacement) | ||
| postData = (params['body'] if 'body' in params else None) | ||
@@ -490,0 +491,0 @@ response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams, |
@@ -494,2 +494,85 @@ #!/usr/bin/env python | ||
| def SetCreditCard(self, userId, body, **kwargs): | ||
| """Set user credit card | ||
| Args: | ||
| userId, str: User GUID (required) | ||
| body, CreditCardInfo: Credit Card (required) | ||
| Returns: GetCreditCardResponse | ||
| """ | ||
| if( userId == None or body == None ): | ||
| raise ApiException(400, "missing required parameters") | ||
| allParams = ['userId', 'body'] | ||
| params = locals() | ||
| for (key, val) in params['kwargs'].iteritems(): | ||
| if key not in allParams: | ||
| raise TypeError("Got an unexpected keyword argument '%s' to method SetCreditCard" % key) | ||
| params[key] = val | ||
| del params['kwargs'] | ||
| resourcePath = '/system/{userId}/creditcard'.replace('*', '') | ||
| resourcePath = resourcePath.replace('{format}', 'json') | ||
| method = 'PUT' | ||
| queryParams = {} | ||
| headerParams = {} | ||
| if ('userId' in params): | ||
| replacement = str(self.apiClient.toPathValue(params['userId'])) | ||
| resourcePath = resourcePath.replace('{' + 'userId' + '}', | ||
| replacement) | ||
| postData = (params['body'] if 'body' in params else None) | ||
| response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams, | ||
| postData, headerParams) | ||
| if not response: | ||
| return None | ||
| responseObject = self.apiClient.deserialize(response, 'GetCreditCardResponse') | ||
| return responseObject | ||
| def GetCreditCard(self, userId, **kwargs): | ||
| """Get user credit card | ||
| Args: | ||
| userId, str: User GUID (required) | ||
| Returns: GetCreditCardResponse | ||
| """ | ||
| if( userId == None ): | ||
| raise ApiException(400, "missing required parameters") | ||
| allParams = ['userId'] | ||
| params = locals() | ||
| for (key, val) in params['kwargs'].iteritems(): | ||
| if key not in allParams: | ||
| raise TypeError("Got an unexpected keyword argument '%s' to method GetCreditCard" % key) | ||
| params[key] = val | ||
| del params['kwargs'] | ||
| resourcePath = '/system/{userId}/creditcard'.replace('*', '') | ||
| resourcePath = resourcePath.replace('{format}', 'json') | ||
| method = 'GET' | ||
| queryParams = {} | ||
| headerParams = {} | ||
| if ('userId' in params): | ||
| replacement = str(self.apiClient.toPathValue(params['userId'])) | ||
| resourcePath = resourcePath.replace('{' + 'userId' + '}', | ||
| replacement) | ||
| postData = (params['body'] if 'body' in params else None) | ||
| response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams, | ||
| postData, headerParams) | ||
| if not response: | ||
| return None | ||
| responseObject = self.apiClient.deserialize(response, 'GetCreditCardResponse') | ||
| return responseObject | ||
| def GetInvoices(self, callerId, **kwargs): | ||
@@ -496,0 +579,0 @@ """Get invoices |
| __pkgname__ = "groupdocs-python" | ||
| __version__ = "2.4.1" | ||
| __version__ = "2.5.0" |
+3
-3
@@ -1,4 +0,4 @@ | ||
| Metadata-Version: 1.1 | ||
| Metadata-Version: 1.0 | ||
| Name: groupdocs-python | ||
| Version: 2.4.1 | ||
| Version: 2.5.0 | ||
| Summary: A Python interface to the GroupDocs API | ||
@@ -13,3 +13,3 @@ Home-page: http://groupdocs.com/ | ||
| Latest SDK version 2.4.1. | ||
| Latest SDK version 2.5.0. | ||
@@ -16,0 +16,0 @@ Requirements |
+1
-1
| GroupDocs Python SDK |Build Status|_ | ||
| #################################### | ||
| Latest SDK version 2.4.1. | ||
| Latest SDK version 2.5.0. | ||
@@ -6,0 +6,0 @@ Requirements |
+0
-0
@@ -0,0 +0,0 @@ #!/usr/bin/env python |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.