how can i integrate TeamUp Calendar

192 views Asked by At

I am trying to integrate TeamUp calendar with as ASP.NET project.

How can i integrate and create / edit events in Project?
I would like them to reflect on TeamUp calendar and Vice Versa.

1

There are 1 answers

0
Shanewaj On

This worked for me :)

private static readonly HttpClient client = new HttpClient();

public string getData(){
var TeamupAPIKey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

  client.DefaultRequestHeaders.Clear();
            client.DefaultRequestHeaders.Accept.Clear();
            client.DefaultRequestHeaders.Accept.Add
                        (new 
  MediaTypeWithQualityHeaderValue("application/json"));
            client.DefaultRequestHeaders.Add
                ("Teamup-Token", TeamupAPIKey);

            var stringTask = 
  client.GetStringAsync("https://api.teamup.com/ksdtwavnmo6cfqhm4o/keys");
            var msg = await stringTask;

  return msg;
}