4

You can download images and attachments from cases via the XML API, but not for wiki pages.

Fog Creek Case FC1857154

flag

1 Answer

1

I've opened a case to add this to the XML API to match the ability to get case attachments. Please up-vote this question to show your support for adding this feature.

For now, you can try just fetching the attachments using the url in the source of the wiki page. Use cmd=viewArticle to get the wiki page, then find the attachment *href*s (or image *src*s) and fetch them. Just add &token=yourlogontoken to the end.

For cases, you can fetch the cases via the XML API with "events" in the list of columns. This will give you attachment download URLs for each attachment in each event. You can add &token=[your xml api token] to the end of the URL to download them.

link|flag

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.