I tried using the API, but it returns Error parsing. Even an example code in Amadeus for Developers collection for Postman returns ERROR when I run it.
Also I am using Gmail API and would like to know which part of the message should be passed to the Trip Parser API. Thanks.
Related
I've scoured for any information regarding an Open API for Periscope.
I have a twitter feed, that should only show if Periscope is Live (the said user will share the broadcast via Twitter).
I can parse the word "IS LIVE" but then I'd have to parse multiple languages.
I'm looking to check an API if the user is Online in periscope, if so, then display the latest twitter feed (which is the broadcast).
There was this User Online button that could be generated
https://www.periscope.tv/embed
it calls an api like https://embed.periscope.tv/user/bpsdmik.json
but it seems that the certificate is invalid, so I keep getting errors ..
Any help / workarounds would be much appreciated!
I've Searched OPEN Periscope, but mostly requires an Authentication token etc.
There is no open API for Periscope. At least, not that I'm aware of. Which would explain your difficulty in finding anything. The closest thing would be the Unofficial Periscope API, documented by Pmmlabs (the same folks who run the OpenPeriscope project). However, as you've already discovered, most of the calls to the Periscope API, including all user-related calls, require an auth token.
Outside of using the API or screen scraping, the only other way I can think of to tell if a user is live or not is to try accessing their Periscope page directly. When you go to a user's Periscope page at https://www.pscp.tv/{userId}, Periscope will redirect you to that users most recent broadcast, where you can parse the broadcast id from the redirect URL. Once you have the broadcast id of the most recent broadcast, you can use the following API call (which does not require an auth token):
https://api.periscope.tv/api/v2/getAccessPublic?token={broadcastId}
... to determine whether the broadcast is live or not. Look at the JSON response and if the "type" field equals "StreamTypeReplay", then it's a replay, otherwise it's a live broadcast.
I am trying out the PayPal API Developer Account, and am in the midst of creating a test payment. I have followed the steps stated here.
However, what I want to do is to extract the JSON response from the orders API, in which I would be using in Tibco. The request has been successfully made and is reflected in the Sandbox account. But I am unsure how I can obtain the URL that returns the JSON response from the orders API.
I am new to Paypal API integration and I would really appreciate any help provided.
I'm trying to use the WhatsApp API, especially "POST /v1/contacts" at this url "https://developers.facebook.com/docs/whatsapp/api/contacts/".
But actually I don't know which url to use, I tried "https://api.whatsapp.com/v1/contacts" but I got a 404 Not Found Status.
I do my queries on postman.
Has anyone ever used it.
Thank you.
To achieve your goal, you'd need to try a different method because the API you're trying to call is not a public API, it's a private API.
Access private API is only available to verified Whatsapp for Business accounts.
It's Whatsapp For Business service provider you choose and successfully applied for.
In our app we are using this API call to retrieve our average rating score and display it on our website:
https://api.trustpilot.com/v1/business-units/{{BUSINESS_UNIT_ID}}/?apikey={{API_KEY}}
This works great.
Now if we want to send an invitation to rate our services to one of our customers, we use a very similar API call:
https://invitations-api.trustpilot.com/v1/private/business-units/{{BUSINESS_UNIT_ID}}/invitations?apikey={{API_KEY}}
Unfortunately, this doesn't work. We are getting this error:
{"fault":{"faultstring":"Invalid access token","detail":{"errorcode":"oauth.v2.InvalidAccessToken"}}}
What are we missing here?
We can't see why our API key works for the first call, but not for the second.
Thanks for any help.
In the first API call you are calling a public endpoint. For all public endpoints API key is enough because you are not accessing restricted data.
For your second API call (the invitations one), you are calling a private endpoint.
For all private APIs you need to authenticate yourself using the OAuth2 flow and include the access token in your request.
You can read more about the flow at:
https://developers.trustpilot.com/authentication
I am working on a project, that compiles the tweets of 4 or 5 different twitter accounts related to a particular subject - and I do not control them.
This was possible with the 1.0 API. A simple ajax call to the API would return the JSON, and off you went.
With the implementation of OAuth for Version 1.1, it seems as though it is no longer possible to retrieve the tweets from accounts you do not own.
My question, is there a work around using the current API to retrieve tweets from another user? Perhaps using the GET search/tweets interface?
The API call you need is statuses/user_timeline
As the documentation says
Returns a collection of the most recent Tweets posted by the user indicated by the screen_name or user_id parameters.
So, if you want all of my tweets, you would call
https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=edent
You will need to be authenticated with the Twitter API. I suggest that you use a library for your preferred language.