404 error with Skyscanner rapid api to get flight infos - postman

I can not get response from skyscanner api. Did I write something wrong?
https://skyscanner-skyscanner-flight-search-v1.p.rapidapi.com/apiservices/referral/v1.0/UK/GBP/en-GB/EDI/LHR/2021-05-26/2021-05-26?shortapikey=ra66933236979928&apiKey={shortapikey}

The endpoint you're trying to access doesn't exist. That's why it's returning 404.
Visit the homepage of Skyscanner API on RapidAPI Hub and take a look at the different endpoints it supports.
I believe you want an endpoint that return fligh information. Check out the endpoints available in the Browse Flight Prices category and pick a best one for you according to your needs.

Related

How to get content_aware_access in reports sdk?

I want to use Reports API - ADMIN SDK to get content_aware_access list, but i can't find any api to return this.
First I set the security level at https://admin.google.com/u/1/ac/security/context-aware and then check it at https://admin.google.com/u/1/ac/reporting/audit/context_aware_access , but now I need to search through api sdk.
Please tell me where to find this sdk? Thank you
The information you are looking for is contained in Reports API: Admin Activity – Security Event Names.
Before you implement the request in the language of your choice, I recommend you to test it with OAuth Playground
Instructions:
Chose the scope https://www.googleapis.com/auth/admin.reports.audit.readonly (Step 1)
Exchange authorization code for token (Step 2)
Insert a Request URI and Send the request (Step 3)
Chose the URI according to your requirements based on the documentation for Admin Activity Report.
Sample URI:
https://www.googleapis.com/admin/reports/v1/activity/users/all/applications/admin
This will retrieve all your security settings.
If you look for something more specific, for example events with the name CREATE_ACCESS_LEVEL_V2 - request the URI
https://www.googleapis.com/admin/reports/v1/activity/users/all/applications/admin?eventName=CREATE_ACCESS_LEVEL_V2

Bing Local Business Search API | Sending a request with Postman

I am trying to send a request to the Bing Local Business Search API using Postman.
It's giving a 404 status.
If I use the default URL not the regional one that matches my key it will return invalid key which makes sense, sounds like it's connecting properly.
But if I use the regional southcentral endpoint from my dashboard it returns a 404.
I signed up for the free plan and generated a key that I am using.
Here are my settings in postman. Thanks in advance.
I think you'll need to go into the Azure Portal. Under Cognitive Services create a new service with Bing Search v7 under the free tier. It should give you a global location. After it's created you'll get your keys. At least that worked for me. Their initial "Welcome page" keys did not work for me either, I don't understand why.
Then you'll be able to call - https://api.cognitive.microsoft.com/bing/v7.0/localbusinesses/search?q=chicago+restaurants&mkt=en-US
I think you need to URL encode the search params, the space after q=chicago should be %20.

Distinguish API keys used in Google Cloud Translation API requests

I have an application that uses Google Cloud Translation API for translating contents from a source language to the languages used by the different users.
Since there are several clients for the API, I would like to distinguish the request numbers for different clients, like making a distinction between Android and iOS clients.
There's a dashboard in Google Cloud Translation API Overview page that contains the Traffic chart with a By credential option, which should be able to distinguish the request numbers by their credentials (in our case, API keys.) Unfortunately, it doesn't, the only option available there being Unspecified.
Moreover, even if I change the filter of credentials to No selection, the Traffic map is still the same!
I have also attached the project's credential list, where only API keys are used.
Please help me how to know the request numbers by different API keys, thanks.
Update:
Here are how I send requests to Google Cloud Translation API.
I tried with Postman and Swift code in iOS (what I actually do in my project.) Sent GET/POST requests to the API with API keys and POST requests with service account token, but neither API keys nor service account shown in request logs as the first picture.
Postman
Request with API key in GET
Request with API key in POST
Request with service account token in POST
Swift code
Code
Response
I have also done some requests to Translation API using different credentials. After doing the requests, I have checked my dashboard and I encountered the same situation as you, with all requests marked as Unspecified when choosing the By credential option.
As it turns out, there is an issue related to this situation, as this is not the expected behavior. This has been notified and it will be sorted out by the Google team. You can keep track on any updates related to this issue here. If you click the star button on this site, you will get email notifications whenever any progress has been made. Please bear in mind that it may take some time for this issue to be resolved.
In the meantime, you may consider tracking the client information through the statistics of the applications that make requests to the API, if possible. Thanks for your help on finding this issue.

Getting binary response or method not allowed. When tried setting only http endpoint I never got response its just keeping processing for long time

I am using wso2 1.10.0 api manager for first time. I need to access the http backend with simple query parameter. I published the api and tried either by setting as queryparam or json object, it's not giving me the expected result. I will get binary response or method not allowed. When tried setting only http endpoint I never got response its just keeping processing for long time. Please suggest me how do I access simple http backend. Need to show demo in a week.
Please help to solve this.
You get 'method not allowed' when you try to access a resource which was not defined for that method (say backend has POST method supporting resource only and you try to do a GET request)
I guess the issue is with the way you have defined the resources for the api from the publisher application. (invalid HTTP methods for resources)
If you think you have defined them correctly, then the next step to identify the issue is wirelogs. wirelogs provide all the info in request passing through the api manager gateway (request headers, body etc)
Follow this article http://mytecheye.blogspot.com/2013/09/wso2-esb-all-about-wire-logs.html on how to enable and read them
You can then directly call the backend (say curl -v to the backend) and compare the request from the direct call vs the one going out from
gateway to the backend and check the difference. This would help you start finding the issue
Since you are new to API manager, I would recommend you to do following first
Try out a simple scenario similar to your one. You can google it. This is from official documentation. would recommend to try out a simple scenario first. say https://docs.wso2.com/display/AM1100/Convert+a+JSON+Message+to+SOAP+and+SOAP+to+JSON
Then use SOAP UI or similar app to directly call the backend web service (not the api manager) and get the SOAP request and SOAP response for the backend.
Then create the api in API manager. you need to do the same thing in the sample i provided. only difference is the soap payload. use the previously collected SOAP messages.
Enable wire logs. for that see the comments in the previous answer. In wirelogs you will see >> and << signs
To read the wire log, first we have to identify message direction.
DEBUG - wire >> - This represent the message coming into API manager from the wire (will notice two set of these. one coming in to the
gateway from the rest client and response coming in to the api manager from the backend. )
DEBUG - wire << - This represents the message going to the wire from API manager (again two sets. request going from api manager to the
backend service and the response sent to the rest client from the api manager.)
the soap message will be printed in this log. check for the request going from api manager to the backend and the response coming from the
backend to the api manager. you can compare that to the onces you collected in the step 2 and do modifications if needed to the sequnces.
the wirelogs will also print the http headers. so check that as well.
hope you could set up a working sample using these steps

Is Google Glass Mirror API dead?

I've been trying to test Google Glass Mirror API but I guess it's dead since they've quit its development.
Requests are made to this url (https://www.googleapis.com/mirror/v1,), but it states "Not found". Playground itself is open, but doesn't send anything to the device.
Does anyone know if there's a way of overcoming this? Or if they changed the server location?
Sincerely,
Apidcloud
If you are trying to access the exact URL you specified (https://www.googleapis.com/mirror/v1), it won't work. That isn't a valid endpoint itself for the API. All of the API calls are to URLs that start with that prefix. For example, once authorized, the URL https://www.googleapis.com/mirror/v1/timeline should get the timeline items for the authenticated user. Other paths either retrieve or take action.
If the playground is not sending anything to the device, that is usually an indication that you didn't auth the playground and the device against the same Google account. Make sure you follow the auth directions listed on the Playground page.