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 GetDocumentContentResponse: | ||
| """ | ||
| NOTE: This class is auto generated by the swagger code generator program. | ||
| Do not edit the class manually.""" | ||
| def __init__(self): | ||
| self.swaggerTypes = { | ||
| 'result': 'GetDocumentContentResult', | ||
| 'status': 'str', | ||
| 'error_message': 'str', | ||
| 'composedOn': 'long' | ||
| } | ||
| self.result = None # GetDocumentContentResult | ||
| 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 GetDocumentContentResult: | ||
| """ | ||
| NOTE: This class is auto generated by the swagger code generator program. | ||
| Do not edit the class manually.""" | ||
| def __init__(self): | ||
| self.swaggerTypes = { | ||
| 'content': 'str' | ||
| } | ||
| self.content = 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 GetInvoiceResult: | ||
| """ | ||
| NOTE: This class is auto generated by the swagger code generator program. | ||
| Do not edit the class manually.""" | ||
| def __init__(self): | ||
| self.swaggerTypes = { | ||
| 'invoices': 'list[Invoice]' | ||
| } | ||
| self.invoices = None # list[Invoice] | ||
| #!/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 GetInvoicesResponse: | ||
| """ | ||
| NOTE: This class is auto generated by the swagger code generator program. | ||
| Do not edit the class manually.""" | ||
| def __init__(self): | ||
| self.swaggerTypes = { | ||
| 'result': 'GetInvoiceResult', | ||
| 'status': 'str', | ||
| 'error_message': 'str', | ||
| 'composedOn': 'long' | ||
| } | ||
| self.result = None # GetInvoiceResult | ||
| 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 GetSubscriptionPlanUsageResponse: | ||
| """ | ||
| NOTE: This class is auto generated by the swagger code generator program. | ||
| Do not edit the class manually.""" | ||
| def __init__(self): | ||
| self.swaggerTypes = { | ||
| 'result': 'GetSubscriptionPlanUsageResult', | ||
| 'status': 'str', | ||
| 'error_message': 'str', | ||
| 'composedOn': 'long' | ||
| } | ||
| self.result = None # GetSubscriptionPlanUsageResult | ||
| 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 GetSubscriptionPlanUsageResult: | ||
| """ | ||
| NOTE: This class is auto generated by the swagger code generator program. | ||
| Do not edit the class manually.""" | ||
| def __init__(self): | ||
| self.swaggerTypes = { | ||
| 'subscription_plan': 'SubscriptionPlanUsageInfo', | ||
| 'usage': 'SubscriptionPlanUsageInfo', | ||
| 'last_reset_date': 'str' | ||
| } | ||
| self.subscription_plan = None # SubscriptionPlanUsageInfo | ||
| self.usage = None # SubscriptionPlanUsageInfo | ||
| self.last_reset_date = 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 Invoice: | ||
| """ | ||
| NOTE: This class is auto generated by the swagger code generator program. | ||
| Do not edit the class manually.""" | ||
| def __init__(self): | ||
| self.swaggerTypes = { | ||
| } | ||
| #!/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 SignatureSignDocumentStatusInfo: | ||
| """ | ||
| NOTE: This class is auto generated by the swagger code generator program. | ||
| Do not edit the class manually.""" | ||
| def __init__(self): | ||
| self.swaggerTypes = { | ||
| 'documentId': 'str', | ||
| 'status': 'str' | ||
| } | ||
| self.documentId = None # str | ||
| self.status = 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 SignatureSignDocumentStatusResponse: | ||
| """ | ||
| NOTE: This class is auto generated by the swagger code generator program. | ||
| Do not edit the class manually.""" | ||
| def __init__(self): | ||
| self.swaggerTypes = { | ||
| 'result': 'SignatureSignDocumentStatusResult', | ||
| 'status': 'str', | ||
| 'error_message': 'str', | ||
| 'composedOn': 'long' | ||
| } | ||
| self.result = None # SignatureSignDocumentStatusResult | ||
| 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 SignatureSignDocumentStatusResult: | ||
| """ | ||
| NOTE: This class is auto generated by the swagger code generator program. | ||
| Do not edit the class manually.""" | ||
| def __init__(self): | ||
| self.swaggerTypes = { | ||
| 'documents': 'list[SignatureSignDocumentStatusInfo]' | ||
| } | ||
| self.documents = None # list[SignatureSignDocumentStatusInfo] | ||
| #!/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 SignatureVerifyDocumentResponse: | ||
| """ | ||
| NOTE: This class is auto generated by the swagger code generator program. | ||
| Do not edit the class manually.""" | ||
| def __init__(self): | ||
| self.swaggerTypes = { | ||
| 'result': 'SignatureVerifyDocumentResult', | ||
| 'status': 'str', | ||
| 'error_message': 'str', | ||
| 'composedOn': 'long' | ||
| } | ||
| self.result = None # SignatureVerifyDocumentResult | ||
| 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 SignatureVerifyDocumentResult: | ||
| """ | ||
| NOTE: This class is auto generated by the swagger code generator program. | ||
| Do not edit the class manually.""" | ||
| def __init__(self): | ||
| self.swaggerTypes = { | ||
| 'authentic': 'bool' | ||
| } | ||
| self.authentic = None # bool | ||
| #!/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 SubscriptionPlanUsageInfo: | ||
| """ | ||
| NOTE: This class is auto generated by the swagger code generator program. | ||
| Do not edit the class manually.""" | ||
| def __init__(self): | ||
| self.swaggerTypes = { | ||
| 'users': 'int', | ||
| 'document_count': 'long', | ||
| 'viewer': 'int', | ||
| 'signature': 'int', | ||
| 'assembly': 'int', | ||
| 'comparison': 'int', | ||
| 'conversion': 'int', | ||
| 'sharing': 'int', | ||
| 'api': 'int', | ||
| 'branding': 'bool', | ||
| 'max_document_size': 'int', | ||
| 'annotation': 'int', | ||
| 'storage_space': 'long', | ||
| 'document_tokens': 'int', | ||
| 'watermarking': 'bool', | ||
| 'storage_providers': 'bool', | ||
| 'private_storage': 'bool', | ||
| 'embeddings': 'int' | ||
| } | ||
| self.users = None # int | ||
| self.document_count = None # long | ||
| self.viewer = None # int | ||
| self.signature = None # int | ||
| self.assembly = None # int | ||
| self.comparison = None # int | ||
| self.conversion = None # int | ||
| self.sharing = None # int | ||
| self.api = None # int | ||
| self.branding = None # bool | ||
| self.max_document_size = None # int | ||
| self.annotation = None # int | ||
| self.storage_space = None # long | ||
| self.document_tokens = None # int | ||
| self.watermarking = None # bool | ||
| self.storage_providers = None # bool | ||
| self.private_storage = None # bool | ||
| self.embeddings = None # int | ||
@@ -61,3 +61,3 @@ #!/usr/bin/env python | ||
| resourcePath = '/async/{userId}/jobs/{jobId}'.replace('*', '') | ||
| resourcePath = '/async/{userId}/jobs/{jobId}?format=xml'.replace('*', '') | ||
| resourcePath = resourcePath.replace('{format}', 'json') | ||
@@ -64,0 +64,0 @@ method = 'GET' |
+51
-0
@@ -1314,4 +1314,55 @@ #!/usr/bin/env python | ||
| def GetDocumentContent(self, userId, fileId, contentType, **kwargs): | ||
| """Returns document content | ||
| Args: | ||
| userId, str: GroupDocs user global unique identifier. (required) | ||
| fileId, str: Document global unique identifier. (required) | ||
| contentType, str: Content type. (required) | ||
| Returns: GetDocumentContentResponse | ||
| """ | ||
| if( userId == None or fileId == None or contentType == None ): | ||
| raise ApiException(400, "missing required parameters") | ||
| allParams = ['userId', 'fileId', 'contentType'] | ||
| params = locals() | ||
| for (key, val) in params['kwargs'].iteritems(): | ||
| if key not in allParams: | ||
| raise TypeError("Got an unexpected keyword argument '%s' to method GetDocumentContent" % key) | ||
| params[key] = val | ||
| del params['kwargs'] | ||
| resourcePath = '/doc/{userId}/files/{fileId}/content/{contentType}'.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) | ||
| if ('fileId' in params): | ||
| replacement = str(self.apiClient.toPathValue(params['fileId'])) | ||
| resourcePath = resourcePath.replace('{' + 'fileId' + '}', | ||
| replacement) | ||
| if ('contentType' in params): | ||
| replacement = str(self.apiClient.toPathValue(params['contentType'])) | ||
| resourcePath = resourcePath.replace('{' + 'contentType' + '}', | ||
| 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, 'GetDocumentContentResponse') | ||
| return responseObject | ||
@@ -447,3 +447,3 @@ #!/usr/bin/env python | ||
| callerId, str: Caller GUID (required) | ||
| userId, str: User GUID (required) | ||
| userId, str: User name (required) | ||
| password, str: Password (required) | ||
@@ -450,0 +450,0 @@ |
@@ -27,5 +27,6 @@ #!/usr/bin/env python | ||
| 'name': 'str', | ||
| 'values': 'list[str]', | ||
| 'values': 'str', | ||
| 'contentType': 'str', | ||
| 'type': 'str' | ||
| 'type': 'str', | ||
| 'nested_fields': 'list[DatasourceField]' | ||
@@ -36,5 +37,6 @@ } | ||
| self.name = None # str | ||
| self.values = None # list[str] | ||
| self.values = None # str | ||
| self.contentType = None # str | ||
| self.type = None # str | ||
| self.nested_fields = None # list[DatasourceField] | ||
@@ -41,3 +41,4 @@ #!/usr/bin/env python | ||
| 'output_format': 'str', | ||
| 'open_on_completion': 'bool' | ||
| 'open_on_completion': 'bool', | ||
| 'allowed_operations': 'int' | ||
@@ -63,2 +64,3 @@ } | ||
| self.open_on_completion = None # bool | ||
| self.allowed_operations = None # int | ||
@@ -38,3 +38,4 @@ #!/usr/bin/env python | ||
| 'output_format': 'str', | ||
| 'open_on_completion': 'bool' | ||
| 'open_on_completion': 'bool', | ||
| 'allowed_operations': 'int' | ||
@@ -57,2 +58,3 @@ } | ||
| self.open_on_completion = None # bool | ||
| self.allowed_operations = None # int | ||
@@ -29,2 +29,3 @@ #!/usr/bin/env python | ||
| 'creationDateTime': 'str', | ||
| 'updatedDateTime': 'str', | ||
| 'ownerGuid': 'str', | ||
@@ -54,2 +55,3 @@ 'status': 'int', | ||
| self.creationDateTime = None # str | ||
| self.updatedDateTime = None # str | ||
| self.ownerGuid = None # str | ||
@@ -56,0 +58,0 @@ self.status = None # int |
@@ -28,3 +28,4 @@ #!/usr/bin/env python | ||
| 'documentGuid': 'str', | ||
| 'fillDateTime': 'str' | ||
| 'fillDateTime': 'str', | ||
| 'status': 'int' | ||
@@ -37,2 +38,3 @@ } | ||
| self.fillDateTime = None # str | ||
| self.status = None # int | ||
@@ -26,3 +26,3 @@ #!/usr/bin/env python | ||
| self.swaggerTypes = { | ||
| 'documentId': 'str' | ||
| 'documents': 'list[SignatureSignDocumentInfo]' | ||
@@ -32,3 +32,3 @@ } | ||
| self.documentId = None # str | ||
| self.documents = None # list[SignatureSignDocumentInfo] | ||
@@ -40,3 +40,4 @@ #!/usr/bin/env python | ||
| 'waterMarkText': 'str', | ||
| 'waterMarkImage': 'str' | ||
| 'waterMarkImage': 'str', | ||
| 'fieldsCount': 'float' | ||
@@ -61,2 +62,3 @@ } | ||
| self.waterMarkImage = None # str | ||
| self.fieldsCount = None # float | ||
@@ -34,3 +34,4 @@ #!/usr/bin/env python | ||
| 'isPrimary': 'bool', | ||
| 'serviceHost': 'str' | ||
| 'serviceHost': 'str', | ||
| 'syncOptions': 'str' | ||
@@ -49,2 +50,3 @@ } | ||
| self.serviceHost = None # str | ||
| self.syncOptions = None # str | ||
@@ -65,2 +65,3 @@ #!/usr/bin/env python | ||
| 'is_watermark_annotation_button_enabled': 'bool', | ||
| 'is_annotation_document_name_shown': 'bool', | ||
| 'viewer_logo': 'list[int]', | ||
@@ -73,2 +74,3 @@ 'viewer_options': 'int', | ||
| 'is_viewer_help_widget_enabled': 'bool', | ||
| 'is_viewer_document_name_shown': 'bool', | ||
| 'signedupOn': 'long', | ||
@@ -78,2 +80,6 @@ 'signedinOn': 'long', | ||
| 'roles': 'list[RoleInfo]', | ||
| 'signature_watermark_enabled': 'bool', | ||
| 'signature_desktop_notifications': 'bool', | ||
| 'webhook_notification_retries': 'int', | ||
| 'webhook_notification_failed_recipients': 'str', | ||
| 'id': 'float', | ||
@@ -125,2 +131,3 @@ 'guid': 'str', | ||
| self.is_watermark_annotation_button_enabled = None # bool | ||
| self.is_annotation_document_name_shown = None # bool | ||
| self.viewer_logo = None # list[int] | ||
@@ -133,2 +140,3 @@ self.viewer_options = None # int | ||
| self.is_viewer_help_widget_enabled = None # bool | ||
| self.is_viewer_document_name_shown = None # bool | ||
| self.signedupOn = None # long | ||
@@ -138,2 +146,6 @@ self.signedinOn = None # long | ||
| self.roles = None # list[RoleInfo] | ||
| self.signature_watermark_enabled = None # bool | ||
| self.signature_desktop_notifications = None # bool | ||
| self.webhook_notification_retries = None # int | ||
| self.webhook_notification_failed_recipients = None # str | ||
| self.id = None # float | ||
@@ -140,0 +152,0 @@ self.guid = None # str |
@@ -152,4 +152,46 @@ #!/usr/bin/env python | ||
| def LoginUser(self, userName, body, **kwargs): | ||
| """Logins user using user name and password | ||
| Args: | ||
| userName, str: User name (required) | ||
| body, str: Password (required) | ||
| Returns: UserInfoResponse | ||
| """ | ||
| if( userName == None or body == None ): | ||
| raise ApiException(400, "missing required parameters") | ||
| allParams = ['userName', '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 LoginUser" % key) | ||
| params[key] = val | ||
| del params['kwargs'] | ||
| resourcePath = '/shared/users/{userName}/logins'.replace('*', '') | ||
| resourcePath = resourcePath.replace('{format}', 'json') | ||
| method = 'POST' | ||
| queryParams = {} | ||
| headerParams = {} | ||
| if ('userName' in params): | ||
| replacement = str(self.apiClient.toPathValue(params['userName'])) | ||
| resourcePath = resourcePath.replace('{' + 'userName' + '}', | ||
| 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, 'UserInfoResponse') | ||
| return responseObject | ||
@@ -143,3 +143,3 @@ #!/usr/bin/env python | ||
| resourcePath = '/system/{callerId}/plans/{family}'.replace('*', '') | ||
| resourcePath = '/system/{callerId}/plans/{family}?invalidate={invalidate}'.replace('*', '') | ||
| resourcePath = resourcePath.replace('{format}', 'json') | ||
@@ -397,4 +397,95 @@ method = 'GET' | ||
| def GetInvoices(self, callerId, **kwargs): | ||
| """Get invoices | ||
| Args: | ||
| callerId, str: User GUID (required) | ||
| pageNumber, str: Show records for page number (optional) | ||
| pageSize, int: Show records count (optional) | ||
| Returns: GetInvoicesResponse | ||
| """ | ||
| if( callerId == None ): | ||
| raise ApiException(400, "missing required parameters") | ||
| allParams = ['callerId', 'pageNumber', 'pageSize'] | ||
| params = locals() | ||
| for (key, val) in params['kwargs'].iteritems(): | ||
| if key not in allParams: | ||
| raise TypeError("Got an unexpected keyword argument '%s' to method GetInvoices" % key) | ||
| params[key] = val | ||
| del params['kwargs'] | ||
| resourcePath = '/system/{callerId}/invoices?pageNumber={pageNumber}&pageSize={pageSize}'.replace('*', '') | ||
| pos = resourcePath.find("?") | ||
| if pos != -1: | ||
| resourcePath = resourcePath[0:pos] | ||
| resourcePath = resourcePath.replace('{format}', 'json') | ||
| method = 'GET' | ||
| queryParams = {} | ||
| headerParams = {} | ||
| if ('pageNumber' in params): | ||
| queryParams['pageNumber'] = self.apiClient.toPathValue(params['pageNumber']) | ||
| if ('pageSize' in params): | ||
| queryParams['pageSize'] = self.apiClient.toPathValue(params['pageSize']) | ||
| if ('callerId' in params): | ||
| replacement = str(self.apiClient.toPathValue(params['callerId'])) | ||
| resourcePath = resourcePath.replace('{' + 'callerId' + '}', | ||
| 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, 'GetInvoicesResponse') | ||
| return responseObject | ||
| def GetSubscriptionPlanUsage(self, userId, **kwargs): | ||
| """Get subscription plans | ||
| Args: | ||
| userId, str: User GUID (required) | ||
| Returns: GetSubscriptionPlanUsageResponse | ||
| """ | ||
| 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 GetSubscriptionPlanUsage" % key) | ||
| params[key] = val | ||
| del params['kwargs'] | ||
| resourcePath = '/system/{userId}/usage'.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, 'GetSubscriptionPlanUsageResponse') | ||
| return responseObject | ||
| __pkgname__ = "groupdocs-python" | ||
| __version__ = "1.4.0" | ||
| __version__ = "1.5.0" |
+2
-2
| Metadata-Version: 1.1 | ||
| Name: groupdocs-python | ||
| Version: 1.4.0 | ||
| Version: 1.5.0 | ||
| Summary: A Python interface to the GroupDocs API | ||
@@ -13,3 +13,3 @@ Home-page: http://groupdocs.com/ | ||
| Latest SDK version 1.4.0. | ||
| Latest SDK version 1.5.0. | ||
@@ -16,0 +16,0 @@ Requirements |
+1
-1
| GroupDocs Python SDK |Build Status|_ | ||
| #################################### | ||
| Latest SDK version 1.4.0. | ||
| Latest SDK version 1.5.0. | ||
@@ -6,0 +6,0 @@ Requirements |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
1113308
1.12%413
3.25%22882
1.15%