HTTP API Requests



I just started developing in the Playdate SDK. I Find it very cool so far, but the only feature I am disappointed at not having is HTTP requests.
I am planning on making a weather app and a social media client. I know that you can use playdate.simulator.getURL(url) in the simulator, but I would like more functionality.
Here are some example of requests:

  • playdate.requests.get("", json = {"username": username, "password": password})
  •"", headers = {"token": token, "content": content})
  • And other types of requests, such as PUT, DELETE, PATCH, etc.

It's definitely something we'd like to do, but we need to figure out the best way to do it while balancing performance, security, battery life, and other concerns. Wish I had a better answer!


When could we expect this to be released?

add curl support first in C. I am sure it is the best way to start

I'd be interested in being able to make HTTP requests as well.

In the absence of that... is there ANY networking functionality in Playdate SDK that I can get to? Like, can I create and connect a TCP socket (ok, some TLS would be great also; ) in C or Lua (or Rust?; )?

1 Like

In the simulator, there is playdate.simulator.getURL(url)
It doesn't exist on device, but that's the closest thing there is at the moment.

1 Like

Have you considered implementing a gopher protocol client instead of HTTP requests? Since gopher is far more limited it eliminates a lot of security concerns. Plus it fits in with the Playdate's quirky nature in my opinion. Even one of Panic's founders embraces the gopher protocol!

1 Like