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.
562
questions
9
votes
2
answers
483
views
Responding to API requests with much complexity
So having used the SE API multiple times, I like how all responses are in a Wrapper object, and for my own API design I figured it was a good method to follow.
Of ...
1
vote
1
answer
1k
views
Using the BBC iPlayer API for managing TV programs
I have been learning Ruby by reading books and tutorials, and practising some problems on Codewars to level-up my new skills, when I had an idea for a little Ruby code project. It will store ...
5
votes
1
answer
2k
views
Telegram Rest API client design
I'm working on a "framework" for Telegram bots and right now everything "just works". I'm now in the process of rethinking about what I wrote and one of the things I dislike a lot is how I implemented ...
12
votes
2
answers
6k
views
Managing a programmatically accessible stack trace
VBA has a call stack... but there's no programmatic way to tap into it, which means in order to get a stack trace for a runtime error, one has to manage it manually.
Here's some example code that ...
3
votes
1
answer
2k
views
Calling TWITCH API and displaying online/offline users of a channel
I've got this working almost to where I want it. The part I can't get right may be due to the programming so I'd like to get a review.
I'm making JSON calls to the <...
3
votes
1
answer
7k
views
Simple Calculator RESTfull API on Java
I have written a small calculator REST API and I need someone to look the structure and design of what I did. I want to know how I can make it better. Here is an example with multiplication. Other ...
2
votes
0
answers
358
views
API design for loading OpenGL textures asynchronously
What do you think about this API for loading OpenGL textures asynchronously?
My main concern is that the loader class executes code on the client io_service. This takes away some control from the ...
3
votes
1
answer
75
views
Interface to the Force.com REST API
I'm implementing an interface to the Force.com REST API, with very specific ideas about which parts of the API I need. My problem is with testability of consumers of this API abstraction.
The first ...
2
votes
0
answers
81
views
Pointers for C++/CLI library header formatting, layout and design
I have designed a C++/CLI wrapper library that allows C++ applications on windows, and other platforms that can load C dlls (e.g. Java via JNA or Python) to make calls to my .Net library.
I was ...
5
votes
1
answer
186
views
Home Test Exercise - Create a Java Service capable of posting GitHub events to Slack
I was asked to provide a codebase for the following exercise. I have provided the requirement of the problem and also putting down the code of two main classes. Can you please review and provide your ...
3
votes
1
answer
241
views
Google Maps geocoding lookup function
In an effort to keep all of the Google Maps Javascript API in it's own little world, I have created a googleMaps object that will contain all of the functions that directly make google maps webservice ...
0
votes
2
answers
60
views
Acquiring all products with a particular license ID
I am working on refactoring this method on the API. It's very slow, and can take the browser 12+ seconds to receive the result from the API. Can someone give me something to get me started or point ...
4
votes
2
answers
1k
views
Wrapper for a transfer transaction API
I'm looking for any kind of advice, like when or where to do exception handling, the overall library structure/layout, usage of classes/partial classes, code efficiency, naming conventions, and so on ...
4
votes
1
answer
826
views
Secure Token for use in API calls
My team has developed an API and I've been tasked with creating an authentication layer that allows partners' applications to consume it. To that end, I've created a data store which houses an ...
2
votes
1
answer
2k
views
Script that retrieves trending topics from Twitter
The following code fetches trending topics from Twitter's API using a WOEID. It caches the response, loading from this cache the next time if its relatively fresh (generated within the last 15 minutes)...