Relative Content

Tag Archive for pythonapi

Client retrieval via API

I’m a trainee in a web and communication agency in France and I’d like to create a tool that by being connected to an API can retrieve entrepreneurs who don’t have a website, in the idea I’d also like to retrieve a way to contact them such as email, phone number or other. I also want to get contractors from all over the world with a column to define their country so I can sort as I wish the countries where I want to start. I’m also using Python for this project

selecting colors on a Scryfall API call

I’m working on a simple project using python and PyQt6 that allows the user to select which colors they want for an MTG commander, and then using the Scryfall API, return a random commander that is in that color identity. I have read through the docs for both the API and regular scryfall, and have gotten to a point where I just don’t understand what is happening anymore.
Im using the https://api.scryfall.com/cards/random?q=is%3Acommander as a base link and adding extra on to it.

How to pause while loop every 60 minutes and call func for Token and use the new Token again in While Loop Header for continuing the loop

I am making API call request for a list of IDs one by one and appending it to a Dict. Finally saving output as Json file. This code runs for more than 5 hours. Every 60 minutes the Bearer Token is getting expired. Is there a way where I can pause while loop every 60 minutes call the func() aagain to renew token and then pass the same inside header to continue the while loop. Or what is the best suggestion for this scenario. Please help.

Vehicle document expiry API’s

I’m interested in integrating vehicle document expiry data into an application, and I’ve heard that Parivahan might offer APIs for this purpose. Could you please provide information on how I can access these APIs? Specifically, I’m looking to retrieve details such as registration certificate (RC) expiry, insurance expiry, and pollution under control (PUC) certificate expiry for vehicles.

AMBIMA api request method not allowed

I am trying to access a AMBIMA API but, according to how to page, I need a token from authentication API. I have followed the authentication page instructions and got a response but where should have a token comes the message “method not allowed”.

Is it possible to connect an app to a python script?

I have a regression model within a python script. The way this script works, taking the math aside, is through pandas, importing the excel file and running with that data. This works fine by its own, what I am trying to do is have another app, the base of said app can be in any platform or language, that enables three excel options, once one is selected and a button is hit, an API (or any form of connection) calls the python script with the model, selecting the previously indicated file. The script is then run, and the results are sent back to the app to be shown.