Пример #1
0
        public static string GetInternalToken(string baseUri)
        {
            var client = new WebServiceClient<string>
            {
                Credentials = new Credentials
                {
                    ClientId = GoalInternal,
                    ClientSecret = GoalInternal,
                    Username = GoalInternal,
                    Password = GoalInternal
                },
                BaseUri = baseUri,
                TokenEndpoint = "token"
            };

            return client.GetToken();
        }