Skip to content

Commit 4036f01

Browse files
committed
update README with fixed methods
1 parent f4d4218 commit 4036f01

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

README.md

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ following code has worked well with zdesk scripts:
126126
with open(fname, 'rb') as fp:
127127
fdata = fp.read()
128128

129-
response = zd.upload_attachment(filename=fname,
129+
response = zd.upload_create(filename=fname,
130130
data=fdata, mime_type=mime_type, complete_response=True)
131131

132132
upload_token = response['content']['upload']['token']
@@ -140,7 +140,7 @@ documentation](http://requests.readthedocs.org/en/latest/user/quickstart/#post-a
140140

141141
Here is an example of using the `help_center_article_attachment_create` method.
142142

143-
zd.help_center_article_attachment_create(id='205654433', data={},
143+
zd.help_center_article_attachment_create(article_id='205654433', data={},
144144
files={'file':('attach.zip', open('attach.zip', 'rb'))})
145145

146146
The `data` parameter should always be supplied, containing any desired optional
@@ -151,7 +151,7 @@ specified.
151151
with open('attach.zip', 'rb') as f:
152152
fdata = f.read()
153153

154-
zd.help_center_article_attachment_create(id='205654433', data={},
154+
zd.help_center_article_attachment_create(article_id='205654433', data={},
155155
files={'file':('attach.zip', fdata, 'application/zip')})
156156

157157
# Example Use
@@ -173,15 +173,6 @@ zendesk = Zendesk('https://yourcompany.zendesk.com', '[email protected]', 'pas
173173
# the command line and via a configuration file.
174174
# https://github.com/fprimex/zdeskcfg
175175

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-
185176
################################################################
186177
## TICKETS
187178
################################################################

0 commit comments

Comments
 (0)