TestRail: Bulk attachments upload via API - testing

I want to upload test results with the screenshots via API. Is there any way to do that? So far, I've been uploading only test results without attachments using this endpoint add_results_for_cases.
Please advise what is the best way to upload attachments along with the test results.

You can use the add_attachment_to_result endpoint to add an attachment to the result based on the result id - Please check out this documentation.

Related

How to get ortho image url on dronedeploy for a plan

Is there a way to get URL of an ortho image using dronedeploy api? I can see that Image.get can give me image or an array of the images?
Thanks
The best way to retrieve and ortho via the API currently is through the Export API. This will require either a webserver, or an email scraper since the export link will be sent to email and/or webhook.
Additionally, you can list existing exports and if the user has already generated an ortho, either use the first ortho you find, or present a list to the user to select. Then use the download link in the ortho object to retrieve it.
Experience: I am an engineer at DroneDeploy!

Simplest way/tool to automate API calls and to save Json results in a file?

What would be the simplest tool/editor (ideally for Mac) to run web API queries (Stateless RESTful web API) in a loop in order to store Json results in a file ?
Very simple basically, trying just to automate the following :
- a first call to get a list of IDs
- then for each each ID, doing a call to get a few values related to this ID. Values are returned in a Json file, I would like to store them in a file (csv or excel)
To test the queries, I've used "Advanced REST client" to set a request with my authentication information header and do a few API queries tests, it works well but now I basically want to create a script to get the whole set of data which is returned and save in a file. With the idea to run this script from time to time. You can't to that with "Advanced REST client", right?
Sorry it's not (yet!) a super advanced question but any help would be greatly appreciated.
You may try Postman - definitely works on (accursed) Mac

Unable to structure your api import.io

I want to extract some data from a URL through import.io, but when I publish my API it fails.
Here is the error:
Please report which URL you were trying to extract
You can also get in touch with support#import.io, they will try to help

Tableau REST API Download Workbook

Tableau has some REST API calls
Question 1: Does anyone know how to use the following call to download an online workbook? Sample code will be appreciated.
Question 2: Does any one know how to read and parse this twbx file?
Thanks.
You will need to send a GET request to a URL such as
https://YOURDOMAIN/api/2.0/sites/SITE-LUID/workbooks/WORKBOOK-LUID/content
You also need to send a header of your authorisation token like which is named X-Tableau-Auth
I suggest getting chrome and postman installed to test this kind of stuff out. Importing https://github.com/TableauExamples/Tableau_Postman as a collection will help

How does api archive.org works?

As you surely know web.archive.org lets you inspect the history of a domain, ie:http://web.archive.org/web/*/besttatoo.com
I also has an API: http://archive.org/help/json.php
I need to get data from the API but I can't get many info on how to use it, has anyone used it and can paste some examples of use?
This link provides details about the item LovingU on archive.org:
http://archive.org/details/LovingU&output=json
To create an API query to your liking, use this page:
https://archive.org/advancedsearch.php#raw
That page allows you to choose your output format: JSON, XML, HTML, CSV or RSS and also the parameters your want to see. You can limit the number of results, too.