All Questions
Tagged with object-oriented api
33 questions
2
votes
0
answers
199
views
Simulating Objects with Collections in VBA
Background
I am writing a VBA module which requires the functionality of a custom object. This object will support "regular" functions (UDFs) within the module.
Due to reasons beyond the ...
2
votes
1
answer
86
views
Return a set of geodetic coordinates for a particular moment in time
Use case
The user is interested in supplying a timestamp of a particular moment in time. This python application will perform two astronomy calculations for a set list of planetary bodies:
Calculate ...
2
votes
1
answer
74
views
Users CRUD in fastapi using pymongo
I am building users API with CRUD operation in fastapi and i'd love to hear feedback about it. I have been exploring fastapi in the past weeks and im trying to create API with best practice (scalable -...
2
votes
1
answer
53
views
Python Module for representation, calculus and rich comparisons between temperature scale instances
ToTemp is a temperature conversion package with Celsius, Delisle, Fahrenheit, Kelvin, Rankine, Réaumur, Newton and Rømer scales. With a documentation and already in PyPI.
The source code for the main ...
5
votes
1
answer
165
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 ...
4
votes
1
answer
104
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
...
1
vote
2
answers
274
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
...
3
votes
1
answer
203
views
Golang Rest API
I want to ask if there is a better way to arrange this. Main concern is whether the store is set up in a good way and if passing Pointer to ProductRepository is a good idea or there are better ways ...
7
votes
4
answers
3k
views
If/else produce code duplication
I have the following class:
...
6
votes
1
answer
373
views
Generate music notes by specified key and scale
As a follow-up on isosceles' question, I have created a small API to generate the notes of a scale given the pitch class set and key note. I've added the reinventhing-the-wheel tag because I know ...
2
votes
0
answers
466
views
PHP project with Google Calendar API
I'm playing with a simple (for now) project in PHP with Google Calendar API. I have posted the code here in order to improve my programming style about whatever you think it's worth suggesting. Thank ...
1
vote
1
answer
150
views
Building a 64 × 64 particle accelerator frame in Minecraft with a computercraft turtle
I dont think this will work anywhere besides in minecraft with computercraft but it's all correct syntax. I just feel like it has some lines of code I could eliminated somehow and made it a cleaner ...
2
votes
0
answers
231
views
Setting many properties in a PHP class
I'm trying to define parameters for my API. It's a super basic one and the first I've made. I'm trying to instantiate my class and set parameters but to me it seems super messy. Is this really the ...
2
votes
0
answers
97
views
Reshape GET Request to Long Data Frame in R
Overview
Converting the content of the httr::GET() request from json into an r data frame required a few data manipulation steps to reshape the data to long format ...
3
votes
2
answers
670
views
PHP class to send CRM records to Five9 API
I am experimenting with the Five9 API and setting up a PHP class to deal with the addRecordstoList method.
The main issue this class was meant to solve over the traditional function found in their ...