Circuit-sdk - how to interact via .net?
I'm trying to write a .net console application in c# that will execute (via a windows scheduled task) nightly and do a number of admin things (moving files around and so on). I want it to then report its status (good/bad/in-between) to a circuit chat.
I'm lost as to how to do this circuit reporting step. What visual studio extensions/apis (if any) exist to help with this? I've read up on the rest API, the node.js one etc, but I'm not sure how to use these from my console app.
Any pointers or ideally examples on this would be much appreciated.
Thanks in advance.
.net circuit-sdk
add a comment |
I'm trying to write a .net console application in c# that will execute (via a windows scheduled task) nightly and do a number of admin things (moving files around and so on). I want it to then report its status (good/bad/in-between) to a circuit chat.
I'm lost as to how to do this circuit reporting step. What visual studio extensions/apis (if any) exist to help with this? I've read up on the rest API, the node.js one etc, but I'm not sure how to use these from my console app.
Any pointers or ideally examples on this would be much appreciated.
Thanks in advance.
.net circuit-sdk
add a comment |
I'm trying to write a .net console application in c# that will execute (via a windows scheduled task) nightly and do a number of admin things (moving files around and so on). I want it to then report its status (good/bad/in-between) to a circuit chat.
I'm lost as to how to do this circuit reporting step. What visual studio extensions/apis (if any) exist to help with this? I've read up on the rest API, the node.js one etc, but I'm not sure how to use these from my console app.
Any pointers or ideally examples on this would be much appreciated.
Thanks in advance.
.net circuit-sdk
I'm trying to write a .net console application in c# that will execute (via a windows scheduled task) nightly and do a number of admin things (moving files around and so on). I want it to then report its status (good/bad/in-between) to a circuit chat.
I'm lost as to how to do this circuit reporting step. What visual studio extensions/apis (if any) exist to help with this? I've read up on the rest API, the node.js one etc, but I'm not sure how to use these from my console app.
Any pointers or ideally examples on this would be much appreciated.
Thanks in advance.
.net circuit-sdk
.net circuit-sdk
asked Nov 18 '18 at 17:08
Gordon DohertyGordon Doherty
83
83
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
We have a .NET client in alpha. Reply to the email you got for your OAuth app registration and mention you'd like to try out the .NET alpha version. If you haven't registered for a OAuth app, then please do so as you will need that independent of which Circuit API you'll use. See instructions at https://circuit.github.io/.
But if all you want to do is to send a message in a conversation, then the better option is to use the REST API.See endpoint /conversations/{convId}/messages at https://circuitsandbox.net/rest/v2/swagger/ui/index.html. You can then make a REST API call in .NET using HttpClient. Something like this https://docs.microsoft.com/en-us/dotnet/csharp/tutorials/console-webapiclient.
Hi @Roger-Urscheler, Thanks for the response. I've used your examples to successfully communicate between my c# console app and the CircuitSandbox using REST! However... when I point my console app at the REST url of my company chat I receive the following error: “{"errorDescription":"n/a","errorCode":"501"}” Googling this suggests that my company's Circuit does not have REST access enabled. Is this likely to be the case? and is there any help documentation re how to switch on REST access? Thanks again in advance
– Gordon Doherty
Dec 10 '18 at 16:04
Are you trying to move your app from the sandbox to a Circuit production tenant from your company? If thats the case you need to get new credentials for the production system. Please follow the instructions at circuit.github.io If I miss-understood, please try to explain what you are trying to do.
– Roger Urscheler
Dec 12 '18 at 13:10
My console app is running on my laptop (not on the sandbox or anything). All I'm trying to do is point it at mycompanycircuit.net/resturl (instead of circuitsandbox.net/resturl) In doing so I'm also supplying my company domain credentials (the credentials I use to log into Outlook and Circuit as a normal user), but this is resulting in the 501 error
– Gordon Doherty
Dec 12 '18 at 14:54
Hi Gordon, if you are on a sandbox and you are admin of it, two steps : 1) go to the menu under your name > settings > circuit labs and enable the Oauth Apps. 2) go to the Adminisration menu > Oauth Apps and create your application (use Authorization code as grant type I think if you are making a server side REST API application)
– samo
Dec 13 '18 at 14:13
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53363434%2fcircuit-sdk-how-to-interact-via-net%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
We have a .NET client in alpha. Reply to the email you got for your OAuth app registration and mention you'd like to try out the .NET alpha version. If you haven't registered for a OAuth app, then please do so as you will need that independent of which Circuit API you'll use. See instructions at https://circuit.github.io/.
But if all you want to do is to send a message in a conversation, then the better option is to use the REST API.See endpoint /conversations/{convId}/messages at https://circuitsandbox.net/rest/v2/swagger/ui/index.html. You can then make a REST API call in .NET using HttpClient. Something like this https://docs.microsoft.com/en-us/dotnet/csharp/tutorials/console-webapiclient.
Hi @Roger-Urscheler, Thanks for the response. I've used your examples to successfully communicate between my c# console app and the CircuitSandbox using REST! However... when I point my console app at the REST url of my company chat I receive the following error: “{"errorDescription":"n/a","errorCode":"501"}” Googling this suggests that my company's Circuit does not have REST access enabled. Is this likely to be the case? and is there any help documentation re how to switch on REST access? Thanks again in advance
– Gordon Doherty
Dec 10 '18 at 16:04
Are you trying to move your app from the sandbox to a Circuit production tenant from your company? If thats the case you need to get new credentials for the production system. Please follow the instructions at circuit.github.io If I miss-understood, please try to explain what you are trying to do.
– Roger Urscheler
Dec 12 '18 at 13:10
My console app is running on my laptop (not on the sandbox or anything). All I'm trying to do is point it at mycompanycircuit.net/resturl (instead of circuitsandbox.net/resturl) In doing so I'm also supplying my company domain credentials (the credentials I use to log into Outlook and Circuit as a normal user), but this is resulting in the 501 error
– Gordon Doherty
Dec 12 '18 at 14:54
Hi Gordon, if you are on a sandbox and you are admin of it, two steps : 1) go to the menu under your name > settings > circuit labs and enable the Oauth Apps. 2) go to the Adminisration menu > Oauth Apps and create your application (use Authorization code as grant type I think if you are making a server side REST API application)
– samo
Dec 13 '18 at 14:13
add a comment |
We have a .NET client in alpha. Reply to the email you got for your OAuth app registration and mention you'd like to try out the .NET alpha version. If you haven't registered for a OAuth app, then please do so as you will need that independent of which Circuit API you'll use. See instructions at https://circuit.github.io/.
But if all you want to do is to send a message in a conversation, then the better option is to use the REST API.See endpoint /conversations/{convId}/messages at https://circuitsandbox.net/rest/v2/swagger/ui/index.html. You can then make a REST API call in .NET using HttpClient. Something like this https://docs.microsoft.com/en-us/dotnet/csharp/tutorials/console-webapiclient.
Hi @Roger-Urscheler, Thanks for the response. I've used your examples to successfully communicate between my c# console app and the CircuitSandbox using REST! However... when I point my console app at the REST url of my company chat I receive the following error: “{"errorDescription":"n/a","errorCode":"501"}” Googling this suggests that my company's Circuit does not have REST access enabled. Is this likely to be the case? and is there any help documentation re how to switch on REST access? Thanks again in advance
– Gordon Doherty
Dec 10 '18 at 16:04
Are you trying to move your app from the sandbox to a Circuit production tenant from your company? If thats the case you need to get new credentials for the production system. Please follow the instructions at circuit.github.io If I miss-understood, please try to explain what you are trying to do.
– Roger Urscheler
Dec 12 '18 at 13:10
My console app is running on my laptop (not on the sandbox or anything). All I'm trying to do is point it at mycompanycircuit.net/resturl (instead of circuitsandbox.net/resturl) In doing so I'm also supplying my company domain credentials (the credentials I use to log into Outlook and Circuit as a normal user), but this is resulting in the 501 error
– Gordon Doherty
Dec 12 '18 at 14:54
Hi Gordon, if you are on a sandbox and you are admin of it, two steps : 1) go to the menu under your name > settings > circuit labs and enable the Oauth Apps. 2) go to the Adminisration menu > Oauth Apps and create your application (use Authorization code as grant type I think if you are making a server side REST API application)
– samo
Dec 13 '18 at 14:13
add a comment |
We have a .NET client in alpha. Reply to the email you got for your OAuth app registration and mention you'd like to try out the .NET alpha version. If you haven't registered for a OAuth app, then please do so as you will need that independent of which Circuit API you'll use. See instructions at https://circuit.github.io/.
But if all you want to do is to send a message in a conversation, then the better option is to use the REST API.See endpoint /conversations/{convId}/messages at https://circuitsandbox.net/rest/v2/swagger/ui/index.html. You can then make a REST API call in .NET using HttpClient. Something like this https://docs.microsoft.com/en-us/dotnet/csharp/tutorials/console-webapiclient.
We have a .NET client in alpha. Reply to the email you got for your OAuth app registration and mention you'd like to try out the .NET alpha version. If you haven't registered for a OAuth app, then please do so as you will need that independent of which Circuit API you'll use. See instructions at https://circuit.github.io/.
But if all you want to do is to send a message in a conversation, then the better option is to use the REST API.See endpoint /conversations/{convId}/messages at https://circuitsandbox.net/rest/v2/swagger/ui/index.html. You can then make a REST API call in .NET using HttpClient. Something like this https://docs.microsoft.com/en-us/dotnet/csharp/tutorials/console-webapiclient.
answered Nov 18 '18 at 23:19
Roger UrschelerRoger Urscheler
2211310
2211310
Hi @Roger-Urscheler, Thanks for the response. I've used your examples to successfully communicate between my c# console app and the CircuitSandbox using REST! However... when I point my console app at the REST url of my company chat I receive the following error: “{"errorDescription":"n/a","errorCode":"501"}” Googling this suggests that my company's Circuit does not have REST access enabled. Is this likely to be the case? and is there any help documentation re how to switch on REST access? Thanks again in advance
– Gordon Doherty
Dec 10 '18 at 16:04
Are you trying to move your app from the sandbox to a Circuit production tenant from your company? If thats the case you need to get new credentials for the production system. Please follow the instructions at circuit.github.io If I miss-understood, please try to explain what you are trying to do.
– Roger Urscheler
Dec 12 '18 at 13:10
My console app is running on my laptop (not on the sandbox or anything). All I'm trying to do is point it at mycompanycircuit.net/resturl (instead of circuitsandbox.net/resturl) In doing so I'm also supplying my company domain credentials (the credentials I use to log into Outlook and Circuit as a normal user), but this is resulting in the 501 error
– Gordon Doherty
Dec 12 '18 at 14:54
Hi Gordon, if you are on a sandbox and you are admin of it, two steps : 1) go to the menu under your name > settings > circuit labs and enable the Oauth Apps. 2) go to the Adminisration menu > Oauth Apps and create your application (use Authorization code as grant type I think if you are making a server side REST API application)
– samo
Dec 13 '18 at 14:13
add a comment |
Hi @Roger-Urscheler, Thanks for the response. I've used your examples to successfully communicate between my c# console app and the CircuitSandbox using REST! However... when I point my console app at the REST url of my company chat I receive the following error: “{"errorDescription":"n/a","errorCode":"501"}” Googling this suggests that my company's Circuit does not have REST access enabled. Is this likely to be the case? and is there any help documentation re how to switch on REST access? Thanks again in advance
– Gordon Doherty
Dec 10 '18 at 16:04
Are you trying to move your app from the sandbox to a Circuit production tenant from your company? If thats the case you need to get new credentials for the production system. Please follow the instructions at circuit.github.io If I miss-understood, please try to explain what you are trying to do.
– Roger Urscheler
Dec 12 '18 at 13:10
My console app is running on my laptop (not on the sandbox or anything). All I'm trying to do is point it at mycompanycircuit.net/resturl (instead of circuitsandbox.net/resturl) In doing so I'm also supplying my company domain credentials (the credentials I use to log into Outlook and Circuit as a normal user), but this is resulting in the 501 error
– Gordon Doherty
Dec 12 '18 at 14:54
Hi Gordon, if you are on a sandbox and you are admin of it, two steps : 1) go to the menu under your name > settings > circuit labs and enable the Oauth Apps. 2) go to the Adminisration menu > Oauth Apps and create your application (use Authorization code as grant type I think if you are making a server side REST API application)
– samo
Dec 13 '18 at 14:13
Hi @Roger-Urscheler, Thanks for the response. I've used your examples to successfully communicate between my c# console app and the CircuitSandbox using REST! However... when I point my console app at the REST url of my company chat I receive the following error: “{"errorDescription":"n/a","errorCode":"501"}” Googling this suggests that my company's Circuit does not have REST access enabled. Is this likely to be the case? and is there any help documentation re how to switch on REST access? Thanks again in advance
– Gordon Doherty
Dec 10 '18 at 16:04
Hi @Roger-Urscheler, Thanks for the response. I've used your examples to successfully communicate between my c# console app and the CircuitSandbox using REST! However... when I point my console app at the REST url of my company chat I receive the following error: “{"errorDescription":"n/a","errorCode":"501"}” Googling this suggests that my company's Circuit does not have REST access enabled. Is this likely to be the case? and is there any help documentation re how to switch on REST access? Thanks again in advance
– Gordon Doherty
Dec 10 '18 at 16:04
Are you trying to move your app from the sandbox to a Circuit production tenant from your company? If thats the case you need to get new credentials for the production system. Please follow the instructions at circuit.github.io If I miss-understood, please try to explain what you are trying to do.
– Roger Urscheler
Dec 12 '18 at 13:10
Are you trying to move your app from the sandbox to a Circuit production tenant from your company? If thats the case you need to get new credentials for the production system. Please follow the instructions at circuit.github.io If I miss-understood, please try to explain what you are trying to do.
– Roger Urscheler
Dec 12 '18 at 13:10
My console app is running on my laptop (not on the sandbox or anything). All I'm trying to do is point it at mycompanycircuit.net/resturl (instead of circuitsandbox.net/resturl) In doing so I'm also supplying my company domain credentials (the credentials I use to log into Outlook and Circuit as a normal user), but this is resulting in the 501 error
– Gordon Doherty
Dec 12 '18 at 14:54
My console app is running on my laptop (not on the sandbox or anything). All I'm trying to do is point it at mycompanycircuit.net/resturl (instead of circuitsandbox.net/resturl) In doing so I'm also supplying my company domain credentials (the credentials I use to log into Outlook and Circuit as a normal user), but this is resulting in the 501 error
– Gordon Doherty
Dec 12 '18 at 14:54
Hi Gordon, if you are on a sandbox and you are admin of it, two steps : 1) go to the menu under your name > settings > circuit labs and enable the Oauth Apps. 2) go to the Adminisration menu > Oauth Apps and create your application (use Authorization code as grant type I think if you are making a server side REST API application)
– samo
Dec 13 '18 at 14:13
Hi Gordon, if you are on a sandbox and you are admin of it, two steps : 1) go to the menu under your name > settings > circuit labs and enable the Oauth Apps. 2) go to the Adminisration menu > Oauth Apps and create your application (use Authorization code as grant type I think if you are making a server side REST API application)
– samo
Dec 13 '18 at 14:13
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53363434%2fcircuit-sdk-how-to-interact-via-net%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown