Exemplo n.º 1
0
        public static async void RunTwo()
        {
            TogglWebClient TogglWebClient = new TogglWebClient();

            TogglWebClient.SetAuthentication(APIToken);
            TogglWebClient.SetDomain("https://www.toggl.com/");

            TogglSharpAPI.V8.Me me = await TogglSharpAPI.V8.Me.Retrieve(true);

            Debugger.Break();
        }
Exemplo n.º 2
0
        public static async void Run()
        {
            TogglWebClient TogglWebClient = new TogglWebClient();

            TogglWebClient.SetAuthentication(APIToken);
            TogglWebClient.SetDomain("https://www.toggl.com/");


            var    request  = TogglWebClient.CreateGetRequest("api/v8/me");
            JToken response = await TogglWebClient.ExecuteRequest(request);

            Debug.WriteLine(response);
            TogglSharpAPI.V8.Me Me = response.ToObject <TogglSharpAPI.V8.Me>();//JsonConvert.DeserializeObject<Me>(response);

            Debugger.Break();
        }