Our API is completely independent of your operating system, database system or development language. You can use any language and platform that supports HTTP to interact with our API. However, manually writing client code can be difficult, error-prone and time-consuming. Therefore, we have provided and support API SDKs in many development languages in order to make it easier to integrate with us. If you use SDK, it hides the File API calls and lets you use GroupDocs Cloud features in a native way for your preferred language.
Our API is completely independent of your operating system, database system or development language. You can use any language and platform that supports HTTP to interact with our API. However, manually writing client code can be difficult, error-prone and time-consuming. Therefore, we have provided and support API SDKs in many development languages in order to make it easier to integrate with us. If you use SDK, it hides the File API calls and lets you use GroupDocs for Cloud features in a native way for your preferred language.
# Import modulesimportgroupdocs_parser_cloudimportosclassUpload_File:# Obtain your client_id and client_secret at https://dashboard.groupdocs.cloudclient_id="XXXX-XXXX-XXXX-XXXX"client_secret="XXXXXXXXXXXXXXXX"@classmethoddefGetConfig(cls):configuration=groupdocs_parser_cloud.Configuration(cls.client_id,cls.client_secret)configuration.api_base_url="https://api.groupdocs.cloud"returnconfiguration@classmethoddefUploadLocalFile(self):# Create instance of the APIfileApi=groupdocs_parser_cloud.FileApi.from_config(cls.GetConfig())try:request=groupdocs_parser_cloud.UploadFileRequest("Document.docx","/localFolder/Document.docx",None)response=fileApi.upload_file(request)print("Expected response type is FilesUploadResult: "+str(response))exceptgroupdocs_conversion_cloud.ApiExceptionase:print("Exception while calling API: {0}".format(e.message))@classmethoddefUploadStream(self):# Create instance of the APIfileApi=groupdocs_parser_cloud.FileApi.from_config(cls.GetConfig())try:withopen("/localFolder/Document.docx",'rb')asstream:request=UploadFileRequest("Document.docx",stream)fileApi.upload_file(request)exceptgroupdocs_conversion_cloud.ApiExceptionase:print("Exception while calling API: {0}".format(e.message))
Our API is completely independent of your operating system, database system or development language. You can use any language and platform that supports HTTP to interact with our API. However, manually writing client code can be difficult, error-prone and time-consuming. Therefore, we have provided and support API SDKs in many development languages in order to make it easier to integrate with us. If you use SDK, it hides the File API calls and lets you use GroupDocs for Cloud features in a native way for your preferred language.
Path of the source file including file name and extension e.g. /Folder1/file.extRequired. Can be passed as a query string parameter or as part of the URL
destPath
Path of the destination file. Required.
srcStorageName
Name of the storage of source file. If not set, then default storage used
destStorageName
Name of the storage of destination file. If not set, then default storage used
Our API is completely independent of your operating system, database system or development language. You can use any language and platform that supports HTTP to interact with our API. However, manually writing client code can be difficult, error-prone and time-consuming. Therefore, we have provided and support API SDKs in many development languages in order to make it easier to integrate with us. If you use SDK, it hides the File API calls and lets you use GroupDocs Cloud features in a native way for your preferred language.
Path of the source file including file name and extension e.g. /Folder1/file.extRequired. Can be passed as a query string parameter or as part of the URL
destPath
Path of the destination file. Required.
srcStorageName
Name of the storage of source file. If not set, then default storage used
destStorageName
Name of the storage of destination file. If not set, then default storage used
Our API is completely independent of your operating system, database system or development language. You can use any language and platform that supports HTTP to interact with our API. However, manually writing client code can be difficult, error-prone and time-consuming. Therefore, we have provided and support API SDKs in many development languages in order to make it easier to integrate with us. If you use SDK, it hides the File API calls and lets you use GroupDocs for Cloud features in a native way for your preferred language.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.