Questions tagged [api]

API, for code implementing (NOT using) an Application Programming Interface. A program's API defines the proper way for a developer to request services from that program, site and/or service.

Filter by
Sorted by
Tagged with
1 vote
0 answers
29 views

Managing TimeMachinesCorp POE clock via UDP

I've got a working implementation of a go program to talk UDP to TimeMachinesCorp POE clocks. This code is also in a github repo which notes things I know aren't implemented yet. I feel like there's ...
user avatar
  • 2,646
2 votes
0 answers
49 views

A simple Python script that crawls information about Youtube playlists and your watch history

You will need to follow this guide. This is a Youtube crawler that crawls information about Youtube playlists, it uses Youtube Data API v3 and it crawls the title, url, description, count and videos ...
user avatar
5 votes
1 answer
105 views

Looking for feedback on OOP for a trading bot on Kraken

I'm trying to build a Kraken portfolio bot and started out with a simple layout for loading the balances. If possible, I would like to get some feedback on this initial design. The API key provided is ...
user avatar
  • 59
2 votes
0 answers
40 views

Random Astronomy Photo: React app using NASA's Astronomy Pic of the Day API

Random Astronomy Photo About the project This is a React app that generates a random photo from NASA's Astronomy Picture of the Day (APOD) API along with some interesting facts about it. This is my ...
user avatar
0 votes
0 answers
19 views

Rate my Flutter App: simplyweather

I've made my first flutter app :D I bought a course on udemy but only watched the first episodes then stopped for a while. In the last weeks I built some apps with the help of youtube videos, this was ...
user avatar
4 votes
1 answer
56 views

Logistics project that implements several shipping APIs

I have a Python logistic project that implements several shipping APIs using class inheritance. Each of those classes must do three things: Fire requests to each endpoint with the proper parameters ...
user avatar
1 vote
2 answers
142 views

Update person name in database

Can someone review this implemented solution and provide commentary the code is working well but will need refactor and improve this code. ...
user avatar
0 votes
1 answer
72 views

Python API testing

I have written a rudimentary code in Python: That reads the API collection from Swagger/Postman and extracts the payload, link, and method It creates the response with the token(Generated from the ...
user avatar
  • 41
0 votes
1 answer
36 views

Collect values from an api more quickly

To collect the values of an api, I use three loopings, I would like to know if it is possible to improve this method that I use. a = 9625897 ...
user avatar
0 votes
1 answer
46 views

Updating active cards dynamically added by API

I am making a website where you can search through all the countries in the world. Once you have found a country you want more detail about you should be able to click and view a detailed page with ...
user avatar
6 votes
1 answer
317 views

A Python-program that makes successive API-calls

I wrote some code to make calls to a public API. The code is correct as required as usual. My goal is to make the code as self-explanatory, maintainable and robust as possible. I also tried to make ...
user avatar
-1 votes
1 answer
75 views

Basic ASP.NET Core RESTful API with Entity Framework Core

This is my first WIP backend asp.net application, which I will pair with react to create a full stack app. The thing I'm mostly worried about is model conversion to DTO and custom policy authorization,...
user avatar
0 votes
2 answers
161 views

Vue 3 audio player

I have been working on an audio player with Vue 3 and the Napster API. ...
user avatar
0 votes
0 answers
30 views

Highly versionable API

Environnement : Rails 6.1.4.1 db : PostgreSQL Hi everyone, I've been working on this for some hours now and want to know how other Rails developpers would react to this type of project structure. ...
user avatar
3 votes
1 answer
73 views

A controller for a Game Service

I have a Spring MVC controller but I'm not sure that it is a good or bad design. As far as I know, api versioning is missing but apart from that I implemented Swagger for documentation and added ...
user avatar
  • 31
1 vote
2 answers
79 views

Requiring query field to not be empty on search api

we have a RESTful API that includes an endpoint for search apiserver/v5/search?q=[search text] for any query, it passes it off to solr and returns the result like ...
user avatar
0 votes
2 answers
126 views

Python RESTClient Class with asyncio and aiohttp

I've seen Using asyncio and aiohttp in classes but could not really figure out how to apply this to my own code. The main idea of this code is to inherit from this RESTClient class whenever I build a ...
user avatar
1 vote
0 answers
229 views

Restaurant Open Hours - Converting Json to human readable format

I am seeking a general code review. Task: Write a program that takes JSON-formatted opening hours of a restaurant as an input and outputs hours in more human readable format. Input: Input JSON ...
user avatar
1 vote
1 answer
52 views

Check Google Sheet for emails, verify delivery by api and Subscribe via api Benchmark

The main objective of this bot to make fast and reliable automatic subscriptions to email newsletter for people, who filled the website form(submissions go to google sheet) I had too many requests to ...
user avatar
8 votes
2 answers
832 views

Efficiently parsing JSON response data in python

I'm using this API to get information on sports-betting odds. I am then processing it in Python to discard the irrelevant information. Here's what the response looks like: ...
user avatar
  • 183
1 vote
2 answers
73 views

Refactoring Ruby recharge REST API wrapper by using class variables

I am trying to create an API wrapper for recharge (A Shopify subscription service), I am using the HTTParty gem ...
user avatar
5 votes
1 answer
186 views

FastAPI project - CRUD operations on database

recently I have been trying to educate myself on REST APIs. As a part of that, I have created a small project using FastAPI in python and I would love to hear some feedback about it. When I wrote this,...
user avatar
3 votes
0 answers
88 views

Generative Python transformer hitting Github API

I'm working on a GPyT (generative python transformer) project and I have written the below script to download lots of Python files from github.com to train my model. It works fine, but there is a ...
user avatar
  • 183
3 votes
1 answer
289 views

Data API with Influx-DB and FastAPI

I'm fairly new to time series databases in general and Influx in particular. My objective is to build a simple and general-use API that will allow me to write and read data from an Influx Database. I ...
user avatar
0 votes
1 answer
50 views

API for general boolean flag set

Very simple question. Imagine are designing library API, where you want to provide way to switch boolean flag. Typically to disable or enable a functionality. For argument's sake, let's say it's ...
user avatar
  • 1,320
2 votes
0 answers
33 views

Copy images using curl to make API calls

I am a junior web developer currently doing my first internship and I had a lot of freedom to solve small problems the way I thought was best. (There aren't really any developers here so I am ...
user avatar
  • 21
1 vote
1 answer
65 views

Python script that get a web API

I've written a program that gets the web API endpoint for some functions on a website. I'm just wondering if you guys see anything I could do to improve the code at all. ...
user avatar
1 vote
1 answer
52 views

Automatic notification system about changes to court cases

I have written an application for lawyers' offices. There is an API to fetch info about court cases. I have implemented API calls for front end when user enters particular case; one tab is filled with ...
user avatar
  • 111
1 vote
1 answer
35 views

React component with axios calls

...
user avatar
  • 205
0 votes
1 answer
127 views

Good practices for a class

I was working in a class, but there are a lot of things that I'm not sure if they're a good practice or not. For example, the => instead of the ...
user avatar
  • 135
3 votes
0 answers
121 views

Speed Up API Requests & Overall Python Code

I'm not asking for help solving a problem but rather asking for help for possible ways to improve the speed of my program. Essentially what this does is: Tracks market data by pulling the data from ...
user avatar
3 votes
1 answer
60 views

API design of library for argument inspection & filtering

I wrote the following Python library for getting a callable's argument names, testing whether a callable takes an argument with a given name, and filtering a dict ...
user avatar
  • 256
0 votes
0 answers
35 views

How to most efficiently make repeated calls to API with Pandas/Python

Looking for some help on how to speed up the code below as I'm still relatively new to using Pandas. The playoff_stats function makes thousands of calls to the PlayerCareerStats API - and while it ...
user avatar
3 votes
2 answers
298 views

To-do app API made with Slim 3

I have put together the back-end (API) with the Slim framework (v3) and MySQL. In index.php I have: ...
user avatar
1 vote
1 answer
197 views

Read and display JSON results from Google Books API

I’m working with the Google Books API and I’m not so sure about the way I’m going to get the search data and return it to the user. I will describe the path here and I would like to know if you would ...
user avatar
  • 369
0 votes
0 answers
32 views

Microsoft Academic API wrapper

Description This is my attempt at writing a wrapper around Microsoft's research API (evaluate endoint). My goals were: learn how to write classes does it look ok overall? should all methods except ...
user avatar
1 vote
1 answer
38 views

Posting data via fetch and handling network errors

I've built a login panel, which will submit an email and password via fetch/POST. And I wanted to know the best way to handle network status errors? Reason being, as I want to inject error messages ...
user avatar
1 vote
1 answer
77 views

How can I optimise a foreach calling an API? The code calls an API and returns the first string reponse

I have the following code that makes a call to an external API, processes the response and returns a string. The problem is it is taking a very long time to process. I can't do anything to the API, ...
user avatar
  • 11
3 votes
0 answers
36 views

Logical next step in Django newsfeed web app

I'm hoping to get feedback on my current code from someone more experienced in Django, and in the concepts I'm trying to implement. Let me preface by saying that I am a novice to Django. This is my ...
user avatar
1 vote
1 answer
36 views

Query messages and 'bold' part of a message. Show one query at a time but get the next query in advance for better user experience

In this react component I'm trying to display one message on the screen at a time. This message has a 'bold' substring in it which should be accounted for. There's 2 endpoints here, ...
user avatar
  • 231
2 votes
1 answer
105 views

Query the github api and filter the last 1000 commits which include and exclude certain words from the top 3 repositories in a given organization

This code should query the github api and filter, out of the last 1000 commits, which ones include and exclude certain words from the top 3 repositories in a given organization. For example, I could ...
user avatar
  • 231
-1 votes
1 answer
43 views

Better way to keep a list of items from a Http Request?

I have a simple web api where each request "item" is stored in a list and thus a list is built without creating a new list per request. I have achieved this via dependency injection , but I ...
user avatar
1 vote
1 answer
100 views

Web scraping cars

Is there any way to lower the lines of this code and make it better in terms of being more Pythonic? The program collects data from truecar.com and then puts them ...
user avatar
  • 183
0 votes
1 answer
585 views

Retrieve filename and ID with Google Drive API in C#

I am trying to retrieve filename and ID list with Google Drive API (the latest Drive API version v3 is used here) as a first step in order to analyze and manipulate these files on Google Drive. The ...
user avatar
  • 3,302
1 vote
1 answer
918 views

Instagram Basic Display API Full Example PHP

Here's an example script I wrote for Instagram (Facebook)'s Basic Display API. I did this for myself because I haven't used Instagram's API since their Legacy API was disabled, and I needed to ...
user avatar
  • 235
4 votes
1 answer
59 views

Single end point REST API

I want to ask question about a better way for implementing single endpoint REST. I want to build a rest API but I want it to only have single endpoint like: graphql,...
user avatar
  • 143
0 votes
1 answer
48 views

Go Web API for Sending Emails via Contact Form

I've been playing around with Go and finally found a use case for a little web service I could build. It takes JSON data via an HTTP POST request and sends me an email via Mailgun's API (it's used for ...
user avatar
  • 133
0 votes
0 answers
54 views

Optimize Yahoo Finance Code for Analysis

I am trying to analyze a number of companies using financial data I gathered from Yahoo Finance. I am also using the yfinance API to get some more details about the company using functions. Since I am ...
user avatar
  • 101
1 vote
1 answer
42 views

Populate database of web articles

What I have here is a relatively simple endpoint for a small site I'm making. Idea is to take: title content tags and create an entry in the database. It works properly. I threw this together as ...
user avatar
  • 113
0 votes
1 answer
49 views

Merge into an object from two different API calls

I'm working on an app to compare SDKS (their churn and acquisiton rates). I have created an API with two separate endpoints. The first, compares one sdk to ther other and spits out that data for each ...
user avatar
  • 231

1
2 3 4 5
12