Use API, but what adress for my installation
4 posts
• Page 1 of 1
Use API, but what adress for my installation
Hi guys! I am integrating AirDC into my smart home, and I will get notified for new bundles added to my queue.
But what adress will I replace the mockup server with? https://private-anon-3c2bdff3aa-airdcpp ... 7Bcount%7D
I thought it would be https://XXX.XXX.XX.XXX:5600/queue/bundles/{start}/{count}? Where the X:s represents my external IP/Dynamic DNS?
But what adress will I replace the mockup server with? https://private-anon-3c2bdff3aa-airdcpp ... 7Bcount%7D
I thought it would be https://XXX.XXX.XX.XXX:5600/queue/bundles/{start}/{count}? Where the X:s represents my external IP/Dynamic DNS?
- Exile82
- Posts: 10
- Joined: 13 Jan 2019, 09:37
Re: Use API, but what adress for my installation
Does the example curl command in https://airdcpp.docs.apiary.io/#introdu ... th-the-api help?
-
maksis - Site Admin
- Posts: 921
- Joined: 23 Nov 2010, 18:56
Re: Use API, but what adress for my installation
Hi maksis!
Thanks for your response, actually I would like to access the API externally. I do not have a bunch of choices since Athom Homey (a home controller) is my weapon of choice.
I have got a nice JSON scrip running to check bundles:
const url = “https://private-anon-3c2bdff3aa-airdcpp.apiary-mock.com/queue/bundles/{0}/{100} ”;
let data = await fetch(url);
data = await data.json();
let name = data[0].name;
await tag(‘AirDC’, name);
I have used the mock server to create the script, which works fine. But I would like to call my own installation in order to get my bundles. I wish this is possible
Thanks for your response, actually I would like to access the API externally. I do not have a bunch of choices since Athom Homey (a home controller) is my weapon of choice.
I have got a nice JSON scrip running to check bundles:
const url = “https://private-anon-3c2bdff3aa-airdcpp.apiary-mock.com/queue/bundles/{0}/{100} ”;
let data = await fetch(url);
data = await data.json();
let name = data[0].name;
await tag(‘AirDC’, name);
I have used the mock server to create the script, which works fine. But I would like to call my own installation in order to get my bundles. I wish this is possible
- Exile82
- Posts: 10
- Joined: 13 Jan 2019, 09:37
Re: Use API, but what adress for my installation
Just replace localhost with your external IP in the example.
I've updated the previously linked documentation with a better explanation of the base URL.
I've updated the previously linked documentation with a better explanation of the base URL.
-
maksis - Site Admin
- Posts: 921
- Joined: 23 Nov 2010, 18:56
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 4 guests