We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting empty Response when we attach a file.Here is sample code.Can anybody help
attachment_object = at.atws.new('Attachment') attachment_object.Data = open('test/index.txt', 'rb').read() attachmentInfo = at.atws.new('AttachmentInfo') attachmentInfo.id = 0 # ticket to update attachmentInfo.ParentID = 11881 # ticket to update attachmentInfo.ParentType = 4 # ticket type attachmentInfo.Type = "FILE_ATTACHMENT" attachmentInfo.Title = "Ticket Test" attachmentInfo.FullPath = "test/index.txt" attachment_object.Info = attachmentInfo print(at.atws.CreateAttachment(attachment_object))
The text was updated successfully, but these errors were encountered:
@natchu in #65 (comment)
Sorry, something went wrong.
No branches or pull requests
Getting empty Response when we attach a file.Here is sample code.Can anybody help
attachment_object = at.atws.new('Attachment')
attachment_object.Data = open('test/index.txt', 'rb').read()
attachmentInfo = at.atws.new('AttachmentInfo')
attachmentInfo.id = 0 # ticket to update
attachmentInfo.ParentID = 11881 # ticket to update
attachmentInfo.ParentType = 4 # ticket type
attachmentInfo.Type = "FILE_ATTACHMENT"
attachmentInfo.Title = "Ticket Test"
attachmentInfo.FullPath = "test/index.txt"
attachment_object.Info = attachmentInfo
print(at.atws.CreateAttachment(attachment_object))
The text was updated successfully, but these errors were encountered: