Пример #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();
        }
Пример #2
0
        public static async void RunThree()
        {
            TogglWebClient TogglWebClient = new TogglWebClient();

            TogglWebClient.SetAuthentication(APIToken);
            TogglWebClient.SetDomain("https://www.toggl.com/");
            //var me = await TogglWebClient.CreateSession();
            var secondMe = await TogglSharpAPI.V8.Me.Retrieve(TogglWebClient, true);

            Debugger.Break();
        }
Пример #3
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();
        }