Intercom Newbie - calling oAuth from C#?


How might I accomplish the below POST in C# (see the cURL call below my code)? I have this partially figured out:

var client = new WebClient();
var url = @" ";

                    client.Headers.Add(HttpRequestHeader.Accept, "application/json");
                    client.Headers.Add(HttpRequestHeader.ContentType, "application/json -d");
                    client.Headers.Add(HttpRequestHeader.Authorization, "dG9rOjU1ZTUwNzA5X2M1OTBfNDUwZl84ZTM0XzdlOGZiYmMzMzYxZDoxOjA=");

THE DESIRED POST-----------------------------------

$ curl
-H ‘Authorization:Bearer ’
-H ‘Accept: application/json’
-H ‘Content-Type: application/json’ -d’
“name”: “tournament_creator”,
“users”: [
“id” : “53427b7ecce5722303000003”,
“untag”: false


Hey @MarkTaylor :wave:

Looks like this is for a POST request to tag users through our REST API, instead of OAuth, correct? You should use our .NET SDK for this - we have example calls for providing authentication and tagging users through this link :+1: