Unable to structure your api import.io - 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

Related

TestRail: Bulk attachments upload via API

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.

How to get the list of all the issues in a project in JIRA using REST API?

I am trying to get the list of all the issues irrespective of their status in a JIRA project.
I am doing a GET requset to the following URL:
https://jira.org.com/rest/api/2/search?jql=project={projectID}&issuetype=all
But, this doesn't return all the issues in response.
Where am I going wrong? Is the URL format above wrong?

XML output data from Bing Maps/virtualearth.net API with Google Docs importXML

I've been using Google Docs' ImportXML function to retrieve data from MapQuest's API. Unfortunately MapQuest's API doesn't offer all the data that I need, which is why I want to use Bing Maps instead. I've been trying this:
=importXML("http://dev.virtualearth.net/REST/v1/Locations?countryRegion=NL&postalCode=A2&key=$A$1&output=xml";"//Resources/Point/Latitude")
I'm getting a "imported content is empty" error, which I believe is being caused by an incorrect xpath-query. When I enter the URL in my browser manually, I do get to see correct XML output.
Can anyone help?
I believe it's a case sensitivity related issue. Workaround is json output and using this Google Sheets script: https://medium.com/#paulgambill/how-to-import-json-data-into-google-spreadsheets-in-less-than-5-minutes-a3fede1a014a
Works perfectly.

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

Yii Framework, JSON API, Restricted by URL

I am trying to build an API service for my Yii based website,
I have create an API controller with all the functions that returns objects in JSON format.
I also created a system to generate API keys for a specific URL... but I cant seem to understand how to detect the url from where the call is being made to my api so I can compare and validate.
I have tryed with HTTP_REFERER ...not working...
Any idea how is this possible ?
Thanks
try this:
Yii::app()->request->urlReferrer
or
Yii::app()->request->host
or
Yii::app()->request->hostAddress
for more details see http://www.yiiframework.com/doc/api/1.1/CHttpRequest