Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IP Control V1 2.14 interface notes
#3
(01-Feb-2022, 13:41)JustinR Wrote: Hi there,

Forgive me for being a bit dumb and I’m not sure this is the right place to ask this question, but here goes.

I get the main point of the new http api feature but don’t have enough knowledge to actually start fiddling with it. Would it be an idea to post something on the forum for beginners to read up on? So the basics of using web api and those kind of code commands. I’m sure I’m not the only person who sees the potential of this feature (using my smart home devices in combination with phantoms e.g.), but not sure how to implement and use it.

Thanks for any reply!

Hi there - How you might approach the coding depends somewhat on the environment you are targeting. Win, Mac, Nix, Mobile (ios, droid) and what languages you are familiar with or want, need to use.  This ranges from simple scripting to you could build an app around the API, much like the Devialet app or integrate Devialet control 'natively' into Roon, Spotifiy. in fact some of the 2.16 metadata (track information) additions seem tailored specifically for such a provider to use.

But what to learn to get started: - generically learn about making POST and GET calls to WEB API/REST urls this part works the same regardless of the platform. 
Aside from that understand Groups, Systems, Devices and how these entities relate to each other. Groups manage systems containing devices.

Postman is a great place to start , you dont have to write any code and can see what POST or GET on a URL returns.  The request body contains information  you want to send to the URL the response body is what you get back. Most of the interactions occur based on the url, the exact and full path of the URL you use, but some of them take parameters sent in the request body. 

In postman
do a get on this URL for example http://<ipofaphantom>/ipcontrol/v1/devices/current
that will return some information in the response body.
that has info about that device.
This is where it starts getting hard again, or HARD CODED.

That's not a step by step... but hopefully useful to demystify a tiny bit.

regard
scott-
Reply


Messages In This Thread
RE: IP Control V1 2.14 interface notes - by scotthar - 02-Feb-2022, 01:39

Forum Jump:


Users browsing this thread: 1 Guest(s)