Skip to content
New issue

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

File Attachment #85

Open
kranthiGaddam opened this issue Dec 22, 2020 · 2 comments
Open

File Attachment #85

kranthiGaddam opened this issue Dec 22, 2020 · 2 comments

Comments

@kranthiGaddam
Copy link

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))

@kranthiGaddam
Copy link
Author

@natchu in #65 (comment)

@MattParr
Copy link
Owner

MattParr commented Dec 23, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants