@@ -126,7 +126,7 @@ following code has worked well with zdesk scripts:
126
126
with open(fname, 'rb') as fp:
127
127
fdata = fp.read()
128
128
129
- response = zd.upload_attachment (filename=fname,
129
+ response = zd.upload_create (filename=fname,
130
130
data=fdata, mime_type=mime_type, complete_response=True)
131
131
132
132
upload_token = response['content']['upload']['token']
@@ -140,7 +140,7 @@ documentation](http://requests.readthedocs.org/en/latest/user/quickstart/#post-a
140
140
141
141
Here is an example of using the ` help_center_article_attachment_create ` method.
142
142
143
- zd.help_center_article_attachment_create(id ='205654433', data={},
143
+ zd.help_center_article_attachment_create(article_id ='205654433', data={},
144
144
files={'file':('attach.zip', open('attach.zip', 'rb'))})
145
145
146
146
The ` data ` parameter should always be supplied, containing any desired optional
@@ -151,7 +151,7 @@ specified.
151
151
with open('attach.zip', 'rb') as f:
152
152
fdata = f.read()
153
153
154
- zd.help_center_article_attachment_create(id ='205654433', data={},
154
+ zd.help_center_article_attachment_create(article_id ='205654433', data={},
155
155
files={'file':('attach.zip', fdata, 'application/zip')})
156
156
157
157
# Example Use
@@ -173,15 +173,6 @@ zendesk = Zendesk('https://yourcompany.zendesk.com', '
[email protected] ', 'pas
173
173
# the command line and via a configuration file.
174
174
# https://github.com/fprimex/zdeskcfg
175
175
176
- # Are you getting an error such as...
177
- # "SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed"?
178
- # zendesk = Zendesk('https://yourcompany.zendesk.com', '[email protected] ', 'passwd',
179
- # client_args={
180
- # "disable_ssl_certificate_validation": True
181
- # }
182
- # )
183
-
184
-
185
176
# ###############################################################
186
177
# # TICKETS
187
178
# ###############################################################
0 commit comments