:mapoftasmania: Discourse Downgrade…

SO basically an API is, and I hope I’ve got this right…a button.

2 Likes

It appeared when for example a photo upload or a tweet with video finished was to the right of the dustbin.
With Tweets, i used to have to wait for the tick to go, then a few seconds later it cameback then i hit post and the tweet with video posted. If i did it before the tick went the media would not be visible.
Now? No tick

So user activated seems fair enough

So why when looking back at my post was the word blurred when I never used the spoiler process?

Because you have a mod with too much power and a sensitive soul

Yep, it’s a button. :lou_facepalm_2:

Not for the faint of heart...

To make this real, here’s a real example of an API call.

Open Weather Map is a company that does some really complex shit to gather information about the weather all over the world.

They want to sell that information to other organisations, but how do they do this?

The answer is that they simply create an API that any computer can access from anywhere on the planet.

To interact with the Open Weather Map API all you have to do is use a URL like this:

https://demo.openweathermap.org/energy/1.0/solar/data?lat=50.45&lon=50.67&date=2023-03-30&appid=[{API key}]

…but replace API key with a key that you buy from Open Weather Map and the lat, lon and date are replaced with the latitude, longitude and date you want the weather forecast for.

When this URL request is issued, you will receive a standard response in a format called JSON - something like this.

{
   "lat":34,
   "lon":34,
   "date":"2023-03-28",
   "tz":"+02:00",
   "sunrise":"2023-03-28T05:37:14",
   "sunset":"2023-03-28T18:01:37",
   "irradiance":{
      "daily":[
         {
            "clear_sky":{
               "ghi":6694.67,
               "dni":9166.93,
               "dhi":1140.04
            },
            "cloudy_sky":{
               "ghi":6694.67,
               "dni":8962.1,
               "dhi":1120.64
            }
         }
      ],
      "hourly":[
         {
            "hour":0,
            "clear_sky":{
               "ghi":0,
               "dni":0,
               "dhi":0
            },
            "cloudy_sky":{
               "ghi":0,
               "dni":0,
               "dhi":0
            }
         },
         {
            "hour":1,
            "clear_sky":{
               "ghi":0,
               "dni":0,
               "dhi":0
            },
            "cloudy_sky":{
               "ghi":0,
               "dni":0,
               "dhi":0
            }
         },
         ...
         ...
         ...
      ]
   }
}

Because the request is in a standard format and because the response is in a standard format, the receiving computer knows how to request what it wants and what to expect to be returned.

Modern computer systems - such as Discourse are built around a core of functionality that then knows how to reach out to many, many APIs to add functionality without needing to be experts in every field.

APIs are the building blocks of modern systems.

Or, it’s a button.

1 Like

“JavaScript Object Notation” before anyone asks.

Thanks. It was really troubling me.

Sack the mod depose him / her /it or just execute them like one of the commands your API does.

1 Like

Orange. Right after Easter. Biden can use orange I guess

I recognise that button, it’s off you dark green and yellow floral shirt isn’t it. :nauseated_face:

1 Like

Yeah, it’s part of my Spring 1997 collection.

Yeah I remember sets off intruder alarms doesn’t it. :lou_lol:

1 Like

Well fuck me… I go away for a few days of R&R and the gates of hell are cast open and the Cunts we thought imprisoned for eternity unleash their vengeance… what do I come back to as a highly regarded senior customer of this receptacle for the scum and villainy of SO postcode? This! Its a fucking outrage:

‘Unsupported’? Cunts!

First I had to remove about 5GB worth of ‘art pictures’ from the heard drive to make room for an OS upgrade so that I could download a run that stinking Chrome shite to be able to post this!

I lost some stunning Fauve and early 20th century English Modernism pics for this!

Cunts

@NotBletch

Your fault for owning a Mac obvs.

1 Like

Whatever happened to customer service? I dont know

Where Macs are concerned we treat you as Apple treat you, one of a bunch of sad losers who have been conned into using our product, makes you feel at home.

1 Like

OOh bitchy, Lets just leave it there as all those who have been bent over the sterile grey box of classless design to be well and truly arse-fucked by Billy Gates Gruff will surely agree with :wink: :lou_is_a_flirt:

I’d ask for your money back.

2 Likes