#ApplicationProgrammingInterface

Thiago Bomfimthiagobfim
2025-02-26

REST (Representational state transfer) is an architectural style for distributed hypermedia systems.

Read more 👉 lttr.ai/AZvvO

Thiago Bomfimthiagobfim
2024-11-23

It's crucial to know the most common HTTP status codes, as there are over 30 of them.

Read more 👉 lttr.ai/ATvUq

Thiago Bomfimthiagobfim
2024-08-25

Leonard Richardson breaks down the principal elements of a REST approach into three steps

Read more 👉 lttr.ai/ATj6A

”…each theory of physics defines a kind of API -- an Application Programming Interface -- of what sort of causal relations can be invoked, and consistently relied upon, when developing various kinds of technology.
If we extend this metaphor to consider the/this universe -- as an instance of a domain -- as to be a kind of 'operating system', then as students learning about the system for the first time, we would first become aware of and interested in what we can do -- what APIs exist -- before we become fully aware of what we cannot do -- what APIs do not (yet?) exist. Moreover, we can re-recognize that the concept of a domain would be defined as a kind of programming language environment, ultimately considered in terms of statements ('commands'), syntax (how to compose commands), and semantics (what those commands are intended to mean/do, or, more hopefully, what they actually do).”
—Forrest Landry
https://web.archive.org/web/20220407112446/https://www.magic-flight.com/pub/uvsm_1/ict_dialog_3.htm
#forrestlandry #physics #causality #metaphor #applicationprogramminginterface #universe #operatingsystem
2023-08-28

Trying to add a PointerProperty for a PropertyGroup, I didn’t include specific from imports and was getting an error trying to use a naked PointerProperty. So I prefixed it with “bpy.types.” After spending an embarrassing amount of time trying to figure out why I was getting the following:

TypeError: bpy_struct.__new__(type): expected a single argument

I tried adding a specific import for the class. Suddenly the error was gone and my thing worked (after working through later errors)!

But why couldn’t I address the class directly? Ha ha. Turns out there there is a class in one module and a function in another. Guess which one I used. 🙃

bpy.props.PointerProperty is the function I should have been using all along.

#Blender3D #PythonScripting #ApplicationProgrammingInterface

2023-02-02

Speaking of bots ...

Cheap Bots, Toot Sweet! (free):

"This site will help you make a Mastobot! They're easy to make and free (for you) to run."

cheapbotstootsweet.com

(why are we talking about bots? Twitter says it is closing their API except for paid users beginning Feb 9, which affects a lot more things than shitty troll accounts, news updates, or just fun stuff. Many civic services, alerts, weather warnings, transport, traffic, academic accounts, research, museums, schools, etc. will be out of luck, as well as (probably?) sites that use Twitter sign-in or authentication for any reason.)

#bots #twitter #API #Mastobot #Mastobots #Mastodon #MastodonBots #MastodonAPI #ApplicationProgrammingInterface

2021-05-28

Put APIs to Work wth this ArduinoJson Walkthrough

One of the things this community is famous for is the degree to which people will pitch in to fill an obvious need. Look at the vast array of libraries available for Arduino as an example of how people are willing to devote their time to making difficult tasks easier, often for little more than a virtual pat on the back.

One level up from the library writers are those who go through the trouble of explaining how all these libraries work in real-world applications. [Brian Lough] recently rose to that challenge with a thorough explanation of the use of the ArduinoJSON library, a very useful but often confusing library that makes IoT projects easier.

The need for an ArduinoJSON explainer no knock on its author, [Benoît Blanchon], who has done excellent work documenting the library; it's more of a realization that the nature of JSON itself means a library that works with it is going to be complex. [Brian]'s contribution here is sharing his insights into getting ArduinoJSON up and running in a real-world ESP32 example, and dealing with the potential pitfalls of parsing a human-readable text file that can be used to represent almost any data object using the limited resources of a microcontroller. Along with the basics, we found the warning about how pointers refer back to the dynamic JSON document object particularly helpful; the bit about using filters to winnow down a large data set was useful too.

Thanks to [Brian] for taking the time to put this valuable information out there. Here's hoping this encourages others to share the wealth of hard-earned knowledge in a similarly clear and concise manner.

#microcontrollers #api #applicationprogramminginterface #arduinojson #deserialization #javascriptojectnotation #json #parsing #serialization

image

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst