Retrieve a list of stored cards/tokens - opayo

I'm looking at a system for a client that is integrating with Sagepay and storing client cards. I'm wanting to retrieve a list of all stored cards/tokens from SagePay.
Anyone point me to documentation for this or give me a starter?
Cheers

Have a look at the reporting API - getTokenDetails should give you what you need. You'll need to know the token(s) you want the detail for, though.
API Guide

Related

Is it possible to dynamically query Google APIs to see how much of the limit/quota you've used?

For a given Google API, is there any way to dynamically check usage against any of the current limits for that API?
For example, this page https://developers.google.com/classroom/limits?hl=en shows that I can query the Classrooms API 4,000,000 times per client per day. At midday, without going to the API Console, how could I know that I've already hit 3 million queries?
I'm hoping that there's a billing or usage API that covers this, but can't see it.
Note: I'm not having any issue right now with a specific call, just anticipating that my usage will scale up significantly in the next few months, so am looking for a solution for monitoring rather than advice on not hitting the limits at all. My specific use-case is for Google Classrooms, but reading wider around this I can't see a general solution either.
Answer:
No, dynamically you can't retrieve this information.
Feature Request:
You can however let Google know that this is a feature that is important for the Google Workspace APIs to have, and that you would like to request they implement it.
The page to file a Feature Request for the Google Classroom API is here, as there is no specific component for Google Workspace APIs in general I would suggest filing it here instead.
You can use Google's Cloud Monitoring API to achieve this. This is the documentation page for APIs-
https://cloud.google.com/monitoring/api/v3
This is the documentation page for concerned metrics-
https://cloud.google.com/monitoring/api/metrics_gcp#serviceruntime/quota/allocation/usage
https://cloud.google.com/monitoring/api/metrics_gcp#serviceruntime/quota/exceeded
https://cloud.google.com/monitoring/api/metrics_gcp#serviceruntime/quota/limit

How can we access the Ads Action Stats list in the Facebook Marketing API, using the Python SDK?

I have been trying to access the list on the Facebook Ads API for a few days now but haven't been able to make any headway.
I need to pull the purchase_roas field which is part of the Ads Action Stats List. However, I'm not able to do so.
I'm using the Python SDK and have been looking all over the place for some examples but haven't been able to find any!
Any directions or sample code would really help here. Thanks so much in advance.
This is an example code of fetching the ROAS on an ad account:
insights = FBAdAccount(fbid=adaccount_fb_id).get_insights(
params={'date_preset':AdsInsights.DatePreset.lifetime},
fields=[AdsInsights.Field.actions,
AdsInsights.Field.website_purchase_roas,
AdsInsights.Field.mobile_app_purchase_roas,
])
Note that the website_purchase_roas returns a list rather than a number. In addition - if your ad account has no ROAS no list would be returned.

How to get place description using Google API or any other API?

I am using Google API to get the place information and store it into database. Using Google API I am able to get address, opening hours, rating and reviews as shown in below image.
But, I am not able to get place description which is highlighted in below image in red circle. ("Quaint Italian mainstay for deep-dish, Chicago-style pizza, calzones, pastas & hot dogs.")
I want that information in my application. I think google is taking those information from
Freebase https://developers.google.com/freebase/guide/basic_concepts
Wikipedia https://www.mediawiki.org/wiki/How_to_contribute
But I am not sure.
Can any one help me suggest me that how I can get that information or any other API that I can use to get that information based on google place_id.
Any help would be highly appreciated.
Thank you
Accordingly to the documentation and #xomena, currently you cannot obtain this data via Places API. There is a feature request in Google issue tracker to make the detailed business type available in Places API, however Google doesn't expose any ETA (estimation time of arrival:
https://issuetracker.google.com/issues/35822953
Feel free to star this feature request to express your interest and subscribe to notification from Google.
To my knowledge it is not possible to get this information from the Google Places API. The API documentation does not display the venue description. Try to have a look here: https://developers.google.com/places/web-service/details (it might be that Google does not share all information from their platform with other developers..).
I would suggest you to do one of the following (or perhaps both):
Scrape Google the old school way; i.e. by getting the information from the HTML. There is a quite decent guide for doing that here (you would of course have to adjust the example to scraping Google instead): https://medium.freecodecamp.org/how-to-scrape-websites-with-python-and-beautifulsoup-5946935d93fe.
What I would recommend and which probably is the fastest: enrich your current data with other data. You could e.g. use Foursquare and search for the places you get from Google. It should be possible to get the description for each place on Foursquare. See here: https://developer.foursquare.com/docs/api/venues/details. If you have problems with matching the places after your query has returned, because the venue names are not exactly the same - but close, then you could use an algorithm to match strings that are close; perhaps using the levenstein distance (https://en.wikipedia.org/wiki/Levenshtein_distance).

Outlook/Exchange RoomFinder (w/ Lex)

I'm an intern and I've been tasked with creating a RoomFinder API for Outlook that works with Amazon's Lex/Lambda to find a location and schedule meetings given a list of participants. The API is supposed to be able to pull the calendars from Outlook for the individual participants, find a time that works for all of them and a location with a proper seating capacity, and then schedule the meeting+add it to the calendars of those involved. I have a pretty good understanding of how Lex works and have created my own functions using Lambda before but I don't even know where to begin when it comes to pulling the calendars from Outlook for the participants.
I have been trying to get an idea of how to go about this for a few days now and found some information on Outlook's REST API which it sounds like can be used to gather some of the needed information but I'm not sure how to actually begin doing that. Here are links to a few of those pages:
https://msdn.microsoft.com/en-us/office/office365/api/use-outlook-rest-api#RegAuthConverged
https://msdn.microsoft.com/en-us/library/office/dn643730(v=exchg.150).aspx
I also managed to find a few pages on GitHub of similar, more basic scripts using Python to acquire things like Room Availability from Outlook but I couldn't get any of those to work. I don't have enough reputation to post more links but if seeing those would help I can maybe comment them later.
I'm really looking for any advice on where to begin or tips on how to get this done. I think I may be on the right track with the REST API idea but I have no clue how to actually use it or set it up.
Any help is appreciated, thanks.
We are just now rolling out a new REST API to list the roomsIDs(findrooms). You can use this in conjunction with the findmeetingtimes API to schedule meetings. Please take a look at the REST API docs here(remember to choose beta in the top-right)
https://msdn.microsoft.com/en-us/office/office365/api/calendar-rest-operations#GetMeetingRooms

Yammer Analytics API

To give an context, we are trying to achieve reporting functionality based on the Yammer activity/usage information.
Questions
We are not able to find any Analytics API in the link https://developer.yammer.com/documentation/ except Data Export API. Please let us know if we have any other API related to usage Analytics.
Is there any way to execute our query against yammer big data for us to get the usage information?
• The data export is not providing the information such as ‘like’, ‘share’ and ‘followed by’. Is there any other way to export yammer data including these missing items?
How to remove the deleted entries from the past collection just in case if we are going to do periodic data export?
How the third party tools companies like ‘good data’ will contact yammer for analytics data. This will help us to find the approach involved in this.
Can someone help us on this.
have you tried this : http://blogs.msdn.com/b/richard_dizeregas_blog/archive/2014/04/09/yammer-analytics-with-excel-and-power-bi.aspx Yammer API and Excel 2013 for bigger data..
Having said that - I think the tool is currently broken as I seem be be able to download 114% of my stats, then get some blank CSV files which then fail on power pivot.
You need to be a verified admin to access this tool.
Cheers
Rich
About Question 2
There are good ways of doing it through the API. You can use Excel and PowerQuery or a home made .net data extractor. Like, Share and followed By are possible with the API but not with the useless Data Export feature. Be aware the API have some issues when trying to retrive all data. I'm currently trying to get these issues fixed.
About Question 4
They need the account of a trusted admin. Thanks to a Token they will be able to access all your networks messages and provide you most of the Analytics you need.
They have good webinards for their tool. Only issue is that they copy your data in their environment in the US (is not acceptable for European customers).

Resources